summaryrefslogtreecommitdiff
path: root/pango
Commit message (Collapse)AuthorAgeFilesLines
* Update.Behdad Esfahbod2007-05-141-0/+8
| | | | svn path=/trunk/; revision=2295
* Bug 325714 – Pango should respect $LANGUAGEBehdad Esfahbod2007-05-141-1/+102
| | | | | | | | | | | | | | | | | | 2007-05-14 Behdad Esfahbod <behdad@gnome.org> Bug 325714 – Pango should respect $LANGUAGE * pango/pango-language.c (pango_language_matches), (parse_default_languages), (_pango_script_get_default_language), (pango_script_get_sample_language): Make pango_script_get_sample_language() use the value of env var PANGO_LANGUAGE or LANGUAGE (checked in that order) to make better guesses. The env var should be a list of language tags, like "en:fa" for example where makes Pango choose Persian (fa) fonts instead of Arabic (ar) fonts... svn path=/trunk/; revision=2294
* Move pango_script_get_sample_language() from pango-script.c toBehdad Esfahbod2007-05-142-132/+133
| | | | | | | | | | | 2007-05-14 Behdad Esfahbod <behdad@gnome.org> * pango/pango-language.c (pango_script_get_sample_language): * pango/pango-script.c: Move pango_script_get_sample_language() from pango-script.c to pango-language.c. Fits better. svn path=/trunk/; revision=2293
* Part of Bug 325714 – Pango should respect $LANGUAGEBehdad Esfahbod2007-05-143-13/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-05-14 Behdad Esfahbod <behdad@gnome.org> Part of Bug 325714 – Pango should respect $LANGUAGE * pango/pango-ot.h: * pango/pango-ot-ruleset.c (pango_ot_ruleset_get_for), (pango_ot_ruleset_description_hash), (pango_ot_ruleset_description_equal), (pango_ot_ruleset_description_copy), (pango_ot_ruleset_description_free): Add new engine API: PangoOTRulesetDescription pango_ot_ruleset_get_for() pango_ot_ruleset_description_hash() pango_ot_ruleset_description_equal() pango_ot_ruleset_description_copy() pango_ot_ruleset_description_free() The main addition is pango_ot_ruleset_get_for() that takes a ruleset description, ie. script/language and list of GSUB/GPOS features to apply, and returns a ruleset. It manages all the work to cache rulesets, so modules don't have to do that anymore. Given that modules do not deal with just one ruleset anymore (because we want to respect language, and allow user-selected features), this makes their life way easier. * docs/pango-sections.txt: * docs/tmpl/opentype.sgml: Update. svn path=/trunk/; revision=2290
* Add a FIXMEBehdad Esfahbod2007-05-141-1/+4
| | | | svn path=/trunk/; revision=2289
* Mark some arguments const.Behdad Esfahbod2007-05-143-18/+18
| | | | | | | | | | | | | | 2007-05-14 Behdad Esfahbod <behdad@gnome.org> * pango/pango-ot-buffer.c (pango_ot_buffer_get_glyphs), (pango_ot_buffer_output): * pango/pango-ot-ruleset.c (pango_ot_ruleset_substitute), (pango_ot_ruleset_position): * pango/pango-ot.h: Mark some arguments const. svn path=/trunk/; revision=2288
* Part of Bug 325714 – Pango should respect $LANGUAGEBehdad Esfahbod2007-05-145-26/+365
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-05-13 Behdad Esfahbod <behdad@gnome.org> Part of Bug 325714 – Pango should respect $LANGUAGE * pango/pango-ot.h: * pango/pango-ot-private.h: * pango/pango-ot-tag.c (pango_ot_tag_from_script), (pango_ot_tag_from_language): * pango/pango-ot-info.c (pango_ot_info_find_script), (pango_ot_info_find_language), (pango_ot_info_find_feature), (pango_ot_info_list_languages), (pango_ot_info_list_features): * pango/pango-ot-ruleset.c (pango_ot_ruleset_new), (pango_ot_ruleset_new_for), (pango_ot_ruleset_add_feature), (pango_ot_ruleset_maybe_add_feature), (pango_ot_ruleset_maybe_add_features): Add new engine API: PANGO_OT_NO_FEATURE PANGO_OT_NO_SCRIPT PANGO_OT_TAG_DEFAULT_SCRIPT PANGO_OT_TAG_DEFAULT_LANGUAGE pango_ot_ruleset_new_for() pango_ot_ruleset_maybe_add_feature() pango_ot_ruleset_maybe_add_features() Using pango_ot_ruleset_new_for() and pango_ot_ruleset_maybe_add_features() drastically simplifies ruleset building in modules, and does correct script and language selection too. Modules need to be updated to use it though. * docs/pango-docs.sgml: * docs/pango-sections.txt: * docs/tmpl/opentype.sgml: Update. svn path=/trunk/; revision=2284
* New public API:Behdad Esfahbod2007-05-104-5/+471
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-05-10 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am: * pango/pango-ot.h: * pango/pango-ot-tag.c (pango_ot_tag_from_script), (pango_ot_tag_to_script), (lang_compare_first_component), (pango_ot_tag_from_language), (pango_ot_tag_to_language): New public API: PANGO_OT_DEFAULT_SCRIPT pango_ot_tag_from_script() pango_ot_tag_to_script() pango_ot_tag_from_language() pango_ot_tag_to_language() * tests/Makefile.am: * tests/test-ot-tags.c: Test case for new functions. * pango/pangoft2.def: * docs/pango-docs.sgml: * docs/pango-sections.txt: * docs/tmpl/main.sgml: * docs/tmpl/opentype.sgml: Updated. svn path=/trunk/; revision=2274
* Bug 437534 – pango_language_includes_script is buggyBehdad Esfahbod2007-05-102-30/+53
| | | | | | | | | | | | | 2007-05-10 Behdad Esfahbod <behdad@gnome.org> Bug 437534 – pango_language_includes_script is buggy * pango/pango-language.c (lang_compare_first_component), (lang_info_compare), (script_for_lang_compare), (pango_language_includes_script): Fix script_for_lang table lookup. svn path=/trunk/; revision=2273
* Don't set gravity in pango_fc_font_description_from_pattern() if it wasBehdad Esfahbod2007-05-101-8/+4
| | | | | | | | | | | | | | 2007-05-10 Behdad Esfahbod <behdad@gnome.org> * pango/pangofc-fontmap.c (pango_fc_font_description_from_pattern), (pango_fc_face_describe): Don't set gravity in pango_fc_font_description_from_pattern() if it was not set on the pattern. This is a bit different from other properties, but that really is how gravity works (unlike say weight that not having it said means normal weight). svn path=/trunk/; revision=2272
* Update from latest fontconfig sources.Behdad Esfahbod2007-05-091-2/+3
| | | | | | | | | | | | | 2007-05-09 Behdad Esfahbod <behdad@gnome.org> * pango/pango-script-lang-table.h: Update from latest fontconfig sources. * tools/gen-script-for-lang.c (scripts_for_line): Make it handle PANGO_SCRIPT_UNKNOWN. svn path=/trunk/; revision=2271
* Move pango_language_includes_script() from pango-script.c toBehdad Esfahbod2007-05-092-88/+92
| | | | | | | | | | | | 2007-05-09 Behdad Esfahbod <behdad@gnome.org> * pango/pango-language.c (script_for_lang_compare), (pango_language_includes_script): * pango/pango-script.c: Move pango_language_includes_script() from pango-script.c to pango-language.c that it belongs. svn path=/trunk/; revision=2270
* Minor include reordering.Behdad Esfahbod2007-05-081-2/+4
| | | | | | | | | 2007-05-08 Behdad Esfahbod <behdad@gnome.org> * pango/pango-matrix.h: Minor include reordering. svn path=/trunk/; revision=2269
* Move PangoLanguage stuff into pango-language.[ch]Behdad Esfahbod2007-05-086-373/+436
| | | | | | | | | | | | | | | 2007-05-08 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am: * pango/pango-script.h: * pango/pango-types.h: * pango/pango-utils.c: * pango/pango-language.c: * pango/pango-language.h: Move PangoLanguage stuff into pango-language.[ch] svn path=/trunk/; revision=2268
* Bug 436988 – Adding PangoScript to PangoAnalysisBehdad Esfahbod2007-05-083-3/+4
| | | | | | | | | | | | | | | | | | 2007-05-08 Behdad Esfahbod <behdad@gnome.org> Bug 436988 – Adding PangoScript to PangoAnalysis * pango/pango-item.h: * pango/pango-context.c (itemize_state_add_character): Add a 'script' member to PangoAnalysis. It's added as a guint8 in the padding available in that struct, though it's value is a PangoScript. * pango/pangox.c (itemize_string_foreach): Update. svn path=/trunk/; revision=2267
* Bug 416515 – Time is not aligned with date on vertical panelBehdad Esfahbod2007-05-081-3/+1
| | | | | | | | | | | | | | | | | 2007-05-08 Behdad Esfahbod <behdad@gnome.org> Bug 416515 – Time is not aligned with date on vertical panel * pango/pango-context.c (itemize_state_init), (itemize_state_update_for_new_run): centered_baseline should only be set from context->resolved_gravity and never changed through markup. This means that pango_context_set_base_gravity has no equivalent markup. Doesn't sound limiting to me: you need to rotate the layout to get real vertical, so it's not just a matter of markup anyway. At least not at this point. svn path=/trunk/; revision=2266
* Bug 434160 - [atsui] Italic versions of some faces can't be createdRichard Hult2007-05-053-50/+167
| | | | | | | | | | | | | | | 2007-05-05 Richard Hult <richard@imendio.com> Bug 434160 - [atsui] Italic versions of some faces can't be created * pango/pangoatsui-fontmap.c: * pango/pangoatsui-private.h: * pango/pangocairo-atsuifont.c: Follow the other backends and create italic faces when they are not available. Apply synthetic italic in two cases, when the font manager hands out italic faces that are not in fact italic, and for the ones we've created ourselves. svn path=/trunk/; revision=2264
* Add new symbols.Behdad Esfahbod2007-05-041-0/+2
| | | | svn path=/trunk/; revision=2262
* New APIBehdad Esfahbod2007-05-044-5/+132
| | | | | | | | | | | | | | | | | | | | | 2007-05-04 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo.h: * pango/pangocairo-context.c: * pango/pangocairo-render.c: New API PangoCairoShapeRendererFunc and pango_cairo_context_[sg]et_shape_renderer() * docs/pango-sections.txt, docs/tmpl/pangocairo.sgml: Document new * API. * examples/Makefile.am, examples/cairoshape.c: New example to show off new API/feature. svn path=/trunk/; revision=2261
* Rip non-fontmap stuff from pangocairo-fontmap.c into pangocairo-context.c.Behdad Esfahbod2007-05-043-299/+326
| | | | | | | | | | | | | 2007-05-04 Behdad Esfahbod <behdad@gnome.org> * pango/Makefile.am: * pango/pangocairo-context.c: * pango/pangocairo-fontmap.c: Rip non-fontmap stuff from pangocairo-fontmap.c into pangocairo-context.c. svn path=/trunk/; revision=2260
* Improve docs about freeing returned items.Behdad Esfahbod2007-05-031-1/+3
| | | | | | | | | | 2007-05-03 Behdad Esfahbod <behdad@gnome.org> * pango/pango-context.c (pango_itemize): Improve docs about freeing returned items. svn path=/trunk/; revision=2259
* When breaking item to fit it into current line, go from the beginning,Behdad Esfahbod2007-05-031-6/+7
| | | | | | | | | | | | | 2007-05-03 Behdad Esfahbod <behdad@gnome.org> * pango/pango-layout.c (process_item): When breaking item to fit it into current line, go from the beginning, adding char at a time until it doesn't fit anymore instead of removing chars from the end. The difference is a O(n) as opposed to O(n^2) algorithm were n is the number of lines in the paragraph (assuming constant chars per line). svn path=/trunk/; revision=2257
* Bug 64538 – pango_layout_set_justify() doesn't workBehdad Esfahbod2007-05-031-4/+96
| | | | | | | | | | | | | 2007-05-02 Behdad Esfahbod <behdad@gnome.org> Bug 64538 – pango_layout_set_justify() doesn't work * pango/pango-layout.c (process_item), (justify_clusters), (justify_words): If no space found, justify by inserting space between clusters. svn path=/trunk/; revision=2254
* Fix letter-spacing with justification. We now distribute letter-spacingBehdad Esfahbod2007-05-023-42/+175
| | | | | | | | | | | | | | | | | 2007-05-02 Behdad Esfahbod <behdad@gnome.org> * pango/pango-glyph-item.c (pango_glyph_item_letter_space): * pango/pango-item.c (pango_item_split): * pango/pango-layout.c (distribute_letter_spacing), (shape_run), (debug), (process_item), (process_line), (pad_glyphstring_right), (pad_glyphstring_left), (zero_line_final_space), (adjust_line_letter_spacing), (pango_layout_line_postprocess): Fix letter-spacing with justification. We now distribute letter-spacing equally on both sides of clusters, instead of putting it all on one side. svn path=/trunk/; revision=2253
* Bug 64538 – pango_layout_set_justify() doesn't workBehdad Esfahbod2007-05-021-2/+101
| | | | | | | | | | | | | | 2007-05-02 Behdad Esfahbod <behdad@gnome.org> Bug 64538 – pango_layout_set_justify() doesn't work * pango/pango-layout.c (zero_line_final_space), (justify_clusters), (justify_words), (pango_layout_line_postprocess): Implement justification by expanding spaces! Based on early patch from Mathias Hasselmann. svn path=/trunk/; revision=2252
* Add is_expandable_space to PangoLogAttr.Behdad Esfahbod2007-05-022-5/+13
| | | | | | | | | | | | 2007-05-02 Behdad Esfahbod <behdad@gnome.org> * docs/tmpl/main.sgml: * pango/break.c (pango_default_break): * pango/pango-break.h: Add is_expandable_space to PangoLogAttr. svn path=/trunk/; revision=2250
* Bug 355789 – Pango misaligns word-wrapped text due to trailingBehdad Esfahbod2007-05-021-0/+34
| | | | | | | | | | | | | | 2007-05-02 Behdad Esfahbod <behdad@gnome.org> Bug 355789 – Pango misaligns word-wrapped text due to trailing whitespace * pango/pango-layout.c (zero_line_final_space), (pango_layout_line_postprocess): Make logical-final whitespace on wrapped lines zero-width. svn path=/trunk/; revision=2248
* Keep track of line start_offset in break state.Behdad Esfahbod2007-05-021-1/+4
| | | | | | | | | | 2007-05-02 Behdad Esfahbod <behdad@gnome.org> * pango/pango-layout.c (process_line), (pango_layout_check_lines): Keep track of line start_offset in break state. svn path=/trunk/; revision=2247
* Add a "wrapped" argument to pango_layout_line_postprocess(). Going to useBehdad Esfahbod2007-05-021-6/+10
| | | | | | | | | | | | 2007-05-02 Behdad Esfahbod <behdad@gnome.org> * pango/pango-layout.c (process_line), (pango_layout_line_postprocess): Add a "wrapped" argument to pango_layout_line_postprocess(). Going to use it for eg whether we should justify the line. svn path=/trunk/; revision=2246
* Set is_wrapped to true on BREAK_EMPTY_FIT too.Behdad Esfahbod2007-05-021-0/+1
| | | | | | | | | | 2007-05-02 Behdad Esfahbod <behdad@gnome.org> * pango/pango-layout.c (process_line): Set is_wrapped to true on BREAK_EMPTY_FIT too. svn path=/trunk/; revision=2245
* MinorBehdad Esfahbod2007-05-021-3/+3
| | | | svn path=/trunk/; revision=2244
* Remove stale prototype of _pango_layout_iter_get_line_readonly().Behdad Esfahbod2007-05-021-1/+0
| | | | | | | | | | 2007-05-02 Behdad Esfahbod <behdad@gnome.org> * pango/pango-layout-private.h: Remove stale prototype of _pango_layout_iter_get_line_readonly(). svn path=/trunk/; revision=2243
* Add note about how we should not be using pango_break() here.Behdad Esfahbod2007-05-021-0/+4
| | | | | | | | | | 2007-05-01 Behdad Esfahbod <behdad@gnome.org> * pango/pango-layout.c (get_items_log_attrs): Add note about how we should not be using pango_break() here. svn path=/trunk/; revision=2242
* Link freetype to harfbuzz-dump, for those systems that don't trackBehdad Esfahbod2007-05-011-2/+3
| | | | | | | | | | 2007-04-30 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/Makefile.am: Link freetype to harfbuzz-dump, for those systems that don't track dependencies automatically. svn path=/trunk/; revision=2240
* Move PANGO_UNITS_ROUND here... ...from here.Behdad Esfahbod2007-04-307-25/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-04-30 Behdad Esfahbod <behdad@gnome.org> * pango/pango-types.h: Move PANGO_UNITS_ROUND here... * pango/pangofc-private.h: ...from here. * pango/pango-gravity.c: Document that pango_gravity_to_rotation() returns angle in radians but pango_matrix_rotate() takes degrees. * pango/pango-layout.c (pango_layout_run_get_extents): * pango/pango-renderer.c (pango_renderer_draw_layout_line): Retain metrics hinting when centering baseline (used for Latin, etc in vertical mode). * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_metrics), (pango_cairo_fc_font_glyph_extents_cache_init): Respect metrics hinting setting when moving glyphs around for vertical writing. * pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): Apply the gravity rotation before the pattern's matrix, such that vertical text gets correct italic direction. * pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info): Make hexbox font inherit most properties from the current font. That is, bold hexbox digits for a bold font, etc. svn path=/trunk/; revision=2238
* 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 comment to Richard's commit.Behdad Esfahbod2007-04-271-0/+2
| | | | svn path=/trunk/; revision=2235
* Use maxAdvanceWidth instead of avgAdvanceWidth, the latter is 0 for manyRichard Hult2007-04-271-2/+2
| | | | | | | | | | 2007-04-27 Richard Hult <richard@imendio.com> * pango/pangocairo-atsuifont.c (pango_cairo_atsui_font_get_metrics): Use maxAdvanceWidth instead of avgAdvanceWidth, the latter is 0 for many fonts. This is a temporary solution, see bug #433805 for details. svn path=/trunk/; revision=2234
* Improved hexbox position.Behdad Esfahbod2007-04-181-2/+6
| | | | | | | | | | 2007-04-18 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info): Improved hexbox position. svn path=/trunk/; revision=2227
* Quantize kerning adjustment, otherwise all the metrics hinting effort willBehdad Esfahbod2007-04-124-19/+47
| | | | | | | | | | | | | | | | | | 2007-04-12 Behdad Esfahbod <behdad@gnome.org> * pango/pango-ot-buffer.c (apply_gpos_ltr), (apply_gpos_rtl), (pango_ot_buffer_output): * pango/pango-types.h: * pango/pangofc-font.c (pango_fc_font_kern_glyphs): * pango/pangofc-private.h: Quantize kerning adjustment, otherwise all the metrics hinting effort will be ruined by a non-whole-pixel kerning value. In the future we want to take lsb_delta and rsb_delta into the game before quantizing the adjustment here, but we don't have those values handy right now. svn path=/trunk/; revision=2225
* Copy fixes from harfbuzz stable branch. Includes a leak fix, a kerningBehdad Esfahbod2007-04-033-1/+11
| | | | | | | | | | | | | | 2007-04-03 Behdad Esfahbod <behdad@gnome.org> * pango/opentype/harfbuzz-gdef.c (_HB_GDEF_Check_Property): * pango/opentype/harfbuzz-gpos.c (HB_Done_GPOS_Table), (Lookup_PairPos): * pango/opentype/harfbuzz-open.c (Get_Class1): Copy fixes from harfbuzz stable branch. Includes a leak fix, a kerning fix, and an array out-of-bound access fix. svn path=/trunk/; revision=2221
* Bug 419262 - Don't create coverage every time it's asked forRichard Hult2007-03-186-39/+77
| | | | | | | | | | | | | | | | | | | | | | 2007-03-18 Richard Hult <richard@imendio.com> Bug 419262 - Don't create coverage every time it's asked for * pango/pangoatsui.c: (pango_atsui_font_get_coverage): * pango/pangoatsui-fontmap.c: Pass around a PangoATSUIFace instead of the postscript name string. Move the coverage creation from the font to the face, and get the coverage from the face instead of creating it every time. * pango/pangocairo-atsui.h: * pango/pangocairo-atsuifont.c: (_pango_cairo_atsui_font_new): Use the face instead of the postscript name. * pango/pangoatsui-private.h: * pango/pangocairo-atsuifontmap.c: Add getters for the postscript name and coverage for the face. svn path=/trunk/; revision=2218
* 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-122-2/+2
| | | | | | | | | | | | 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-106-229/+206
| | | | | | | | | | | | | | | | | | 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-277-213/+508
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Bug 409212 – Missing link flag prevents build with "-z defs" ld flagsBehdad Esfahbod2007-02-181-0/+1
| | | | | | | | | | | | 2007-02-18 Behdad Esfahbod <behdad@gnome.org> Bug 409212 – Missing link flag prevents build with "-z defs" ld flags Patch from Loïc Minier * pango/Makefile.am: Add $(X_LIBS) to pangoxft_LDADD. svn path=/trunk/; revision=2199
* Bug 355987 – choosing font/shaper for spaces breaks Arabic runs onBehdad Esfahbod2007-02-171-13/+4
| | | | | | | | | | | | | 2007-02-16 Behdad Esfahbod <behdad@gnome.org> Bug 355987 – choosing font/shaper for spaces breaks Arabic runs on spaces * pango/pango-context.c (itemize_state_process_run): Don't choose shaper for ASCII space char. svn path=/trunk/; revision=2198
* 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
* Use pangocairo.def only on Win32, not Cygwin. (#402373, "paul")Tor Lillqvist2007-01-311-0/+2
| | | | | | | | | | 2007-01-31 Tor Lillqvist <tml@novell.com> * pango/Makefile.am: Use pangocairo.def only on Win32, not Cygwin. (#402373, "paul") svn path=/trunk/; revision=2192