summaryrefslogtreecommitdiff
path: root/pango/fonts.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Rename pango_font_coversMatthias Clasen2019-07-121-3/+3
| | | | | We already had a has_char api in pangofc, so use that name.
* Better docs for pango_font_get_featuresMatthias Clasen2019-07-121-3/+5
| | | | | Clarify that the default features of the rendering system are not included.
* Add an api to get features of a fontMatthias Clasen2019-07-111-0/+24
|
* Add pango_font_coversMatthias Clasen2019-07-111-0/+21
| | | | | | | | | | | Add a pango_font_covers function, which is like pango_shape_engine_covers, without the engine. This api is simpler than PangoCoverage in that it does not take a language as input, and only returns a boolean. This matches the harfbuzz api.
* Add line height to font metricsMatthias Clasen2019-07-051-0/+23
| | | | Add a getter for the line height of a font.
* Header cleanupMatthias Clasen2019-07-041-1/+1
| | | | | | | 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.
* docs: out parameters which are enums are not caller-allocatableRico Tzschichholz2019-04-041-4/+4
|
* Add a variable family APIMatthias Clasen2018-11-191-0/+22
| | | | | pango_font_family_is_variable() return whether a font family supports font variations.
* Add initial support for OpenType font variationsMatthias Clasen2018-01-031-10/+162
| | | | | | | | 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.
* Don't check array for NULLTing-Wei Lan2017-07-181-1/+1
| | | | | | | Arrays can never be NULL, and doing unnecessary checking causes compilers to show warnings. https://bugzilla.gnome.org/show_bug.cgi?id=783428
* Cast enum to int before doing calculationTing-Wei Lan2017-07-181-2/+2
| | | | | | | | It seems that it is possible for compilers to use unsigned interger types to store enum values, so we should cast them to signed interger types before doing calculation to avoid getting unexpected results. https://bugzilla.gnome.org/show_bug.cgi?id=783428
* docs: Add a few missing (transfer) annotationsPhilip Withnall2017-04-081-1/+1
| | | | | | | | | This should fix a few scanner warnings, but this is not an attempt to fix them all. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=778663