summaryrefslogtreecommitdiff
path: root/pango/pangofc-fontmap.c
Commit message (Collapse)AuthorAgeFilesLines
* fc: Drop the cmap cacheMatthias Clasen2019-07-181-51/+0
| | | | This is now unused.
* fc: Move font setup code from the shaperMatthias Clasen2019-07-181-1/+3
| | | | | | | | | | | | 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.
* fc: Implement create_hb_fontMatthias Clasen2019-07-181-0/+25
|
* fc: Return a coverage levelMatthias Clasen2019-07-171-1/+3
| | | | | We were just returning a boolean, leaving it up to luck to match coverage level enum values.
* Turn PangoCoverage into an objectMatthias Clasen2019-07-111-42/+81
| | | | | | Make PangoCoverage a GObject, and subclass it in pangofcfontmap.c. This lets us use the FcCharSet without copying the data.
* Reimplement PangoCoverage on top of hb_set_tMatthias Clasen2019-07-111-4/+1
| | | | | | This drops the language dependency and coverage levels, both of which are not used in pango.
* Header cleanupMatthias Clasen2019-07-041-1/+2
| | | | | | | 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.
* Skip variable when enumerating facesMatthias Clasen2018-11-191-0/+10
| | | | | | 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).
* Implement variable family api for fontconfigMatthias Clasen2018-11-191-1/+24
| | | | | This is very straightforward, since fontconfig has a field for this.
* Drop deprecated instance private data APIEmmanuele Bassi2018-08-301-9/+9
| | | | | | | 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.
* [fc] Speed-up font face enumerationBehdad Esfahbod2018-07-161-56/+38
| | | | | | | | 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.
* [fc] Remove ancient #ifdef FC_* conditionalsBehdad Esfahbod2018-07-161-32/+1
|
* [fc] List all bitmap sizes of FcPatternBehdad Esfahbod2018-07-081-2/+4
| | | | | Apple Color Emoji for example has multiple strikes... We were only listing first.
* fontmap: fix warnings from recent g_object_ref() changesChristian Hergert2018-01-051-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=792231
* Avoid a memory leakMatthias Clasen2018-01-051-1/+1
| | | | | | | | 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.
* [fc] Use FcWeightFrom/ToOpenTypeDouble() if availableBehdad Esfahbod2018-01-031-58/+13
|
* [fc] Only set variations if non-emptyBehdad Esfahbod2018-01-031-1/+3
|
* [fc] Request variable fonts from fontconfigBehdad Esfahbod2018-01-031-0/+3
|
* Add initial support for OpenType font variationsMatthias Clasen2018-01-031-3/+40
| | | | | | | | 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.
* docs: Fix some introspection annotation syntaxPhilip Withnall2017-04-081-1/+1
| | | | | | Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=778663
* pango: Remove some unnecessary NULL checksPhilip Withnall2017-02-161-1/+1
| | | | | | | | | | | | | | | | 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
* Fix an error in font weight conversionMatthias Clasen2015-05-241-2/+2
| | | | | | | | 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
* Fix a copy-paste errorMatthias Clasen2015-05-041-1/+1
|
* Bug 748767 - Add pango_fc_font_map_config_changed()Behdad Esfahbod2015-05-011-1/+21
|
* Bug 748768 - pango_fc_font_map_set_config() should clear cachesBehdad Esfahbod2015-05-011-1/+4
|
* Rename pango_fc_font_map_[sg]et_fc_config to pango_fc_font_map_[sg]et_configBehdad Esfahbod2015-05-011-16/+16
| | | | Do it before it's too late!
* Bug 547671 - Add pango_fc_font_map_[gs]et_fc_config()Behdad Esfahbod2015-04-301-5/+68
|
* Remove gmodule dependency and deprecate some more symbolsBehdad Esfahbod2015-04-051-1/+0
|
* Deprecate module system, skip it for shaper modulesBehdad Esfahbod2015-04-041-11/+0
| | | | | | | | | | | | | | 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.
* Add many missing nullability annotations.Evan Nemerson2014-10-161-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=731022
* [fc] Use FcWeightTo/FromOpenType() if availableBehdad Esfahbod2014-07-261-0/+8
| | | | | | This makes the weight mapping a continuous, as ooposed to a step function. Last piece of Bug 733764 - Support more / free font weights
* More PANGO_WEIGHT_SEMILIGHTBehdad Esfahbod2014-07-261-1/+3
| | | | Previous commit was incomplete.
* Add PANGO_WEIGHT_SEMILIGHTBehdad Esfahbod2014-07-251-1/+3
| | | | Part of Bug 733764 - Support more / free font weights
* Bug 685167 - migrate docs to no-tmpl flavourBehdad Esfahbod2013-09-271-0/+21
| | | | Patch from Rafał Mużyło.
* Bug 703995 - Compiler warnings about strict aliasingBehdad Esfahbod2013-08-301-2/+2
| | | | Patch from Akira TAGOH.
* PangoFc: change FontMap in pango_fc_font_map_clear_cache()Alexander Larsson2013-02-261-0/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=694626
* Revert "Bug 689342 - Lifetime of patterns in pattern_hash may use too much ↵Behdad Esfahbod2013-01-031-168/+61
| | | | | | | | | | 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.
* WhitespaceBehdad Esfahbod2012-12-301-4/+3
|
* Don't RenderPrepare the FcFontMatch resultBehdad Esfahbod2012-12-301-7/+18
| | | | | After commit 7c1d6208a4b42ef3a3cce0d8dffb214c7a321e5e, the first matched font was being prepared twice, causing misconfiguration.
* Bug 689342 - Lifetime of patterns in pattern_hash may use too much memoryBehdad Esfahbod2012-12-201-46/+161
| | | | Refcount cached patterns.
* Bug 690081 - pangofc-fontmap: Remove bad use of the comma operatorBehdad Esfahbod2012-12-121-1/+1
| | | | | Essentially our FcFontRenderPrepare() for fallback fonts was never actually being called. Donno how this was "working"...
* Make pangofc-fontmap.c thread-safeBehdad Esfahbod2012-08-271-5/+5
|
* More thread-safetyBehdad Esfahbod2012-08-271-3/+3
|
* docs: pangofc-fontmap: Fix typo in "Since" tagJavier Jardon2011-06-231-2/+2
|
* docs: Fix references to PangoFcFontmap -> PangoFcFontMapJavier Jardón2011-06-231-4/+4
|
* Bug 652841 - Various pieces of dead code found by gcc/clang static analyzerBehdad Esfahbod2011-06-171-4/+1
|
* Fix compiler warningsBehdad Esfahbod2011-05-011-1/+0
|
* pango/pangofc-fontmap.c: Use G_DEFINE_TYPE instead custom macroJavier Jardón2011-04-301-24/+13
|
* Fix warningsBehdad Esfahbod2009-08-041-4/+1
|
* Bug 585806 – crash during pango_fc_font_map_shutdownBehdad Esfahbod2009-07-201-5/+0
|