summaryrefslogtreecommitdiff
path: root/pango/pangowin32-fontmap.c
Commit message (Collapse)AuthorAgeFilesLines
* Drop g_type_init callsMatthias Clasen2019-07-041-5/+0
| | | | | These were ifdefed to an older version of GLib than we require now, so are just dead code.
* pangowin32: Read the font fallback list from the registry instead of ↵Christoph Reiter2018-12-041-2/+103
| | | | | | | | | | | | | | | hardcoding it for some fonts. We only had a fallback list for "Segoe UI" which is the default Windows font, but not on Chinese or Korean Windows version which use "JhengHei UI" etc. and fall back to "Segoe UI". Instead of hardcoding the fallbacks in the alias list read them from the registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink) This should allow us to use the default Windows font by default in gtk+ on Win8+, see https://gitlab.gnome.org/GNOME/gtk/merge_requests/436 for details. This also bumps the required Windows version to Vista for RegGetValueW().
* pangowin32-fontmap.c: Add an Emoji font familyChun-wei Fan2018-03-311-1/+2
| | | | | | | | | | | | | | | | | | | Add an Emoji font family that maps to the following fonts in this order (by fallback): Segoe UI Emoji Segoe UI Symbol Segoe UI This will enable Emoji to be displayed correctly in GTK+ apps (without the use of FontConfig) on Windows Vista and later, providing that one of the aforementioned fonts are installed. Note that this only enables Emoji display (*not* colored ones) as achieving colored Emoji requires PangoWin32 and Cairo to be ported to Direct2D and DirectWrite from Uniscribe and GDI, as Uniscribe and GDI does not support colored Emoji. https://bugzilla.gnome.org/show_bug.cgi?id=794705
* Bug 764089 - PangoWin32FontMap Memory LeakBehdad Esfahbod2016-03-261-3/+53
| | | | | | | | Add finalizers to PangoWin32FontMap Patch from Geoffrey Yerem. Part of https://bugzilla.gnome.org/show_bug.cgi?id=764089
* Remove gmodule dependency and deprecate some more symbolsBehdad Esfahbod2015-04-051-1/+0
|
* [win32] Don't read pango.aliasesBehdad Esfahbod2015-04-041-54/+0
| | | | Part of Bug 733882 - Kill Pango modules, engines, and config files
* Deprecate module system, skip it for shaper modulesBehdad Esfahbod2015-04-041-4/+0
| | | | | | | | | | | | | | Now shaper is discovered via (previously unused!) font->find_shaper(). I'm keeping that just to allow clients override shaping. Though, even that I'm not sure we want to keep. Wraps shaper in PangoEngineShape structs to keep PangoAnalysis API intact. Deprecated pango-modules.h and some pango-engine.h. Language modules are not moved yet. Wired up PangoFc, PangoWin32, and PangoCoretext shapers.
* [win32] Bug 733764 - Support more / free font weightsBehdad Esfahbod2014-07-251-34/+4
|
* [win32] Fixup previous commitBehdad Esfahbod2014-04-091-1/+1
|
* [win32] Improve threadsafetyBehdad Esfahbod2014-04-091-21/+25
| | | | | | | | | | | | | | | | Based on patch from Chun-wei Fan. Original patch comments: Improve the thread-safety situation on Windows by only allowing the pango_aliases_ht GHashTable be populated once. Pango on Windows is not yet thread-safe, but with the thread safety patch on Cairo-Win32-Font[1], it does seem that the test program test-pangocairo-threads does not crash randomly anymore, which seems to be an improvement. [1]: https://bugs.freedesktop.org/show_bug.cgi?id=73012 Fixes https://bugzilla.gnome.org/show_bug.cgi?id=695913
* Bug 685167 - migrate docs to no-tmpl flavourBehdad Esfahbod2013-09-271-2/+2
| | | | Patch from Rafał Mużyło.
* Bug 682846 - Use G_DEFINE_TYPE in pangowin32-fontmapBehdad Esfahbod2013-03-151-55/+21
| | | | Based on patch from Chun-wei Fan.
* Port PangoWin32 to use GWeakRefBehdad Esfahbod2013-03-151-4/+4
| | | | Patch from Chun-wei Fan.
* [win32] Fix assertion and warningsBehdad Esfahbod2013-02-251-1/+3
| | | | | | When win32 fontmap goes away, font->fontmap becomes NULL. Deal with that. Technically speaking, we need to port this to GWeakRef like the other fontmaps do. But this would do for now.
* Don't call g_type_init if GLib is new enoughMatthias Clasen2013-01-071-0/+2
| | | | | g_type_init has been deprecated in GLib 2.35.x. Use a version check here to avoid depending on unstable GLib.
* Bug 685021: "Add" load_fontset() for Win32 backendChun-wei Fan2012-10-301-0/+157
| | | | | | | | | | | | We now need a load_fontset() implementation for the Windows backend as the pango.aliases handling is moved to pangowin32-fontmap.c since commit 831611158, so that it will go through the pango.aliases file and load the appropriate fontset needed to display various texts. This basically copies pango_font_map_load_fontset() from pango-fontmap.c and adds the old (pre-commit 831611158) pango_font_map_fontset_add_fonts(), but using pango_win32_font_map_load_font() in place of pango_font_map_load_font().
* pango/pangowin32-fontmap.c: Fix buildChun-wei Fan2012-09-141-1/+3
| | | | | | -Include glib/gstdio.h for g_fopen -Make up for a missed #endif -correct an internal function name, pango_load_aliases to load_aliases
* More churnBehdad Esfahbod2012-08-281-2/+2
|
* Make static data thread safe in pangowin32-fontmap.cAlessandro Pignotti2012-08-271-4/+2
|
* Make a couple of functions reentrantAlessandro Pignotti2012-08-271-8/+7
|
* Deprecate pango_lookup_aliases()Matthias Clasen2012-08-271-1/+277
| | | | Part of Bug 377539 - (pango-threadsafe) Make Pango thread-safe
* Bug 578935 – Syntax error (missing semicolon) in pango/pangowin32-fontmap.cBehdad Esfahbod2009-04-141-1/+1
| | | | Add missing semicolon.
* Allow font_family=NULL in load_font() and load_fontset() methodsBehdad Esfahbod2009-04-061-3/+5
|
* Revert change from 2008-05-28 that mapped words and word pairs thatTor Lillqvist2009-03-091-98/+2
| | | | | | | | | | indicate weight or stretch into the corrersponding Pango font description setting and stripped those word(s) from the family name. Personally I liked the effect this had on the GTK+ font picker, combining all weight and stretch variants of what de facto is one typeface family (for instance DejaVu) under one family name. But Bulia Byak reported that this caused regressions in Inkscape. So OK then.
* Bug 143542 – PangoFT2Fontmap leakBehdad Esfahbod2008-08-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-22 Behdad Esfahbod <behdad@gnome.org> Bug 143542 – PangoFT2Fontmap leak * pango/fonts.c: * pango/pangoatsui.c (pango_atsui_font_finalize), (_pango_atsui_font_set_font_map): * pango/pangocairo-font.c (_pango_cairo_font_get_metrics), (_pango_cairo_font_private_get_hex_box_info): * pango/pangocairo-win32font.c (_pango_cairo_win32_font_new): * pango/pangofc-font.c (pango_fc_font_get_metrics): * pango/pangofc-fontmap.c (pango_fc_font_map_add), (_pango_fc_font_map_remove), (cleanup_font): * pango/pangowin32-fontmap.c (pango_win32_font_neww), (pango_win32_font_map_real_find_font): * pango/pangowin32.c (pango_win32_font_finalize): * pango/pangox-fontmap.c (pango_x_font_map_load_font): * pango/pangox.c (pango_x_font_new), (pango_x_font_finalize): Make the reference the font->fontmap reference weak. The code for setting the reference must look like this: g_assert (font->fontmap == NULL); font->fontmap = (PangoFontMap *) fontmap; g_object_add_weak_pointer (G_OBJECT (font->fontmap), (gpointer *) (gpointer) &font->fontmap); And releasing it like: g_assert (font->fontmap != NULL); g_object_remove_weak_pointer (G_OBJECT (font->fontmap), (gpointer *) (gpointer) &font->fontmap); font->fontmap = NULL; I have converted all fontmaps. The win32 and atsui ones can use some simple testing. The PangoFc fonts actually don't need the weakref as the fontmap already provides a similar link by itself. svn path=/trunk/; revision=2704
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Behdad svn path=/trunk/; revision=2657
* Map words that indicate weight and slant in the font name into theTor Lillqvist2008-05-271-9/+108
| | | | | | | | | | | | | | | | | | 2008-05-28 Tor Lillqvist <tml@novell.com> * pango/pangowin32-fontmap.c (pango_win32_font_description_from_logfont) (pango_win32_font_description_from_logfontw): Map words that indicate weight and slant in the font name into the corresponding Pango font description settings, and strip those words from the family name. This maps for instance the DejaVu Sans, DejaVu Sans Condensed and DejaVu Sans Light fonts into a single DejaVu Sans family with styles Ultra-Light, Condensed, Oblique Condensed, Oblique, Bold Condensed, Bold, Bold Oblique Condensed, and Bold Oblique, which is nice. svn path=/trunk/; revision=2644
* Rework face synthesis once again. Code is simpler now, and we don'tTor Lillqvist2008-05-271-83/+81
| | | | | | | | | | | | | | | | 2008-05-28 Tor Lillqvist <tml@novell.com> * pango/pangowin32-fontmap.c (synthesize_foreach) (_pango_win32_font_map_init): Rework face synthesis once again. Code is simpler now, and we don't needlessly synthesize bold weights for fonts that have a real semi-bold weight, like Lucida Sans. (The bold weight ended up looking like the semi-bold anyway.) (pango_win32_font_description_from_logfont): Recognize the semi-bold weight interval. svn path=/trunk/; revision=2642
* After the change to how the standard pseudo font families are set upTor Lillqvist2008-05-271-20/+2
| | | | | | | | | | | | 2008-05-27 Tor Lillqvist <tml@novell.com> * pango/pangowin32-fontmap.c (pango_win32_family_list_faces): After the change to how the standard pseudo font families are set up below, we don't need to prune out duplicate face names any longer. svn path=/trunk/; revision=2641
* Synthesize also Bold and Bold Italic (or Oblique) faces when feasible.Tor Lillqvist2008-05-271-71/+176
| | | | | | | | | | | | | | | 2008-05-27 Tor Lillqvist <tml@novell.com> * pango/pangowin32-fontmap.c: Synthesize also Bold and Bold Italic (or Oblique) faces when feasible. Don't synthesize these for decorative or script fonts. Kill the magic code snippet mentioned below. Instead, explicitly create font families for the standard pseudo fonts that correspond to the first existing font of the corresponding built-in alias list. Use the face style name Oblique for slanted sans and monospace fonts, not Italic. svn path=/trunk/; revision=2639
* Prune duplicated face names. Makes the GTK+ font selector look a bit sanerTor Lillqvist2008-05-261-8/+37
| | | | | | | | | | | | | | | | | | | | | | | | 2008-05-27 Tor Lillqvist <tml@novell.com> * pango/pangowin32-fontmap.c (pango_win32_family_list_faces): Prune duplicated face names. Makes the GTK+ font selector look a bit saner for the "sans", "serif" and "monospace" standard pseudo font families with just one instance of each style. That we get duplicated styles in the first place is because of the magic code snippet in pango_win32_insert_font() that sets up the list of faces for the standard pseudo font families. I don't like that code but without it these families wouldn't currently show up in the font selector at all. A problem is still that the magic code blindly adds all random fonts that claim to be FF_ROMAN to the list of faces for the "serif" family, etc. I think it would be preferrable to do it only for well-known sensible fonts. That would be those that are listed in builtin_aliases in pango-utils.c, I guess. svn path=/trunk/; revision=2638
* pango/pangowin32-private.h Drop the PangoWin32FontMap::n_fonts field whichTor Lillqvist2008-05-261-25/+20
| | | | | | | | | | | | | 2008-05-26 Tor Lillqvist <tml@novell.com> * pango/pangowin32-private.h * pango/pangowin32-fontmap.c: Drop the PangoWin32FontMap::n_fonts field which wasn't really used for anything. Rename the field PangoWin32Family::font_entries to faces. Rename some local variables to be more consistently named. svn path=/trunk/; revision=2637
* pango/pangowin32.c Some whitespace cleanup.Tor Lillqvist2008-05-261-15/+17
| | | | | | | | | | 2008-05-26 Tor Lillqvist <tml@novell.com> * pango/pangowin32.c * pango/pangowin32-fontmap.c: Some whitespace cleanup. svn path=/trunk/; revision=2636
* pango/pangowin32-private.h Drop the PangoWin32SizeInfo struct and the hashTor Lillqvist2008-05-261-121/+69
| | | | | | | | | | | | | | | | 2008-05-26 Tor Lillqvist <tml@novell.com> * pango/pangowin32-private.h * pango/pangowin32-fontmap.c: Drop the PangoWin32SizeInfo struct and the hash table mapping from the relevant part of a LOGFONTW struct to a list of PangoWin32SizeInfos in PangoWin32FontMap. It seems that each list was always of length one anyway, so instead just map directly to each such single list member, also a LOGFONTW struct. Actually I wonder whether this map is needed at all, will have to experiment. svn path=/trunk/; revision=2635
* Bug 515484: Pango on Windows is missing Type 1 font support Patch fromTor Lillqvist2008-02-241-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-02-24 Tor Lillqvist <tml@novell.com> Bug 515484: Pango on Windows is missing Type 1 font support Patch from Adrian Johnson. * pango/pangowin32-private.h (PangoWin32Face): Add has_cmap field that tells whether the font has a cmap or not. A Type 1 font doesn't. * pango/pangowin32.c (pango_win32_font_get_type1_glyph_index): New static function. Uses GetGlyphIndicesW() to get the glyph indices for Type 1 fonts. Possibly also TrueType fonts that for some reason lack the cmap formats we understand. (pango_win32_font_calc_type1_coverage): New static function. Uses GetFontUnicodeRanges() to get the coverage for Type 1 fonts, and possibly TrueType fonts that lack the cmap formats we understand. (pango_win32_font_get_glyph_index): Set has_cmap to false if the font doesn't have a cmap. Call pango_win32_font_get_type1_glyph_index() in that case. (pango_win32_font_calc_coverage): Set has_cmap to false if the font doesn't have a cmap. Call pango_win32_font_calc_type1_coverage() in that case. * pango/pangowin32-fontmap.c (pango_win32_enum_proc): Accept also Type 1 fonts. (pango_win32_insert_font): Initialise has_cmap tentativaly to True. svn path=/trunk/; revision=2573
* Bug 515484: Pango on Windows is missing non-TrueType font support PatchTor Lillqvist2008-02-131-12/+18
| | | | | | | | | | | | | | | 2008-02-14 Tor Lillqvist <tml@novell.com> Bug 515484: Pango on Windows is missing non-TrueType font support Patch from Adrian Johnson. * pango/pangowin32-fontmap.c (pango_win32_enum_proc): Accept also OpenType/PS fonts. Interpret the metrics parameter as a NEWTEXTMETRICW struct and check the ntmFlags field. svn path=/trunk/; revision=2566
* Bug 483600 – Leak of font family name inPANGO_1_18_3Behdad Esfahbod2007-10-151-0/+2
| | | | | | | | | | | | | | | | 2007-10-15 Behdad Esfahbod <behdad@gnome.org> Bug 483600 – Leak of font family name in pango_win32_font_description_from_logfont(w) Patch from Daniel Atallah * pango/pangowin32-fontmap.c (pango_win32_font_description_from_logfont), (pango_win32_font_description_from_logfontw): Free family. svn path=/trunk/; revision=2446
* Add G_UNLIKELY() to type registration block in _get_type() functions.Behdad Esfahbod2007-06-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-20 Behdad Esfahbod <behdad@gnome.org> * pango/fonts.c (pango_font_description_get_type), (pango_font_metrics_get_type): * pango/glyphstring.c (pango_glyph_string_get_type): * pango/pango-attributes.c (pango_attr_list_get_type): * pango/pango-color.c (pango_color_get_type): * pango/pango-item.c (pango_item_get_type): * pango/pango-language.c (pango_language_get_type): * pango/pango-layout.c (pango_layout_line_get_type), (pango_layout_iter_get_type): * pango/pango-matrix.c (pango_matrix_get_type): * pango/pango-ot-info.c (pango_ot_info_get_type): * pango/pango-ot-ruleset.c (pango_ot_ruleset_get_type): * pango/pango-tabs.c (pango_tab_array_get_type): * pango/pangoatsui-fontmap.c (pango_atsui_family_get_type), (pango_atsui_face_get_type): * pango/pangofc-fontmap.c (pango_fc_face_get_type), (pango_fc_family_get_type): * pango/pangowin32-fontmap.c (pango_win32_family_get_type), (pango_win32_face_get_type): * pango/pangox-fontmap.c (pango_x_font_map_get_type), (pango_x_face_get_type), (pango_x_family_get_type): * pango/pangox.c (pango_x_font_get_type): Add G_UNLIKELY() to type registration block in _get_type() functions. svn path=/trunk/; revision=2364
* Add is_synthetic field.Tor Lillqvist2007-06-121-7/+22
| | | | | | | | | | | | | | | | 2007-06-12 Tor Lillqvist <tml@novell.com> * pango/pangowin32-private.h (struct PangoWin32Face: Add is_synthetic field. * pango/pangowin32-fontmap.c: Implement is_synthesized. * pango/pangocairo-win32font.c * pango/pangocairo-win32fontmap.c: Update for the changes to PangoCairoFontMap and PangoCairoFont. svn path=/trunk/; revision=2347
* A font name in encoding UCS4_ENCODING_ID actually is in UTF-16, not UCS-4.Tor Lillqvist2007-04-301-2/+4
| | | | | | | | | | | 2007-04-30 Tor Lillqvist <tml@novell.com> * pango/pangowin32-fontmap.c (get_family_nameA, get_family_nameW): A font name in encoding UCS4_ENCODING_ID actually is in UTF-16, not UCS-4. (#429397, Akihiro Okamura) svn path=/trunk/; revision=2237
* Add missing declaration of pango_win32_family_get_type(). (#417946, IvanTor Lillqvist2007-03-141-1/+3
| | | | | | | | | | 2007-03-14 Tor Lillqvist <tml@novell.com> * pango/pangowin32-fontmap.c: Add missing declaration of pango_win32_family_get_type(). (#417946, Ivan Wong) svn path=/trunk/; revision=2217
* Add new symbols to docs.Behdad Esfahbod2007-03-121-1/+1
| | | | | | | | | | | | 2007-03-12 Behdad Esfahbod <behdad@gnome.org> * docs/pango-sections.txt: * pango/pangowin32-fontmap.c: * pango/pangowin32.c: Add new symbols to docs. svn path=/trunk/; revision=2216
* pango/pangowin32-private.h pango/pangowin32.c pango/pangowin32-fontcache.cTor Lillqvist2007-03-101-112/+66
| | | | | | | | | | | | | | | | | | 2007-03-10 Tor Lillqvist <tml@novell.com> * pango/pangowin32-private.h * pango/pangowin32.c * pango/pangowin32-fontcache.c * pango/pangowin32-fontmap.c * pango/pangocairo-win32font.c * pango/pangowin32.def: Move functions defined in one file and used in another to the file where used, make them static, and drop from pangowin32-private.h. Prefix all private non-static functions with underscore. Also functions used only by the pangocairo DLL are considered private. (#120195) svn path=/trunk/; revision=2213
* This change was supposed to go in the trunk before 1.16.0, but it didn'tTor Lillqvist2007-02-271-125/+333
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-02-26 Tor Lillqvist <tml@novell.com> This change was supposed to go in the trunk before 1.16.0, but it didn't quite get there in time. So, to have a clear cut for this somewhat fundamental change in underlying workings (although there should be no user-visible changes), I will build and distribute Win32 binaries only starting from 1.16.1. Use wide character API for fonts on Windows. Rename functions and variables that deal with LOGFONTW structs to emphasize this. (#407315) * pango/pangowin32.c * pango/pangowin32-fontcache.c * pango/pangowin32-fontmap.c: Use LOGFONTW all over the place instead of LOGFONT, and adapt code accordingly. Use wide character Win32 API. * pango/pangowin32.c (pango_win32_font_neww): Renamed from pango_win32_font_new(), as it now takes a LOGFONTW pointer. This is a private function and can be renamed though it is exported as it is used from the pangocairo DLL. (pango_win32_font_logfont): Mention explicitly in doc comment that it returns a LOGFONTA, and recommend to use pango_win32_font_logfontw() instead. (pango_win32_font_logfontw): New function. * pango/pangowin32-fontcache.c (pango_win32_font_cache_load): Must keep this function that takes a LOGFONTA pointer as it is declared in the public header. (pango_win32_font_cache_loadw): New public function that takes a LOGFONTW pointer. * pango/pangowin32-fontmap.c (pango_win32_font_description_from_logfont): Mention explicitly in the doc comment that it takes a LOGFONTA pointer. (pango_win32_font_description_from_logfontw): New public function that takes a LOGFONTW pointer. (pango_win32_make_matching_logfontw): Rename from pango_win32_make_matching_logfont() to emphasize it takes a LOGFONTW pointer. * pango/pangowin32.h: Declare new public functions. * pango/pangowin32-private.h: Declare new private functions, drop removed ones. * pango/pangocairo-win32font.c (_pango_cairo_win32_font_new): Simplify now that we call pango_win32_make_matching_logfontw(). * pango/pangowin32.def: Add new functions, rename internal functions that now use LOGFONTW. 2007-02-26 Tor Lillqvist <tml@novell.com> Fix brokenness in the code that tries to ensure that all fonts also have italic variants. Now the code hopefully actually does what it was supposed to. (Which is not necessarily the right thing to do, though. It can be argued that we should not list synthesized italic font styles, we should just silently generate them if asked for. We don't want synthesized italic (or synthesized bold) styles showing up in the font selector. They don't show up when using a fontconfig-based Pango backend either.) (#110521) * pango/pangowin32-fontmap.c (logfont_nosize_hash, logfont_nosize_equal): Don't use the lfItalic field as such, just its nonzeroness. When being enumerated, italic fonts show up with lfItalic=255, but our code looks up italic versions of fonts by passing a key LOGFONT with lfItalic=1. (first_match): Not needed any more, see below. (ensure_italic): This is now called on the entries in the size_infos hash table, not families. The code used to randomly look for the first matching font in size_infoswith the family name being handled. (pango_win32_font_map_init): Iterate through the size_infos hash table with ensure_italic, not through the families table. * pango/pangowin32-fontcache.c (logfontw_hash, logfontw_equal): Look at just nonzeroness of lfItalic here, too. svn path=/trunk/; revision=2204
* If something has gone wrong in setting the family of the font description,Owen Taylor2007-02-131-1/+13
| | | | | | | | | | | | 2007-02-13 Owen Taylor <otaylor@redhat.com> * pango/pangowin32-fontmap.c (pango_win32_insert_font): If something has gone wrong in setting the family of the font description, don't bother with the font as it isn't usable and will cause crashes later anyway. (#404295) svn path=/trunk/; revision=2194
* *.c, *.h: Replace preceding sequences of 8 spaces with tabs.Behdad Esfahbod2007-01-161-34/+34
| | | | | | | | | 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-56/+56
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Drop trailing whitespace. svn path=/trunk/; revision=2163
* Spell-check the docs.Behdad Esfahbod2007-01-071-2/+2
| | | | svn path=/trunk/; revision=2130
* Make TypeInfo structs not static. Reduces relocations.Behdad Esfahbod2006-10-131-2/+2
| | | | | | | | | | | | | | | | | | | 2006-10-13 Behdad Esfahbod <behdad@gnome.org> * pango/pango-ot-info.c (pango_ot_info_get_type): * pango/pango-ot-ruleset.c (pango_ot_ruleset_get_type): * pango/pangoatsui-fontmap.c (pango_atsui_family_get_type), (pango_atsui_face_get_type): * pango/pangocairo-font.c (pango_cairo_font_get_type): * pango/pangocairo-fontmap.c (pango_cairo_font_map_get_type): * pango/pangofc-fontmap.c (pango_fc_face_get_type), (pango_fc_family_get_type): * pango/pangowin32-fontmap.c (pango_win32_family_get_type), (pango_win32_face_get_type): * pango/pangox-fontmap.c (pango_x_font_map_get_type), (pango_x_face_get_type), (pango_x_family_get_type): * pango/pangox.c (pango_x_font_get_type): Make TypeInfo structs not static. Reduces relocations.
* synthesize some italic variants for fonts no having them already. ThisHans Breuer2006-06-051-0/+71
| | | | | | | | 2006-06-05 Hans Breuer <hans@breuer.org> * pango/pangowin32-fontmap.c(pango_win32_font_map_init) : synthesize some italic variants for fonts no having them already. This fixes bug #343796 and for the italic case also bug #110521.