summaryrefslogtreecommitdiff
path: root/pango/pangocoretext.c
Commit message (Collapse)AuthorAgeFilesLines
* docs: Convert gtk-doc syntax leftoversdocs-cleanupMatthias Clasen2021-05-191-1/+1
| | | | | Remove leftovers like #Type, reduce indentations to avoid markdown block quotes, etc.
* docs: Remove no-longer used sectionsMatthias Clasen2021-03-111-8/+0
| | | | | | These don't have enough meat to warrant turning them into .md files, so just drop them. They are no longer used.
* coretext: CleanupMatthias Clasen2021-01-041-10/+0
| | | | Remove the unused face setter and field.
* macos: Implement pango_font_get_faceMatthias Clasen2021-01-041-1/+1
| | | | | | | This was returning NULL for coretext fonts. Good that we have tests for this. Fixes: #524
* pangocoretext: Fix Cairo scalingKhaled Hosny2020-06-261-1/+5
| | | | | | Take font scale into account when creating HarfBuzz fonts. Fixes https://gitlab.gnome.org/GNOME/pango/-/issues/488
* Fix up harfbuzz includesMatthias Clasen2019-07-281-1/+1
| | | | | | The correct include is without harfbuzz/. Closes: https://gitlab.gnome.org/GNOME/pango/issues/387
* Merge branch 'wip/kill-shape-engine' into 'master'Matthias Clasen2019-07-181-41/+0
|\ | | | | | | | | Kill shape engines See merge request GNOME/pango!75
| * coretext: Stop providing a shape engineMatthias Clasen2019-07-181-41/+0
| | | | | | | | It is no longer used.
* | Make hb fonts immutable in the frontendMatthias Clasen2019-07-181-2/+0
|/ | | | | | It makes more sense to do this in the frontend that hands the objects out, rather than in each backend implementation.
* coretext: Implement create_hb_fontMatthias Clasen2019-07-181-0/+24
| | | | This has been tested and renders correctly.
* Documentation tweaksMatthias Clasen2019-07-131-2/+2
|
* Drop deprecated instance private data APIEmmanuele Bassi2018-08-301-7/+3
| | | | | | | 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.
* Restore scaling of CoreText fonts.John Ralls2018-05-081-4/+1
| | | | Fixes bug 787867.
* CoreText: Remove absolute size and scaling to screen resolution.John Ralls2017-08-151-0/+4
| | | | | | | | | | | | | 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
* coretext: implement obtaining coverage of supplementary planesKristian Rietveld2016-04-241-4/+28
|
* coretext: remove useless calls to pango_coverage_set()Kristian Rietveld2016-04-241-3/+2
| | | | | | 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.
* MinorBehdad Esfahbod2015-04-051-2/+2
|
* Fix MT-unsafe initializationsBehdad Esfahbod2015-04-041-2/+2
|
* Deprecate module system, skip it for shaper modulesBehdad Esfahbod2015-04-041-2/+33
| | | | | | | | | | | | | | 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.
* Bug 685167 - migrate docs to no-tmpl flavourBehdad Esfahbod2013-09-271-0/+8
| | | | Patch from Rafał Mużyło.
* Port PangoCoreTextFont to use GWeakRefJohn Ralls2012-09-251-8/+9
| | | | For its PangoCoreTextFontMap* member.
* Make CoreText backend more robust against broken fontsKristian Rietveld2012-01-281-0/+4
| | | | | | | | | | | | | | | 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.
* CoreText backend: implement font fallbacksKristian Rietveld2012-01-281-23/+71
| | | | | | | | | | | | | | | 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.
* Remove pointless FIXMEKristian Rietveld2011-04-141-1/+0
|
* Start implementation of CoreText backendKristian Rietveld2011-04-141-0/+205
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.