| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This is now unused.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move all the code that sets up the hb_font_t to
pango_fc_font_create_hb_font, and use it from
the shaper. This is the second step towards
taking over font management.
Even better, harfbuzz has a ready-made function
for this. We can drop a lot of FT_Face-using code
this way. We assume unhinted rendering for now,
so we can set ppem to 0.
|
| |
|
|
|
|
|
| |
We were just returning a boolean, leaving
it up to luck to match coverage level enum values.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
The variable face is somewhat special, and we don't want
to confuse things by calling it 'Regular' (since it doesn't
have a style).
|
|
|
|
|
| |
This is very straightforward, since fontconfig has
a field for this.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
Instead of a O(n^2.log(n)), we now do O(n) by avoiding calling
FcFontList for each PangoFontFace, and FcFontMatch in
pango_fc_face_describe().
Makes pango-list over 100 times faster for me.
|
| |
|
|
|
|
|
| |
Apple Color Emoji for example has multiple strikes... We were
only listing first.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=792231
|
|
|
|
|
|
|
|
| |
We call pango_fc_font_key_init on a stack-allocated temporary
lookup key, with the expectation that it does not have to be
freed. In the case where we want to use it as key in the font_hash,
we call copy() on it. So, don't duplicate the variations string
in init() - it will get duplicated in copy() later.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This commit lets PangoFontDescription carry font variation
information as a string. Only pangocairo has been updated
to make use of this information. We pass it to harfbuzz
for shaping, and we pass it to cairo when creating scaled
fonts.
|
|
|
|
|
|
| |
Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://bugzilla.gnome.org/show_bug.cgi?id=778663
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These checks are preceded by other checks or code which demonstrates
that the values are definitely always non-NULL.
In the case of pango_attr_list_insert_internal(), the final branch of
the function never needs to update list->attributes_tail, as the middle
branch handles the case of appending to the list. The final case is just
for insertions in the middle of the list.
Coverity IDs: 1391710, 1391711
Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://bugzilla.gnome.org/show_bug.cgi?id=778654
|
|
|
|
|
|
|
|
| |
The fallback code for conversion from fontconfig font weights
to PangoWeight was mixing up PANGO_WEIGHT_SEMILIGHT and
PANGO_WEIGHT_LIGHT.
https://bugzilla.gnome.org/show_bug.cgi?id=749635
|
| |
|
| |
|
| |
|
|
|
|
| |
Do it before it's too late!
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=731022
|
|
|
|
|
|
| |
This makes the weight mapping a continuous, as ooposed to a step function.
Last piece of Bug 733764 - Support more / free font weights
|
|
|
|
| |
Previous commit was incomplete.
|
|
|
|
| |
Part of Bug 733764 - Support more / free font weights
|
|
|
|
| |
Patch from Rafał Mużyło.
|
|
|
|
| |
Patch from Akira TAGOH.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=694626
|
|
|
|
|
|
|
|
|
|
| |
memory"
This reverts commit 7ed3cb89923c376d8b30ae3f977ab9e1a231e430, after
resolving conflicts.
The patch introduced some lifecycle management issues that could easily
cause crashing. Reverting till the issues are resolved.
|
| |
|
|
|
|
|
| |
After commit 7c1d6208a4b42ef3a3cce0d8dffb214c7a321e5e, the first matched
font was being prepared twice, causing misconfiguration.
|
|
|
|
| |
Refcount cached patterns.
|
|
|
|
|
| |
Essentially our FcFontRenderPrepare() for fallback fonts was never
actually being called. Donno how this was "working"...
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|