summaryrefslogtreecommitdiff
path: root/pango/fonts.c
Commit message (Collapse)AuthorAgeFilesLines
* Make matrix parameter const.Behdad Esfahbod2006-01-211-2/+2
| | | | | | | | | | | | | | | 2006-01-21 Behdad Esfahbod <behdad@gnome.org> * pango/pango-types.h, pango/pango-utils.h (pango_matrix_get_font_scale_factor): Make matrix parameter const. * pango/fonts.c, pango/pango-context.c, pango/pango-coverage.c, pango/pango-fontset.c, pango/pango-layout.c, pango/pango-renderer.c, pango/pango-types.h, pango/pango-utils.c, pango/pangocairo-atsuifont.c, pango/pangofc-font.c, pango/pangoft2-fontmap.c, pango/pangowin32-fontmap.c, pango/pangowin32.c, pango/pangox-fontmap.c, pango/pangoxft-font.c: Replace "Returns:" with "Return value:" in docs.
* Make sure #include <config.h> is the first include in the file. (bugBehdad Esfahbod2006-01-141-0/+1
| | | | | | | 2006-01-14 Behdad Esfahbod <behdad@gnome.org> * */*.c, */*/*.c: Make sure #include <config.h> is the first include in the file. (bug #158870, based on patch by Luis Menina)
* pango/Makefile.am, pango/fonts.c, pango/glyphstring.c,Behdad Esfahbod2006-01-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-05 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am, * pango/fonts.c, * pango/glyphstring.c, * pango/pango-attributes.c, * pango/pango-color.c, * pango/pango-impl-utils.h, * pango/pango-item.c, * pango/pango-layout.c, * pango/pango-tabs.c, * pango/pango-utils.c, * pango/pango-utils.h, * pango/pangoatsui-fontmap.c, * pango/pangocairo-font.c, * pango/pangocairo-fontmap.c, * pango/pangofc-fontmap.c, * pango/pangowin32-fontmap.c, * pango/pangox-fontmap.c, * pango/pangox.c, * pango/opentype/pango-ot-info.c, * pango/opentype/pango-ot-ruleset.c: Intern strings to avoid unnecessary strdups in the type system. (bug #325832, Matthias Clasen)
* Added "Since:" tags to all interfaces added after Pango 1.0. (#319116,Behdad Esfahbod2005-11-231-0/+4
| | | | | | | | | | | 2005-11-23 Behdad Esfahbod <behdad@gnome.org> * pango/fonts.c pango/pango-attributes.c pango/pango-context.c pango/pango-glyph-item.c pango/pango-layout.c pango/pango-script.c pango/pango-utils.c pango/pangofc-font.c pango/pangoft2-fontmap.c pango/opentype/pango-ot-buffer.c pango/opentype/pango-ot-ruleset.c: Added "Since:" tags to all interfaces added after Pango 1.0. (#319116, Brian Cameron)
* Remove excess "the" in docs. (#319175, Masao Mutoh)Behdad Esfahbod2005-11-231-1/+1
| | | | | | | 2005-11-23 Behdad Esfahbod <behdad@gnome.org> * pango/fonts.c (pango_font_description_get_absolute_size): Remove excess "the" in docs. (#319175, Masao Mutoh)
* General cleanup. (pango_font_description_unset_fields): Set fields beingBehdad Esfahbod2005-11-181-96/+73
| | | | | | | | | | 2005-11-17 Behdad Esfahbod <behdad@gnome.org> * pango/fonts.c (pango_font_description_*): General cleanup. (pango_font_description_unset_fields): Set fields being unset to their default value. (pango_font_description_hash, pango_font_description_equal): Do not use mask in these. Use all other fields unconditionally.
* More documentation improvements.Behdad Esfahbod2005-11-171-3/+3
| | | | | | | | | | | | | | 2005-11-17 Behdad Esfahbod <behdad@gnome.org> * docs/tmpl/coverage-maps.sgml docs/tmpl/fonts.sgml docs/tmpl/glyphs.sgml docs/tmpl/layout.sgml docs/tmpl/main.sgml docs/tmpl/scripts.sgml docs/tmpl/tab-stops.sgml docs/tmpl/text-attributes.sgml pango/break.c pango/fonts.c pango/pango-fontset.c pango/pango-layout.c pango/pango-script.c pango/pango-utils.c pango/pangofc-decoder.c pango/pangofc-decoder.h pango/pangofc-font.c pango/pangofc-font.h pango/pangoxft-font.c: More documentation improvements.
* Various documentation improvements.Behdad Esfahbod2005-11-171-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-16 Behdad Esfahbod <behdad@gnome.org> * docs/pango_markup.sgml docs/tmpl/coverage-maps.sgml docs/tmpl/engines.sgml docs/tmpl/fonts.sgml docs/tmpl/freetype-fonts.sgml docs/tmpl/glyphs.sgml docs/tmpl/layout.sgml docs/tmpl/main.sgml docs/tmpl/modules.sgml docs/tmpl/opentype.sgml docs/tmpl/pango-engine-lang.sgml docs/tmpl/pango-engine-shape.sgml docs/tmpl/pango-renderer.sgml docs/tmpl/pangocairo.sgml docs/tmpl/pangofc-decoder.sgml docs/tmpl/pangofc-font.sgml docs/tmpl/pangofc-fontmap.sgml docs/tmpl/scripts.sgml docs/tmpl/tab-stops.sgml docs/tmpl/text-attributes.sgml docs/tmpl/win32-fonts.sgml docs/tmpl/x-fonts.sgml docs/tmpl/xft-fonts.sgml pango/break.c pango/ellipsize.c pango/fonts.c pango/pango-attributes.c pango/pango-color.c pango/pango-context.c pango/pango-coverage.c pango/pango-fontmap.c pango/pango-glyph-item.c pango/pango-layout.c pango/pango-markup.c pango/pango-tabs.c pango/pango-types.h pango/pango-utils.c pango/pangoft2-render.c pango/pangox.c pango/pangoxft-render.c: Various documentation improvements.
* Turn various gcc warnings off. Adding const, adding static, fullyBehdad Esfahbod2005-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-04 Behdad Esfahbod <behdad@gnome.org> * configure.in, examples/argcontext.c examples/cairoview.c, examples/renderdemo.c, examples/renderdemo.h examples/xftview.c, modules/basic/basic-x.c, modules/hangul/hangul-fc.c, modules/hebrew/hebrew-shaper.c, modules/hebrew/hebrew-shaper.h, modules/indic/indic-fc.c, modules/indic/mprefixups.c, modules/syriac/syriac-fc.c, pango/break.c pango/fonts.c, pango/modules.c, pango/pango-coverage.c pango/pango-engine.c, pango/pango-engine.h, pango/pango-fontmap.c, pango/pango-fontset.c, pango/pango-impl-utils.h, pango/pango-layout.c, pango/pango-layout.h, pango/pango-renderer.c, pango/pango-script.c, pango/pango-utils.c, pango/pangocairo-fc.h, pango/pangocairo-font.c, pango/pangocairo-fontmap.c, pango/pangocairo-private.h, pango/pangofc-decoder.c, pango/pangofc-font.c, pango/pangofc-fontmap.c pango/pangoft2.c, pango/pangox-fontcache.c, pango/pangox-fontmap.c pango/pangox.c, pango/pangoxft-font.c, pango/querymodules.c, pango/opentype/ftglue.c, pango/opentype/ftxgpos.c, pango/opentype/ftxopen.c, pango/opentype/pango-ot-buffer.c, pango/opentype/pango-ot-info.c, pango/opentype/pango-ot-ruleset.c, tests/dump-boundaries.c, tests/testboundaries.c, tests/testcolor.c tests/testiter.c, tests/testscript.c: Turn various gcc warnings off. Adding const, adding static, fully initializing structs, match signedness in comparisons. (#317804) * tests/testscript.c, tools/gen-script-for-lang.c: (scripts_for_file): Pass error->message instead of error to fail(), which was wrong. (compare_lang): Fix typo comparing a and a instead of a and b.
* Reduce non-shared data (#168899, inspired by patches from Tommi KomulainenOwen Taylor2005-03-051-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | 2005-03-04 Owen Taylor <otaylor@redhat.com> Reduce non-shared data (#168899, inspired by patches from Tommi Komulainen and Ross Burton) * pango/pango-color.c pango/pango-color-table.h tools/gen-color-table.pl: Redo storage of colors to use offsets into a static string rather than embedded strings. (Inspired by a patch from Tommi Komulainen, #168899) * pango/break.c pango/fonts.c pango/pango-color.c pango/pango-layout.c pango/pango-markup.c pango/pango-script-lang-table.h pango/mini-fribidi/fribidi_types.c tools/gen-script-for-lang.c: Add const in various places * modules/arabic/arabic-fc.c modules/hebrew/hebrew-fc.c: modules/indic/{indic-fc.c,indic-ot-class-tables.c, indic-ot.h} modules/syriac/syriac-ot.c (syriac): Further addition of const.
* For family names that add in numbers add a , to distinguish them fromOwen Taylor2005-03-021-7/+34
| | | | | | | | | 2005-03-02 Owen Taylor <otaylor@redhat.com> * pango/fonts.c (pango_font_description_from_string_: For family names that add in numbers add a , to distinguish them from family+size (#166540, debugging/testing by Manish Singh)
* PangoCairoFontMap for win32 fonts.Owen Taylor2005-02-241-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Minor doc fixes. (#167922, #167924, Billy Biggs)Owen Taylor2005-02-211-1/+1
| | | | | | | | 005-02-21 Owen Taylor <otaylor@redhat.com> * pango/fonts.c (pango_font_get_glyph_extents): * pango/shape.c (pango_shape): Minor doc fixes. (#167922, #167924, Billy Biggs)
* Add pixel sizes for fonts (#119081, patch from Chris Lahey)Owen Taylor2004-12-161-11/+75
| | | | | | | | | | | | | | | | | | | | | Wed Dec 15 22:09:42 2004 Owen Taylor <otaylor@redhat.com> Add pixel sizes for fonts (#119081, patch from Chris Lahey) * pango/fonts.c pango/pango-font.h: Add pango_font_description_set_absolute_size(), pango_font_description_get_size_is_absolute() * pango/pango-attributes.[ch]: Add pango_attr_size_new_absolute(), change PANGO_ATTR_SIZE from PangoAttrInt to PangoAttrSize (preserves compat because first component is identical) * pango/pangowin32-fontmap.c (pango_win32_font_map_load_font): For absolute sizes, convert pixels to points, before calling pango_win32_font_new(). * pango/pangofc-fontmap.c pango/pangoft2.c pango/pangoxft-font.c: Handle absolute sizes.
* Add PANGO_WEIGHT_SEMIBOLD. (#86957, Lars Clausen)Owen Taylor2004-12-141-1/+1
| | | | | | | | | | | | | | Tue Dec 14 18:08:36 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-font.h: Add PANGO_WEIGHT_SEMIBOLD. (#86957, Lars Clausen) * pango/fonts.c: s/600/PANGO_WEIGHT_SEMIBOLD. * pango/pangofc-fontmap.c (pango_fc_convert_weight_to_fc) * pango/pangofc-fontmap.c (pango_fc_convert_weight_to_pango): Handle PANGO_WEIGHT_SEMIBOLD, use additional weights added in fontconfig-2.2.
* === Released 1.6.0 ===PANGO_1_6_0Owen Taylor2004-09-141-0/+8
| | | | | | | | | | | | | | | | | Mon Sep 13 17:38:58 2004 Owen Taylor <otaylor@redhat.com> * === Released 1.6.0 === * configure.in: Update versions for 1.6.0 * NEWS: Update. * README: Minor tweak. * pango/fonts.c pango/pango-context.c pango/pango-types.h pango/pango-utils.c pango/pangoft2.c pango/pango-layout.c pango/opentype/pango-ot-buffer.c: Add a bunch of missing Since: 1.6.
* Make PangoMatrix arguments const where appropriate.Owen Taylor2004-07-101-73/+25
| | | | | | | | | | | | | | | | | Sat Jul 10 17:33:38 2004 Owen Taylor <otaylor@redhat.com> * pango/pangoft2-private.h pango/pangoft2-render.c pango/pango-context.[ch] pango/pangoft2.[ch] pango/pango-utils. pango/pango-types.h pango/pangofc-fontmap.c: Make PangoMatrix arguments const where appropriate. * pango/pango-context.c pango/fonts.c pango/pangofc-font.c pangofc-fontmap.c pango/pangoft2.c pango/pangoft2-fontmap.c pango/pangoxft-font.c pango/pangoxft-fontmap.c pango/pangowin32-fontmap.c: Use G_DEFINE_TYPE comprehensively. * pango/pangoft2-private.h pangoft2.c: Un-staticify pango_ft2_font_get_type.
* Add pango_context_get_font_map()Owen Taylor2004-07-081-1/+1
| | | | | | | | | | | | | | | Thu Jul 8 15:25:29 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-context.[ch]: Add pango_context_get_font_map() * pango/pango-fonts.c pango/pango-fontset.c pango/pango-context.c: Some s/PangoMetrics/PangoFontMetrics/ in docs. * pango/pango-context.c: Fix problem with unsetting the matrix for a context. * pango/pango-types.h: Switch to a much more efficient implementation of PANGO_SCALE.
* Add underline and strikethrough position and thickness metrics.Owen Taylor2004-05-271-0/+70
| | | | | | | | | | | | | | Thu May 27 15:32:03 2004 Owen Taylor <otaylor@redhat.com> * pango/pango-font.h pango/fonts.c: Add underline and strikethrough position and thickness metrics. * pango/pangofc-font.c: Implement underline and strikethrough position and thickness metrics. * pango/pango-fontset.c (pango_fontset_real_get_metrics): Initialize metrics from the metrics of the first font in the fontset.
* New API pango_font_family_is_monospace. (#108728)Noah Levitt2004-02-231-0/+30
| | | | | | | | | 2003-02-23 Noah Levitt <nlevitt@columbia.edu> * pango/pangowin32-fontmap.c: * pango/pangofc-fontmap.c: * pango/pango-font.h: * pango/fonts.c: New API pango_font_family_is_monospace. (#108728)
* Handle NULL for sizes and n_sizes.Noah Levitt2004-02-231-4/+8
| | | | | | | | 2003-02-23 Noah Levitt <nlevitt@columbia.edu> * pango/fonts.c (pango_font_face_list_sizes): * pango/pangofc-fontmap.c (pango_fc_face_list_sizes): Handle NULL for sizes and n_sizes.
* New API for getting available sizes for a bitmap font face.Noah Levitt2004-02-231-0/+30
| | | | | | | | | | 2003-02-22 Noah Levitt <nlevitt@columbia.edu> * pango/pango-font.h: * pango/pangofc-fontmap.c: * pango/pangowin32-fontmap.c: * pango/fonts.c (pango_font_face_list_sizes): New API for getting available sizes for a bitmap font face.
* Hash case insensitively (#106942, Morten Welinder)Owen Taylor2003-04-301-1/+19
| | | | | | | Wed Apr 30 16:46:52 2003 Owen Taylor <otaylor@redhat.com> * pango/fonts.c (pango_font_description_hash): Hash case insensitively (#106942, Morten Welinder)
* Free the right string.Owen Taylor2003-04-161-1/+1
| | | | | | | Tue Apr 15 09:19:21 2003 Owen Taylor <otaylor@redhat.com> * pango/fonts.c (pango_font_description_set_family): Free the right string.
* Switch around the code so that pango_font_description_set_family (desc,Owen Taylor2003-04-151-4/+6
| | | | | | | | | | | Tue Apr 15 05:34:05 2003 Owen Taylor <otaylor@redhat.com> * pango/fonts.c (pango_font_description_set_family): Switch around the code so that pango_font_description_set_family (desc, pango_font_description_set_family (desc)) in the case where desc->static_family is TRUE. (#106964, Morten Welinder)
* Avoid crash with string such as " 12" (bug #103674)Padraig O'Briain2003-01-171-1/+1
| | | | | | | 2003-01-17 Padraig O'Briain <padraig.obriain@sun.com> * pango/fonts.c (pango_font_description_from_string): Avoid crash with string such as " 12" (bug #103674)
* Remove some confusing left over verbiage in API docs about what fontOwen Taylor2002-11-261-2/+1
| | | | | | | | | Mon Nov 25 19:57:02 2002 Owen Taylor <otaylor@redhat.com> * pango/fonts.c (pango_font_description_free): Remove some confusing left over verbiage in API docs about what font descriptions could be freed. (#96558, Michael R. Walton.)
* Typo fix.Matthias Clasen2002-06-031-1/+1
| | | | | | | | | * pango/fonts.c (pango_font_description_better_match): Typo fix. * pango/pango-color.c (pango_color_parse): * docs/pango-docs.sgml: Replace homegrown "nbsp", "hash" and "mdash" entities by standard ISO entities "nbsp", "num" and "mdash".
* Produce XML, not SGML.Matthias Clasen2002-05-271-2/+2
| | | | | | | | | * docs/*: Produce XML, not SGML. * pango/fonts.c (pango_font_family_list_faces): Docs typo fix. * pango/pango-color.c (pango_color_parse): Fix markup to reduce spurious <link>s.
* this function may never return NULL, so we shouldn't say so in theSven Neumann2002-03-251-2/+1
| | | | | | | 2002-03-25 Sven Neumann <sven@gimp.org> * pango/fonts.c (pango_font_description_from_string): this function may never return NULL, so we shouldn't say so in the comment.
* Add some text names to weight map for weights that were added to theOwen Taylor2002-03-061-2/+5
| | | | | | | | Wed Mar 6 12:12:21 2002 Owen Taylor <otaylor@redhat.com> * pango/fonts.c: Add some text names to weight map for weights that were added to the PangoWeight enumeration but not here. (#73728, Arnaud Charlet)
* isspace -> g_ascii_isspace (pango_font_description_from_string): isspaceDarin Adler2002-02-101-6/+5
| | | | | | | | | | | | | | | | * pango/fonts.c: (getword): isspace -> g_ascii_isspace (pango_font_description_from_string): isspace -> g_ascii_isspace * pango/modules.c: Remove unneeded <ctype.h> include. * pango/pango-markup.c: (xml_isspace): New. (pango_parse_markup): isspace -> xml_isspace (span_parse_func): isdigit -> g_ascii_isdigit * pango/pango-utils.c: (pango_trim_string): isspace -> g_ascii_isspace (pango_skip_space): isspace -> g_ascii_isspace (pango_scan_word): isspace -> g_ascii_isspace (pango_scan_string): isspace -> g_ascii_isspace (pango_scan_int): isspace -> g_ascii_isspace * pango/pangoft2-fontmap.c: Remove unneeded <ctype.h> include. * pango/pangox-fontmap.c: Remove unneeded <ctype.h> include.
* Initialize the static_family field. (Fix from Zack Rusin)Owen Taylor2002-01-161-0/+2
| | | | | | | Wed Jan 16 09:25:34 2002 Owen Taylor <otaylor@redhat.com> * pango/fonts.c (pango_font_description_from_string): Initialize the static_family field. (Fix from Zack Rusin)
* slight correction to pango_layout_get_extents(), docs still need to beHavoc Pennington2002-01-141-6/+6
| | | | | | | | | | | | | 2002-01-14 Havoc Pennington <hp@pobox.com> * pango/pango-layout.c: slight correction to pango_layout_get_extents(), docs still need to be clearer, but at least they aren't a cut-and-paste of glyph string docs now. * docs/tmpl/glyphs.sgml: add note about special-case use of PANGO_SCALE with font sizes * pango/fonts.c: fix docs to be correct about PANGO_SCALE
* fix up docs to be clearer about PANGO_SCALE, as suggested by DennisHavoc Pennington2002-01-131-12/+12
| | | | | | | 2002-01-13 Havoc Pennington <hp@pobox.com> * pango/fonts.c: fix up docs to be clearer about PANGO_SCALE, as suggested by Dennis Bjorklund
* Update the field mask in the merged description.Owen Taylor2002-01-021-0/+4
| | | | | | | Tue Jan 1 20:52:00 2002 Owen Taylor <otaylor@redhat.com> * pango/fonts.c (pango_font_description_merge[_static]): Update the field mask in the merged description.
* removed the arbitrary limit to 10 fonts. Instead make the command lineHans Breuer2001-11-231-1/+2
| | | | | | | | | | | | | | | | | | | | 2001-11-23 Hans Breuer <hans@breuer.org> * testfonts.c : removed the arbitrary limit to 10 fonts. Instead make the command line params useful again and reduce the default result bitmap size by decreasing the default font size. * pango/pangowin32-fontcache.c (pango_win32_font_cache_load): Don't always turn on anti-aliasing. Respect the users settings from 'Properties of Display/Effects'. * pango/makefile.msc : updated, version 0.22 * pango/pango.def : updated externals * pango/font.c pango/pango-coverage.c pango-utils.c pango/pangowin32.c pango/shape.c : coding style and static correctness
* Add pangoxft-private.h.Matthias Clasen2001-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * docs/Makefile.am (IGNORE_HFILES): Add pangoxft-private.h. * pango/pango-utils.c (pango_language_from_string): Fix typo in documentation. * docs/tmpl/text-attributes.sgml: Document PangoColor, PangoLanguage, PangoAttrLanguage, PangoAttrFloat and PangoAttrShape. * docs/tmpl/layout.sgml: Document PangoWrapMode and PangoLayoutIter. * docs/tmpl/tab-stops.sgml: Document PangoTabAlign and PangoTabArray. * docs/tmpl/fonts.sgml: Document PangoFontMask. * pango/fonts.c (pango_font_description_unset_fields): Fix typo in documentation. * docs/tmpl/opentype.sgml: Remove documentation templates of the unimplemented functions pango_ot_ruleset_set_glyph_loader and pango_ot_ruleset_set_alternate_func and the related typedefs PangoOTGlyphLoader and PangoOTAlternateFunc. * docs/tmpl/x-rendering.sgml: Document PangoGetGCFunc and PangoFreeGCFunc typedefs.
* Patch from Darin Adler, with updates, to use g_ascii_* instead ofOwen Taylor2001-11-021-13/+12
| | | | | | | | | | | | | Fri Nov 2 08:50:16 2001 Owen Taylor <otaylor@redhat.com> * pango/{fonts.c,pango-color.c,pango-utils.c, pangoft2-fontmap.c,pangowin32-fontcache.c, pangowin32-fontmap.c, pangox-fontmap.c}: Patch from Darin Adler, with updates, to use g_ascii_* instead of locale-dependent variants (#55833). * pango/fonts.c: Use g_ascii_dtostr, g_ascii_strtod().
* Documentation updates.Matthias Clasen2001-10-261-1/+1
| | | | | | | | | | | | * pango/fonts.c, pango/pangoft2.c, pango/pangowin32.c, pango/pangoxft-font.c, pango/pangox-fontmap.c, pango/pangoft2-fontmap.c, pango/pangoxft-fontmap.c, pango/pangowin32-fontmap.c, docs/pango-sections.txt, docs/tmpl/coverage-maps.sgml, docs/tmpl/fonts.sgml, docs/tmpl/freetype-fonts.sgml, docs/tmpl/glyphs.sgml, docs/tmpl/layout.sgml, docs/tmpl/main.sgml, docs/tmpl/modules.sgml, docs/tmpl/tab-stops.sgml, docs/tmpl/text-attributes.sgml, docs/tmpl/win32-fonts.sgml: Documentation updates.
* pango/tmpl/x-fonts.sgml pango/break.c small documentation fixes.Matthias Clasen2001-10-151-31/+31
| | | | | | * pango/tmpl/x-fonts.sgml * pango/break.c * pango/fonts.c: small documentation fixes.
* don't include family name if PANGO_FONT_MASK_FAMILY is not set.Sven Neumann2001-10-031-1/+1
| | | | | | | | | | 2001-10-03 Sven Neumann <sven@gimp.org> * pango/fonts.c (pango_font_description_to_string): don't include family name if PANGO_FONT_MASK_FAMILY is not set. * pango/pangoft2-fontmap.c: make it compile with DEBUGGING being defined.
* g_string_printfa => g_string_append_printf.Owen Taylor2001-10-011-2/+2
| | | | | | Mon Oct 1 16:02:54 2001 Owen Taylor <otaylor@redhat.com> * pango/fonts.c: g_string_printfa => g_string_append_printf.
* Version 0.20PANGO_0_20Owen Taylor2001-09-251-29/+14
| | | | | | | | | | | | | | | | | | | Tue Sep 25 11:54:03 2001 Owen Taylor <otaylor@redhat.com> * configure.in: Version 0.20 * NEWS: Updated * configure.in (GLIB_REQUIRED_VERSION): Require GLib 1.3.9 * examples/Makefile.am (EXTRA_DIST): Add the viewer-qt in case someone (say Tim) makes dist without qt installed. (reported by Tony Graham) * examples/Makefile.am (pango.modules): Don't use grep -q (reported by Tony Graham) * docs/pango-sections.txt: Fix small typo.
* Set PANGO_FONT_MASK_FAMILY. (#60888, reported by Mario Motta)Owen Taylor2001-09-211-1/+4
| | | | | | | Fri Sep 21 18:55:18 2001 Owen Taylor <otaylor@redhat.com> * pango/fonts.c (pango_font_description_from_string): Set PANGO_FONT_MASK_FAMILY. (#60888, reported by Mario Motta)
* pango/fonts.c (append_field, pango_font_description_to_string):Matthias Clasen2001-09-211-2/+2
| | | | replace g_string_sprintfa by g_string_printfa.
* unset the static_family flag so the family_name gets freed on the nextSven Neumann2001-09-201-0/+2
| | | | | | | | 2001-09-20 Sven Neumann <sven@gimp.org> * pango/fonts.c (pango_font_description_set_family, pango_font_description_copy): unset the static_family flag so the family_name gets freed on the next call.
* fix rule so that flags get registered as flags and rather than enumsJames Henstridge2001-09-201-0/+14
| | | | | | | | | | | | | 2001-09-20 James Henstridge <james@daa.com.au> * pango/Makefile.am (s-enum-types-c): fix rule so that flags get registered as flags and rather than enums (enums still get registered as enums). * pango/pango-font.h: add get_type routine to header. * pango/fonts.c (pango_font_metrics_get_type): add get_type() routine.
* Include parent_instance structures.Owen Taylor2001-09-181-1/+1
| | | | | | | | | | Tue Sep 18 17:29:20 2001 Owen Taylor <otaylor@redhat.com> * pango/pangoft2-fontmap.c pango/pangoft2-private.h: Include parent_instance structures. * pango/fonts.c (pango_font_family_get_type): Pass in right class structure.
* Up to 0.19.Owen Taylor2001-09-181-11/+867
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Sep 18 15:47:08 2001 Owen Taylor <otaylor@redhat.com> * configure.in (PANGO_MINOR_VERSION): Up to 0.19. * pango/pango-font.h pango/pango-fontmap.[ch] pango/fonts.c pango/pangoxft-fontmap.c pango/pangoft-fontmap.c pango/pango-context.[ch] pango/pangox-fontmap.c: Add new PangoFontFace and PangoFontFamily object types, and change the font listing API to list faces and families, instead of face names and font descriptions. * pango/pango-font.h pango/fonts.c: Make PangoFontDescription an opaque heap-allocated structure, add accessors and convenience functions. * pango/pango-font.h pango/pango-private.h: Make PangoFontMetrics heap allocated, protect the structure definition with #ifdef PANGO_ENABLE_BACKEND, and add getters for the fields. * pango/pango-attributes.[ch] ( pango_attr_iterator_get_font): instead of providing a base font description and one to fill in, provide a single font description to modify based on the attributes. * pango/pango-attributes.[ch]: Fix PangoAttrFontDesc to have a PangoFontDescription by reference, not by value. * pango/pango-utils.[ch]: make pango_parse_style() and friends take pointers to individual enumerations instead of to a PangoFontDescription structure. * pango/*.c: Fix for the PangoFontDescription and PangoFontMetrics changes. * pango/pango-{break,engine,indic,ot,xft}.h pango/Makefile.am pango/opentype/Makefile.am: Protect portions with PANGO_ENABLE_ENGINE to shrink the public API. * modules/*/Makefile.am: -DPANGO_ENABLE_ENGINE. * pango/{pangox.h,pangox-private.h} modules/basic/basic-x.c: Move pango_x_font_get_unknown_glyph() into public header since it is used from modules. * pango/pango-{context,font,fontmap,modules.utils}.h pango/Makefile.am: Protect portions with PANGO_ENABLE_BACKEND to shrink the public API. * pango/*.h: Use G_BEGIN/END_DECLS * examples/viewer-qt.[cc,h]: Fix for changes to font listing API, PangoFontDescription. * pango/pango-indic.h modules/indic/*: Since we install this header fix it up to Pango conventions, namespece ZERO_WIDTH_JOINER, ZERO_WIDTH_NON_JOINER. * docs/pango-sections.txt: Updated.