| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Move the fontconfig+harfbuzz using parts to libpango,
since we want to start using harfbuzz on all platforms.
|
|
|
|
|
| |
Only link libpangoxft and libpangocairo
against xft and cairo.
|
| |
|
| |
|
|\
| |
| |
| |
| | |
Remove lang engine use
See merge request GNOME/pango!73
|
| |
| |
| |
| |
| | |
Drop all internal use of language engines.
The lang_engine field in PangoAnalysis is now unused.
|
| |
| |
| |
| | |
No need to go through the engine api anymore.
|
| |
| |
| |
| | |
This reverts commit 50b1e8532c5211cebd3cea935f9ac91a087d5c35.
|
| |
| |
| |
| |
| | |
Instead, look at the pre- and post-break
text to figure out what is needed.
|
|/
|
|
| |
Move things into some helper functions.
|
|\
| |
| |
| |
| | |
Soft hyphen
See merge request GNOME/pango!68
|
| |
| |
| |
| |
| | |
When we take a break at a soft hyphen, insert
a visible hyphen.
|
| |
| |
| |
| |
| |
| | |
Use a bit in PangoLogAttr to mark line breaks
that are due to soft hyphens; we want to insert
hyphens here later, if the break is taken.
|
| |
| |
| |
| |
| | |
We are not rendering hex boxes for missing spaces,
so we don't need to give them the hex box width.
|
|/
|
|
|
|
| |
Even if a font has no space glyph, we don't want
to render a hex box for it, since just rendering
nothing does a decent approximation of space.
|
|
|
|
| |
This functionality is used in PackageKit.
|
| |
|
|
|
|
|
|
| |
gravity='auto' is not a valid value here.
Closes: https://gitlab.gnome.org/GNOME/pango/issues/203
|
|
|
|
| |
Make a new image for layout parameters.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If line-spacing is set to a non-zero value,
we place lines so that
baseline2 = baseline1 + line-spacing * height2
where height2 is the line height of the
second line. In this case, we ignore
spacing.
If line-spacing is set to zero, spacing
is applied as before.
|
|
|
|
| |
Add a getter for the line height of a layout line.
|
| |
|
|
|
|
|
| |
Following information found here:
https://docs.microsoft.com/en-us/windows/win32/gdi/string-widths-and-heights
|
|
|
|
| |
Add a getter for the line height of a font.
|
|
|
|
|
|
| |
Patch by Alan Wang.
Closes: https://gitlab.gnome.org/GNOME/pango/issues/281
|
|
|
|
| |
Move them to their own section in the docs.
|
|
|
|
|
|
|
| |
Abolish the PANGO_ENABLE_BACKEND and PANGO_ENABLE_ENGINE
defines. All backend-only apis are moved into private
headers, all apis that were engine-only are marked as
deprecated, since engines are.
|
|
|
|
|
| |
These were ifdefed to an older version of GLib
than we require now, so are just dead code.
|
|
|
|
|
| |
This was done by comparing with the Bidi_Mirrored
property in Unicode 12.
|
|\
| |
| |
| |
| | |
Unicode 11 support for Thai language
See merge request GNOME/pango!20
|
| |
| |
| |
| |
| | |
According to the comments from break-thai.c, use alternative approach
for break-thai.c .
|
| |
| |
| |
| |
| |
| |
| |
| | |
Use 'gtk_doc' for documentation and 'introspection'
for, well, introspection. This matches what the rest
of the stack does.
Fixes https://gitlab.gnome.org/GNOME/pango/issues/364
|
|\ \
| | |
| | |
| | |
| | | |
Replace deprecated Harfbuzz API
See merge request GNOME/pango!39
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Harfbuzz deprecated hb_ot_tag_from_language() and
hb_ot_tags_from_script(), and replaced them both with a single call,
hb_ot_tags_from_script_and_language().
Let's move Pango to the new API, and avoid the deprecated calls.
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Core text: Fix indexing into cascade list when multiple fonts are selected
Closes #352
See merge request GNOME/pango!54
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Bug introduced from 633fd80.
With that changeset, if multiple fonts from the provided font family
are found, they are added to the start of fontset->fonts. Space for
the cascade list (based on the 'best'/first font) then follows.
However, pango_core_text_fontset_get_font_at was not updated to
match this change. So it still assumes that there is at most only
one 'real' font in fonset->fonts. With this assumption, the
indexing into fontset->cascade_list became incorrect, leading to
an out-of-bounds access on that list, resulting in an exception
being thrown.
Track the number of fonts found in pango_core_text_fontset_new
in real_fount_count, and use this as the offset into cascade_list.
This also fixes a memory leak; when a PangoCoreTextFontSet is
initialised, fonts and coverages are pre-initialised, but this
was being discarded and re-set in pango_core_text_fontset_new
without freeing the previous initialisation.
|
|/ / /
| | |
| | |
| | | |
Closes #372
|
| | |
| | |
| | |
| | |
| | | |
This contains the updates that removes the empty arrays from the generated
code.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Explain that returned script values are, in fact,
from the GUnicodeScript enumeration.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
We were using the enum nicks in on place.
Use GUnicodeScript instead, since that is getting
updated for newer Unicode versions.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Make it clear that PangoScript is deprecated, and will
not be updated. And that all APIs are in fact returning
GUnicodeScript, and callers have to handle that.
|
| | |
| | |
| | | |
This reverts commit 3e754defc364a89b2136894399b3463976840156
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This commit replaces the PangoScript enum by a
typedef to GUnicodeScript, and preserves the old
enum values as defines.
This depends on adding an enum type for GUnicodeScript
in gobject.
|
| | |
| | |
| | |
| | | |
For Dependent Vowels, the grapheme needs to be deleted by character.
|
| | | |
|
| | | |
|