| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Set a size on the font description returned by
pango_font_describe(). Otherwise, scaling it
doesn't work.
Fixes: #610
|
|
|
|
|
| |
Remove leftovers like #Type, reduce indentations
to avoid markdown block quotes, etc.
|
|
|
|
|
|
| |
These don't have enough meat to warrant turning
them into .md files, so just drop them. They are
no longer used.
|
|
|
|
| |
Remove the unused face setter and field.
|
|
|
|
|
|
|
| |
This was returning NULL for coretext fonts.
Good that we have tests for this.
Fixes: #524
|
|
|
|
|
|
| |
Take font scale into account when creating HarfBuzz fonts.
Fixes https://gitlab.gnome.org/GNOME/pango/-/issues/488
|
|
|
|
|
|
| |
The correct include is without harfbuzz/.
Closes: https://gitlab.gnome.org/GNOME/pango/issues/387
|
|\
| |
| |
| |
| | |
Kill shape engines
See merge request GNOME/pango!75
|
| |
| |
| |
| | |
It is no longer used.
|
|/
|
|
|
|
| |
It makes more sense to do this in the frontend
that hands the objects out, rather than in each
backend implementation.
|
|
|
|
| |
This has been tested and renders correctly.
|
| |
|
|
|
|
|
|
|
| |
GLib 2.58 deprecated g_type_class_add_private(), at long last.
Use the G_ADD_PRIVATE macro, and the generated instance private data
getter function.
|
|
|
|
| |
Fixes bug 787867.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Cairo's CGFont backend already handles scaling fonts to the display
resolution, so scaling to the screen screen resolution in Pango's
CoreText backend generates double-sized text on a Retina display.
The layout test depended on providing a (bogus) resolution of 96DPI and
scaling the font to it in order to obtain the "expected" layout
results. This is replaced by adjusting the font size in test-layout.c
if Pango is compiled for CoreText.
https://bugzilla.gnome.org/show_bug.cgi?id=782393
|
| |
|
|
|
|
|
|
| |
Since Pango coverage is initialized to PANGO_COVERAGE_NONE, it makes no
sense to perform calls to pango_coverage_set for characters that will
be set (or rather left) to none.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now shaper is discovered via (previously unused!) font->find_shaper().
I'm keeping that just to allow clients override shaping. Though,
even that I'm not sure we want to keep.
Wraps shaper in PangoEngineShape structs to keep PangoAnalysis API
intact.
Deprecated pango-modules.h and some pango-engine.h. Language modules
are not moved yet.
Wired up PangoFc, PangoWin32, and PangoCoretext shapers.
|
|
|
|
| |
Patch from Rafał Mużyło.
|
|
|
|
| |
For its PangoCoreTextFontMap* member.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Patch written in collaboration with Michael Natterer.
Some CTFontDescriptors apparently do not have a style name or font
family name set. This patch makes the code take such corner cases into
account. The font family problem only appears to occur on Snow Leopard
systems, we try to fall back on the font name (postscript name), if that
fails, we fall back on a default fallback.
In some cases a coverage is also not set. (This seems to happen when we
cannot map a broken font back to a correct font descriptor). In such
cases we simply return an empty PangoCoverage, which will likely cause
the engine to fallback on a different font.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We implement font fallbacks by making use of
CTFontCopyDefaultCascadeList, a public, non-exposed, symbol in the
CoreText library. We might want to handle this differently.
The code now also uses a PangoCoreTextFontsetKey and
PangoCoreTextFontKey, similar to the font config backend. This has also
helped to clean up the code in general.
This patch contains two fixes by Michael Natterer:
1. Fix a bug in pango_core_text_font_key_equal() where the return value
of memcmp() was wrongly interpreted.
2. Cache PangoCoverage in PangoCoreTextFont.
|
| |
|
|
On Mac OS X systems where CoreText is available (that is, 10.5 or
higher), we will build the CoreText backend instead of the ATSUI
backend. In this case, the ATSUI backend will not be built and
installed. This change is necessary because since Mac OS 10.5
ATSUI has been marked as deprecated.
For older systems, we will have to continue to use the
ATSUI backend.
|