summaryrefslogtreecommitdiff
path: root/pango/fonts.c
Commit message (Collapse)AuthorAgeFilesLines
* fonts: Consistently use PANGO_TYPE_FONT_FACE as GListModel item-typeRico Tzschichholz2023-04-081-1/+1
|
* Fix the buildMatthias Clasen2022-10-161-1/+1
| | | | Annotations are picky about :
* Fix GIR annotations for fonts.cGuillaume Gomez2022-10-121-48/+48
|
* fonts: Handle lack of fontsMatthias Clasen2022-09-261-0/+6
| | | | | | | | Make pango_font_get_scale_factors return 1 if the font is NULL. This avoids crashes in situations where we cannot find any fonts. Fixes: #701
* Add listmodel properties to PangoFontFamilyMatthias Clasen2022-06-101-1/+56
| | | | | Add :item-type and :n-items properties, which make the list model implementation more useful.
* Drop uses of pango_coverage_ref/unrefMatthias Clasen2022-01-101-1/+1
| | | | Just use g_object_ref/unref.
* fonts: Fix get_face default implMatthias Clasen2022-01-101-1/+1
|
* Add a default implementation for list_facesMatthias Clasen2022-01-101-0/+13
|
* font: Documentation additions and clarificationsMatthias Clasen2022-01-011-3/+9
| | | | | Face names are not actually guaranteed to be unique, so don't say that.
* CosmeticsMatthias Clasen2022-01-011-1/+1
|
* Add a private api to get the font sizeMatthias Clasen2021-12-211-0/+14
| | | | | | | | Add a private vfunc to get the (absolute) size of a font. This default implementation just pulls it out of the font description, but we can do implement this cheaper without copying the font description.
* Add some docsMatthias Clasen2021-12-181-0/+25
| | | | Add doc comments for some private API.
* docs: Cosmeticsmisc-doc-fixupsMatthias Clasen2021-12-101-11/+22
| | | | | Add more links to GLib apis and to various Unicode specs.
* Document new variant valuesMatthias Clasen2021-12-101-1/+2
|
* font: Avoid cosmetic uglinessMatthias Clasen2021-11-271-2/+3
| | | | | | | | When setting variations to "", font descriptions would add an ugly useless " @" at the end of their serialization. Avoid that. Test included.
* Add a way to get the font matrixMatthias Clasen2021-11-241-0/+17
| | | | | | Add some private api for the serializer to get the font matrix. This is needed to let the serializer write a unique fingerprint for the font.
* Update docsMatthias Clasen2021-11-081-1/+2
| | | | Add the new variant values to the docs.
* Add more casing variantsMatthias Clasen2021-11-071-1/+6
| | | | | Add values for all the css casing variants to the PangoVariant enum.
* gi: add array annotations to get_languages Bilal Elmoussaoui2021-10-301-2/+1
| | | | Also drops the null-terminated doc comment as gi-docgen shows that already if the function is annotated properly
* CosmeticsMatthias Clasen2021-10-241-8/+16
| | | | Add default implementations for is_monospace and is_variable.
* fonts: Redo the get_face implementationMatthias Clasen2021-08-311-2/+11
| | | | | Now that we have a private class, we can retire the misplaced vfunc in the fontmap class.
* font: Add a vfunc for pango_font_has_charMatthias Clasen2021-08-281-4/+14
|
* docs: Some clarificationsMatthias Clasen2021-08-081-2/+2
| | | | | Add some more detail around baseline-to-baseline distances.
* Clean up rounding codeprivate-vfuncsMatthias Clasen2021-07-311-0/+31
| | | | | | Add private api to get the necessary information from the font backend, and drop the hack that was added in d4356779945855f7cc.
* Add pango_font_get_languagesMatthias Clasen2021-07-311-1/+43
| | | | | | Start using private vfuncs for PangoFont, and use it to replace the recently introduced pango_fc_font_get_languages with a frontend api.
* docs: Link syntax fixesdocs-link-fixesMatthias Clasen2021-05-251-1/+1
| | | | | Now that gi-docgen warns about link syntax errors, we can find and fix them.
* docs: Convert gtk-doc syntax leftoversdocs-cleanupMatthias Clasen2021-05-191-23/+23
| | | | | Remove leftovers like #Type, reduce indentations to avoid markdown block quotes, etc.
* introspection: Stop using allow-noneMatthias Clasen2021-05-191-7/+7
| | | | | The allow-none annotation has been deprecated for a long time already. Instead use optional and nullable everywhere.
* Fix various broken linksMatthias Clasen2021-03-111-1/+1
| | | | All these were pointed out by gi-docgen warnings.
* docs: Tweak font docsMatthias Clasen2021-03-111-40/+92
| | | | Give doc comments summaries, etc.
* docs: Port PangoFont to the new doc formatMatthias Clasen2021-03-111-525/+539
| | | | Replace gtk-doc'isms and use gi-docgen links instead.
* docs: Convert fonts section to pango_fonts.mdMatthias Clasen2021-03-111-13/+0
|
* docs: Replace lots of vestigial xml markupMatthias Clasen2021-03-111-3/+3
| | | | | We want to use pure markdown, since docbook is going away as the intermediate format.
* docs: Make context section ids matchMatthias Clasen2021-03-111-1/+1
| | | | | Doing this makes g-ir-scanner pick up the long description, which is more useful than the struct docs.
* Don't promise too muchMatthias Clasen2021-01-231-3/+2
| | | | | | | | The docs were claiming that face names are unique, but we don't know that, and it doesn't hold in practice. Fixes: #528
* Avoid a dead assignmentMatthias Clasen2020-08-181-1/+1
| | | | | As pointed out in #495, we were assigning logical_rect->y twice in a row here. Once is enough.
* Fix annotationEmmanuele Bassi2020-06-081-1/+1
| | | | In arguments are nullable; out arguments are optional.
* family: Clarify and improve pango_font_family_get_face()Benjamin Otte2019-12-081-6/+16
| | | | | | | - Clarify that the function can return NULL - Fix annotations - Allow passing NULL as name to get a guaranteed default face. - Map the default name to "Regular" in the FC backend
* family: Implement GListModelMatthias Clasen2019-12-041-1/+50
| | | | | | | Make a PangoFontFamily a list model which contains the faces of the family. The current implementation is not optimized.
* Add pango_font_get_faceMatthias Clasen2019-10-311-0/+18
| | | | | Since we've run out of slots in PangoFontClass, this is implemented with a vfunc in PangoFontMapClass.
* Add pango_font_face_get_familyMatthias Clasen2019-10-311-0/+19
|
* Add pango_font_family_get_faceMatthias Clasen2019-10-311-0/+50
| | | | This lets us get a face by name.
* Add detail to docsMatthias Clasen2019-08-041-11/+41
| | | | | Explain variation syntax and allowed values for other components of pango_font_description_from_string().
* Skip Harfbuzz type getterEmmanuele Bassi2019-08-021-1/+1
| | | | | Since Harfbuzz does not generate introspection data, we cannot use it for our introspected ABI.
* Merge branch 'wip/kill-shape-engine' into 'master'Matthias Clasen2019-07-181-8/+2
|\ | | | | | | | | Kill shape engines See merge request GNOME/pango!75
| * Deprecate pango_font_find_shaperMatthias Clasen2019-07-181-8/+2
| | | | | | | | | | Deprecate pango_font_find_shaper, make it return NULL, and remove the find_shaper vfunc.
* | Expand docs for pango_font_get_hb_fontMatthias Clasen2019-07-181-0/+4
| |
* | Make hb fonts immutable in the frontendMatthias Clasen2019-07-181-0/+2
|/ | | | | | It makes more sense to do this in the frontend that hands the objects out, rather than in each backend implementation.
* Add api to get a hb_font_tMatthias Clasen2019-07-181-1/+45
| | | | | Add pango_font_get_hb_font, which will make it easier access harfbuzz features.
* Some more doc tweaksMatthias Clasen2019-07-141-1/+1
|