summaryrefslogtreecommitdiff
path: root/pango/pango-font.h
Commit message (Collapse)AuthorAgeFilesLines
* docs: Remove an oddityMatthias Clasen2022-07-141-1/+1
| | | | | It seems odd to document PANGO_WEIGHT_MEDIUM as the 'normal' weight, when we also have PANGO_WEIGHT_NORMAL.
* g-i: add since annotations to enum membersbilelmoussaoui/giBilal Elmoussaoui2022-01-081-8/+5
|
* docs: Cosmeticsmisc-doc-fixupsMatthias Clasen2021-12-101-12/+10
| | | | | Add more links to GLib apis and to various Unicode specs.
* Add pango_font_deserializeMatthias Clasen2021-12-021-0/+5
| | | | | This will make the font serialization useful in GTK, where we serialize fonts in node files.
* Add pango_font_serializeMatthias Clasen2021-11-241-0/+3
| | | | | | | Another debug api. This function produces a serialization of a font that is enough to uniquely identify the font. This is more detailed than what pango_font_describe creates.
* Add more autoptr definitionsMatthias Clasen2021-11-221-0/+1
|
* Add more casing variantsMatthias Clasen2021-11-071-2/+24
| | | | | Add values for all the css casing variants to the PangoVariant enum.
* font: Add more autoptr cleanupMatthias Clasen2021-08-311-0/+2
|
* Add autoptr cleanup funcsMatthias Clasen2021-08-281-0/+2
|
* docs: Add another illustrationdoc-font-metricsMatthias Clasen2021-08-221-0/+8
| | | | Show font metrics.
* Add pango_font_get_languagesMatthias Clasen2021-07-311-0/+3
| | | | | | Start using private vfuncs for PangoFont, and use it to replace the recently introduced pango_fc_font_get_languages with a frontend api.
* docs: Tweak font docsMatthias Clasen2021-03-111-31/+43
| | | | Give doc comments summaries, etc.
* Drop some useless things from the girMatthias Clasen2021-03-111-0/+2
| | | | | We don't need the deprecated and useless module and engine types in the gir and the docs.
* docs: Port PangoFont to the new doc formatMatthias Clasen2021-03-111-118/+48
| | | | Replace gtk-doc'isms and use gi-docgen links instead.
* docs: Replace lots of vestigial xml markupMatthias Clasen2021-03-111-1/+1
| | | | | We want to use pure markdown, since docbook is going away as the intermediate format.
* Add pango_font_get_faceMatthias Clasen2019-10-311-0/+3
| | | | | 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-1/+4
|
* Add pango_font_family_get_faceMatthias Clasen2019-10-311-1/+8
| | | | This lets us get a face by name.
* Make some class structs public againMatthias Clasen2019-08-211-1/+127
| | | | | | | | It turns out that the R GTK2 binding poke directly at many class structs. Bring the class structs back for now (deprecated), to avoid breaking their build. Closes: https://gitlab.gnome.org/GNOME/pango/issues/412
* Make PangoFcFont struct available againMatthias Clasen2019-08-121-0/+25
| | | | | | | Unfortunately, some applications are poking directly at PangoFcFont struct fields. Put the structs back in the public headers for now, but deprecated.
* Fix up harfbuzz includesMatthias Clasen2019-07-281-1/+1
| | | | | | The correct include is without harfbuzz/. Closes: https://gitlab.gnome.org/GNOME/pango/issues/387
* Fix harfbuzz includesMatthias Clasen2019-07-281-1/+1
| | | | | Until we move harfbuzz from Requires.private to Requires, public headers should include harfbuzz/hb.h.
* Bring back unknown glyph size definesMatthias Clasen2019-07-241-0/+4
| | | | | These turned out to be used in a number of places, so just deprecate them for now.
* Deprecate pango_font_find_shaperMatthias Clasen2019-07-181-1/+1
| | | | | Deprecate pango_font_find_shaper, make it return NULL, and remove the find_shaper vfunc.
* Add api to get a hb_font_tMatthias Clasen2019-07-181-0/+3
| | | | | Add pango_font_get_hb_font, which will make it easier access harfbuzz features.
* Rename pango_font_coversMatthias Clasen2019-07-121-1/+1
| | | | | We already had a has_char api in pangofc, so use that name.
* docs: Fix parameter name mismatchesMatthias Clasen2019-07-121-3/+3
| | | | gtk-doc doesn't like these.
* Add an api to get features of a fontMatthias Clasen2019-07-111-0/+6
|
* Add pango_font_coversMatthias Clasen2019-07-111-0/+3
| | | | | | | | | | | 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/+2
| | | | Add a getter for the line height of a font.
* Header cleanupMatthias Clasen2019-07-041-166/+0
| | | | | | | 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.
* Fix the value of PANGO_SCALE_X_SMALLEgmont Koblinger2019-06-271-2/+2
| | | | Closes #372
* Add a variable family APIMatthias Clasen2018-11-191-1/+3
| | | | | pango_font_family_is_variable() return whether a font family supports font variations.
* Add initial support for OpenType font variationsMatthias Clasen2018-01-031-1/+12
| | | | | | | | 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.
* Fix parameter name to match implementationMatijs van Zuijlen2017-10-271-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=781857
* Decorate the symbols in the headers with version macrosChun-wei Fan2016-06-291-0/+62
| | | | | | | From the last commit, decorate all the symbols with the version macros. Also add the version macros in the docs. https://bugzilla.gnome.org/show_bug.cgi?id=767587
* Minor doc fixBehdad Esfahbod2015-05-051-0/+1
|
* Add PANGO_WEIGHT_SEMILIGHTBehdad Esfahbod2014-07-251-0/+2
| | | | Part of Bug 733764 - Support more / free font weights
* Update PangoWeight documentationMatthias Clasen2014-06-101-1/+1
| | | | | | A while ago, we added a weight of 1000 to the enumeration, but neglected to update the allowed values in the documentation. Fix that.
* Bug 685167 - migrate docs to no-tmpl flavourBehdad Esfahbod2013-09-271-0/+234
| | | | Patch from Rafał Mużyło.
* Revert "Make PANGO_GLYPH flags an enum to make gobject-introspection happy."John Ralls2012-12-291-6/+4
| | | | | This reverts commit 7274bd56db3ce2f02594687a307d22aa99c787c4. Whatever the problem was with g-ir-scanner, it's resolved.
* Bug 689882 - pango-font.h:381: error: comma at end of enumerator listBehdad Esfahbod2012-12-091-1/+1
|
* Make PANGO_GLYPH flags an enum to make gobject-introspection happy.John Ralls2012-11-151-4/+6
| | | | See bug 688356
* 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
* Bug 166709 – Handle font variants more consistentlyBehdad Esfahbod2009-01-061-1/+3
| | | | | | | | | | | | | | | | 2009-01-06 Behdad Esfahbod <behdad@gnome.org> Bug 166709 – Handle font variants more consistently * pango/pango-font.h: Add enum values PANGO_WEIGHT_BOOK and PANGO_WEIGHT_ULTRAHEAVY. * pango/fonts.c: * docs/tmpl/fonts.sgml: Add new weights with their aliases, as well as aliasing "Roman" to the normal weight. svn path=/trunk/; revision=2787
* Bug 384362 – pango can't select some font stylesBehdad Esfahbod2009-01-041-0/+2
| | | | | | | | | | | | | | | | 2009-01-03 Behdad Esfahbod <behdad@gnome.org> Bug 384362 – pango can't select some font styles * pango/pango-font.h: Add enum values PANGO_WEIGHT_THIN and PANGO_WEIGHT_MEDIUM to PangoWeight. * pango/fonts.c: Parse "Thin", "Extra-Light", "Regular", "Demi-Bold", "Extra-Bold", and "Black" as weight descriptors (from the OpenType spec). svn path=/trunk/; revision=2782
* Bug 478914 – Use something invalid instead of '?' when validating inputBehdad Esfahbod2007-12-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-12-10 Behdad Esfahbod <behdad@gnome.org> Bug 478914 – Use something invalid instead of '?' when validating input text * pango/pango-layout.c (pango_layout_set_text): Set invalid input bytes to -1, which gives a unichar value of -1, and eventually a glyph value of -1, aka PANGO_GLYPH_INVALID_INPUT. * pango/fonts.c (pango_font_get_glyph_extents), (pango_font_get_metrics), (pango_font_get_font_map): * pango/modules.c (build_map): * pango/pango-context.c (get_script), (get_shaper_and_font), (string_from_script), (itemize_state_process_run): * pango/pango-coverage.c (pango_coverage_get): * pango/pango-impl-utils.h: * pango/pango-utils.c: * pango/pangocairo-font.c (pango_cairo_font_get_scaled_font), (_pango_cairo_font_private_get_hex_box_info), (_pango_cairo_font_private_get_glyph_extents_missing): * pango/pangocairo-private.h: * pango/pangocairo-render.c (_pango_cairo_renderer_draw_frame), (_pango_cairo_renderer_draw_box_glyph), (_pango_cairo_renderer_draw_unknown_glyph): * pango/pangofc-fontmap.c (pango_fc_font_map_get_patterns): * pango/pangoft2-private.h: * pango/pangoft2-render.c (pango_ft2_font_render_box_glyph), (pango_ft2_font_render_glyph), (pango_ft2_renderer_draw_glyph): * pango/pangoft2.c (pango_ft2_font_get_face), (pango_ft2_font_get_glyph_extents): * pango/pangox.c (pango_x_find_subfont), (pango_x_render): * pango/pangoxft-font.c (_pango_xft_font_get_mini_font), (get_glyph_extents_missing), (pango_xft_font_get_font): * pango/pangoxft-private.h: * pango/pangoxft-render.c (get_total_matrix), (draw_box), (_pango_xft_renderer_draw_box_glyph), (_pango_xft_renderer_draw_unknown_glyph), (pango_xft_renderer_draw_glyphs): * pango/shape.c (pango_shape): Render PANGO_GLYPH_INVALID_INPUT to a single-width box with a cross inside. Also cleanup spewed warnings and warn at the source, where we fail to find a shaper, instead of at every location that we see a NULL font. * pango/pango-font.h: * docs/pango-sections.txt: * docs/tmpl/glyphs.sgml: New public macro: PANGO_GLYPH_INVALID_INPUT svn path=/trunk/; revision=2519
* Bug 472303 – Make PANGO_GLYPH_EMPTY and PANGO_GLYPH_UNKNOWN_FLAG publicBehdad Esfahbod2007-10-241-2/+0
| | | | | | | | | | | | | | 2007-10-24 Behdad Esfahbod <behdad@gnome.org> Bug 472303 – Make PANGO_GLYPH_EMPTY and PANGO_GLYPH_UNKNOWN_FLAG public * pango/pango-font.h: Make PANGO_GLYPH_EMPTY, * PANGO_GLYPH_UNKNOWN_FLAG, and PANGO_GET_UNKNOWN_GLYPH() public. Previously they were only defined for backend/engine implementations. svn path=/trunk/; revision=2464
* Add G_GNUC_CONST and G_GNUC_PURE annotations.Behdad Esfahbod2007-06-121-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-11 Behdad Esfahbod <behdad@gnome.org> * pango/pango-attributes.h: * pango/pango-font.h: * pango/pango-glyph.h: * pango/pango-gravity.h: * pango/pango-language.h: * pango/pango-layout.h: * pango/pango-matrix.h: * pango/pango-ot-private.h: * pango/pango-ot.h: * pango/pango-renderer.h: * pango/pango-script.h: * pango/pango-tabs.h: * pango/pango-utils.h: * pango/pangoatsui-private.h: * pango/pangocairo-atsui.h: * pango/pangocairo-atsuifont.h: * pango/pangocairo-fc.h: * pango/pangocairo-private.h: * pango/pangocairo-win32.h: * pango/pangocairo.h: * pango/pangofc-decoder.h: * pango/pangofc-font.h: * pango/pangofc-fontmap.h: * pango/pangoft2-private.h: * pango/pangoft2.h: * pango/pangowin32-private.h: * pango/pangox-private.h: * pango/pangoxft-render.h: * pango/pangoxft.h: Add G_GNUC_CONST and G_GNUC_PURE annotations. svn path=/trunk/; revision=2345
* Bug 440588 – Add pango_font_face_is_synthesized()Behdad Esfahbod2007-06-111-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | 2007-06-11 Behdad Esfahbod <behdad@gnome.org> Bug 440588 – Add pango_font_face_is_synthesized() * pango/pango-font.h: * pango/fonts.c: New PangoFontFace method is_synthesized. New public API: pango_font_face_is_synthesized() * pango/pangofc-fontmap.c (pango_fc_face_is_synthesized): Implement new method. * docs/pango-sections.txt: * docs/tmpl/fonts.sgml: * pango/pango.def: Update. svn path=/trunk/; revision=2342