summaryrefslogtreecommitdiff
path: root/pango/fonts.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Minor documentation updateMatthias Clasen2015-06-221-1/+1
|
* Fix warnings if font is not foundBehdad Esfahbod2015-04-101-1/+2
|
* Add many missing nullability annotations.Evan Nemerson2014-10-161-23/+26
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=731022
* Add PANGO_WEIGHT_SEMILIGHTBehdad Esfahbod2014-07-251-0/+2
| | | | Part of Bug 733764 - Support more / free font weights
* Bug 685167 - migrate docs to no-tmpl flavourBehdad Esfahbod2013-09-271-0/+13
| | | | Patch from Rafał Mużyło.
* Bug 708432 - gravity_map in fonts.c: "Upside-Down" should beBehdad Esfahbod2013-09-201-1/+1
| | | | PANGO_GRAVITY_NORTH instead of PANGO_GRAVITY_SOUTH?
* introspection: assorted fixes to avoid regressions in Vala bindingsEvan Nemerson2012-08-121-7/+13
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=681423
* Fix transfer annotation for pango_font_family_list_facesPavel Holejsovsky2012-06-041-3/+4
| | | | | | | | The documentation says 'This array should be freed with g_free() when it is no longer needed', which really translates to (transfer container) in introspection annotation jargon. https://bugzilla.gnome.org/show_bug.cgi?id=677407
* Stop using G_CONST_RETURN in PangoRyan Lortie2011-06-091-3/+3
| | | | | | | G_CONST_RETURN is headed for deprecation (as per bug #644611). Stop using it in Pango. https://bugzilla.gnome.org/show_bug.cgi?id=652202
* Fixed (transfer none) introspection annotation for the return value in ↵Alberto Ruiz2011-04-251-1/+2
| | | | pango_font_get_font_map
* adding allow-none introspection metadata to pango_font_description_merge ↵Alberto Ruiz2011-04-251-1/+1
| | | | parameters
* adding allow-none introspection metadata to ↵Alberto Ruiz2011-04-251-1/+1
| | | | pango_font_description_better_match parameters
* adding allow-none introspection metadata to pango_font_get_metrics parametersAlberto Ruiz2011-04-251-3/+2
|
* fixing metadata typo in pango_font_get_glypth_extentsAlberto Ruiz2011-04-251-1/+1
|
* adding output parameters introspection metadata to pango_font_get_glypth_extentsAlberto Ruiz2011-04-251-2/+2
|
* adding allow-none introspection metadata to pango_font_get_glypth_extents ↵Alberto Ruiz2011-04-251-4/+4
| | | | parameters