| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
gtk-doc doesn't like these.
|
|
|
|
| |
Don't use deprecated api to implement deprecated api!
|
|
|
|
|
| |
Clarify that the default features of the
rendering system are not included.
|
|
|
|
|
| |
Include freetype.h in headers where freetype
types are used.
|
|
|
|
|
| |
We don't use _pango_cairo_fc_font_map_get_library
anymore.
|
|
|
|
|
|
| |
This function has long been deprecated;
and it is is using freetype. So drop the
implementation.
|
| |
|
|
|
|
|
| |
We take features out of the FcPattern and
translate them into harfbuzz features.
|
| |
|
|
|
|
|
|
| |
Make PangoCoverage a GObject, and subclass
it in pangofcfontmap.c. This lets us use
the FcCharSet without copying the data.
|
|
|
|
|
|
| |
This drops the language dependency and
coverage levels, both of which are not
used in pango.
|
|
|
|
| |
This replaces all uses of _pango_engine_shape_covers.
|
|
|
|
|
|
|
|
|
|
|
| |
Add a pango_font_covers function, which is like
pango_shape_engine_covers, without the engine.
This api is simpler than PangoCoverage in that
it does not take a language as input, and only
returns a boolean.
This matches the harfbuzz api.
|
|
|
|
|
|
| |
Before passing the features to hb_shape(), set their ranges,
since they are no longer always for the full length of the
item.
|
|
|
|
|
|
|
|
|
|
| |
Don't pass font_features attributes into the itemize
run, since we don't need to break runs for this.
Split them off, and reapply them after itemization.
We rapply them before line breaking, since we want
them to affect the shaping.
Closes: https://gitlab.gnome.org/GNOME/pango/issues/242
|
|
|
|
|
| |
This adds attrs that are overlapping the range
of the item to the extra_attrs in the analysis.
|
|
|
|
|
|
| |
We already count foreground and background color
as no-shape attributes, so it makes sense to
treat alpha the same.
|
|
|
|
|
|
| |
Based on a patch by Matijs van Zuijlen <matijs@matijs.net>.
Closes https://gitlab.gnome.org/GNOME/pango/issues/259
|
|
|
|
|
|
|
| |
Don't run off the end of an array that we
allocated to certain length.
Closes: https://gitlab.gnome.org/GNOME/pango/issues/342
|
|\
| |
| |
| |
| | |
itemize: Don't change font for line separator
See merge request GNOME/pango!71
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If we render this (in single-paragraph mode), we
draw a hex box, so changing font just for the line
separator is never useful, and in fact, counterproductive
in cases where the font has a (typically empty) glyph
for it.
This fixes the [LS] or [PS] hex boxes not showing up
in single-paragraph mode depending on font fallback.
|
| |
| |
| |
| |
| | |
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.
|