summaryrefslogtreecommitdiff
path: root/pango/pango-font.h
Commit message (Collapse)AuthorAgeFilesLines
* 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
* *.c, *.h: Replace preceding sequences of 8 spaces with tabs.Behdad Esfahbod2007-01-161-6/+6
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Replace preceding sequences of 8 spaces with tabs. svn path=/trunk/; revision=2165
* *.c, *.h: Drop trailing whitespace.Behdad Esfahbod2007-01-161-8/+8
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Drop trailing whitespace. svn path=/trunk/; revision=2163
* Add gravity in PangoFontDescription.Behdad Esfahbod2006-08-201-1/+5
| | | | | | | | | | | | | | | | | 2006-08-20 Behdad Esfahbod <behdad@gnome.org> * docs/pango-sections.txt: * docs/tmpl/fonts.sgml: * pango/fonts.c (pango_font_description_set_gravity), (pango_font_description_get_gravity), (pango_font_description_merge_static), (pango_font_description_better_match), (pango_font_description_equal), (pango_font_description_hash), (find_field_any), (pango_font_description_from_string), (pango_font_description_to_string): * pango/pango-font.h: * pango/pango.def: Add gravity in PangoFontDescription.
* New function pango_font_describe_with_absolute_size().Behdad Esfahbod2006-05-221-1/+2
| | | | | | | | | | | | | | | | | 2006-05-22 Behdad Esfahbod <behdad@gnome.org> * pango/pango-font.h, pango/fonts.c: New function pango_font_describe_with_absolute_size(). * pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info): * pango/pangocairo-win32font.c (create_metrics_for_context): * pango/pangofc-font.c (pango_fc_font_class_init), (pango_fc_font_describe_absolute), (pango_fc_font_create_metrics_for_context): * pango/pangowin32.c (pango_win32_font_class_init), (pango_win32_font_get_metrics), (pango_win32_font_describe), (pango_win32_font_describe_absolute): Implement and use PangoFontClass->describe_absolute.
* Move PANGO_GLYPH_EMPTY, PANGO_GLYPH_UNKNOWN_FLAG, andBehdad Esfahbod2006-02-171-0/+7
| | | | | | | | | 2006-02-17 Behdad Esfahbod <behdad@gnome.org> * pango/pango-types.h, pango/pango-font.h: Move PANGO_GLYPH_EMPTY, PANGO_GLYPH_UNKNOWN_FLAG, and PANGO_GET_UNKNOWN_GLYPH from the former to the latter, and only define if PANGO_ENABLE_ENGINE or PANGO_ENABLE_BACKEND is set.
* Move PANGO_UNKNOWN_GLYPH_WIDTH/HEIGHT to pango-font.h, which makesBehdad Esfahbod2006-02-021-0/+6
| | | | more sense.
* PangoCairoFontMap for win32 fonts.Owen Taylor2005-02-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-02-24 Owen Taylor <otaylor@redhat.com> * pango/pangocairo-win32.h pango/pangocairo-win32font.c pango/pangocairo-win32fontmap.c pango/Makefile.am: PangoCairoFontMap for win32 fonts. * pango/pangocairo-fontmap.c: Use PangoCairoWin32FontMap when available. * pango/pangowin32.h pango/pangowin32-fontmap.h pango/pangowin32.c: Add virtual pango_win32_font_select_font() to prepare a DC for use with a PangoWin32Font, and to release, pango_win32_font_scale_font() to get logical unit => Pango units scale, pango_win32_font_done_font() to release resources. * pango/pangowin32-fontmap.[ch]: Add a find_font() virtual method to allow subclasses that change how PangoFont lookup and creation happens. * pango/pangowin32-fontmap.c: Move initialization into pango_win32_font_map_init() to facilitate derivation. * pango/pangowin2.c pango/pangowin32-fontmap.c pango/pangowin32-private.h: Move PangoWin32Font/PangoWin32FontMap definitions into pangowin32-private.h to allow derivation for PangoCairoWin32Font. * modules/basic/basic-win32.c: Use pango_win32_font_select_font() and friends. * modules/basic/basic-win32.c: Use g_utf8_to_utf16 instead of g_convert for simplicity and speed. * pango/fonts.c (pango_font_get_font_map) pango/pango-font.h pango/pangofc-font.c pango/pangowin32.c pango/pango.c pango/pango.def docs/pango-sections.txt: Add a virtual function to get the fontmap for a font. * pango/pangocairo-render.c: Use pango_font_get_font_map() rather than PangoFcFontMap hack. * pango/pango-types.h: Move the declaration of PangoFontMap here to avoid interactions between pango-font.h and pango-fontmap.h. * pango/pangocairo.h: Remove accidental include of pangofc-fontmap.h.