summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bug 462137 – memory corruption in pango_default_breakpango-1-16Behdad Esfahbod2007-07-312-4/+11
| | | | | | | | | | | | 2007-07-31 Behdad Esfahbod <behdad@gnome.org> Bug 462137 – memory corruption in pango_default_break * pango/break.c (pango_default_break): Handle the case of an empty string correctly. svn path=/branches/pango-1-16/; revision=2386
* === Released 1.16.5 ===Behdad Esfahbod2007-07-273-2/+21
| | | | | | | | | | | | | 2007-07-27 Behdad Esfahbod <behdad@gnome.org> * === Released 1.16.5 === * configure.in: Version 1.16.5 * NEWS: Updated. svn path=/branches/pango-1-16/; revision=2380
* Bug 443206 – PANGO_SCRIPT_UNKNOWN should not cause a run break PatchBehdad Esfahbod2007-06-022-2/+98
| | | | | | | | | | | | | 2007-06-02 Behdad Esfahbod <behdad@gnome.org> Bug 443206 – PANGO_SCRIPT_UNKNOWN should not cause a run break Patch from Martin Hosken * pango/pango-script.c: Treat Unknown script like Common and other non-"real" scripts. svn path=/branches/pango-1-16/; revision=2327
* Split ChangeLog.Behdad Esfahbod2007-05-101-1823/+4
| | | | | | | | | 2007-05-10 Behdad Esfahbod <behdad@gnome.org> * ChangeLog.pre-1-16: Split ChangeLog. svn path=/branches/pango-1-16/; revision=2281
* Don't set gravity in pango_fc_font_description_from_pattern() if it wasBehdad Esfahbod2007-05-101-0/+9
| | | | | | | | | | | | | | 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=/branches/pango-1-16/; revision=2280
* Bug 416515 – Time is not aligned with date on vertical panelBehdad Esfahbod2007-05-102-4/+13
| | | | | | | | | | | | | | | | | 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=/branches/pango-1-16/; revision=2279
* Bug 436154 – Error building the pango.modules file while cross compilingBehdad Esfahbod2007-05-101-0/+8
| | | | | | | | | | | | | 2007-05-07 Behdad Esfahbod <behdad@gnome.org> Bug 436154 – Error building the pango.modules file while cross compiling * modules/Makefile.am: Make local pango.module generation work with cross-compilation. svn path=/branches/pango-1-16/; revision=2278
* Bug 434160 - [atsui] Italic versions of some faces can't be createdRichard Hult2007-05-101-228/+1823
| | | | | | | | | | | | | | | | 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=/branches/pango-1-16/; revision=2277
* Split ChangeLog.Behdad Esfahbod2007-05-102-1823/+1831
| | | | | | | | | 2007-05-10 Behdad Esfahbod <behdad@gnome.org> * ChangeLog.pre-1-16: Split ChangeLog. svn path=/trunk/; revision=2275
* New public API:Behdad Esfahbod2007-05-1011-24/+695
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-102-8/+13
| | | | | | | | | | | | | | 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-093-2/+18
| | | | | | | | | | | | | 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-093-88/+99
| | | | | | | | | | | | 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-082-2/+8
| | | | | | | | | 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-087-373/+446
| | | | | | | | | | | | | | | 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-084-3/+17
| | | | | | | | | | | | | | | | | | 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-082-3/+13
| | | | | | | | | | | | | | | | | 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 436154 – Error building the pango.modules file while cross compilingBehdad Esfahbod2007-05-082-6/+17
| | | | | | | | | | | | | 2007-05-07 Behdad Esfahbod <behdad@gnome.org> Bug 436154 – Error building the pango.modules file while cross compiling * modules/Makefile.am: Make local pango.module generation work with cross-compilation. svn path=/trunk/; revision=2265
* Bug 434160 - [atsui] Italic versions of some faces can't be createdRichard Hult2007-05-054-50/+178
| | | | | | | | | | | | | | | 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 bug reference.Behdad Esfahbod2007-05-041-0/+2
| | | | svn path=/trunk/; revision=2263
* Add new symbols.Behdad Esfahbod2007-05-041-0/+2
| | | | svn path=/trunk/; revision=2262
* New APIBehdad Esfahbod2007-05-0411-8/+402
| | | | | | | | | | | | | | | | | | | | | 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-044-299/+334
| | | | | | | | | | | | | 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-033-2/+8
| | | | | | | | | | 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
* New test text that contains a Persian monologue by YarAli PourMoghaddamBehdad Esfahbod2007-05-032-0/+26
| | | | | | | | | | | | 2007-05-03 Behdad Esfahbod <behdad@gnome.org> * pango-view/test-long-paragraph.txt: New test text that contains a Persian monologue by YarAli PourMoghaddam which is a single paragraph of more than 10,000 chars and 2,400 words. Used for testing the effect of previous change. svn path=/trunk/; revision=2258
* When breaking item to fit it into current line, go from the beginning,Behdad Esfahbod2007-05-032-6/+15
| | | | | | | | | | | | | 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
* Save one layout rendering per view. Down to two from three now.Behdad Esfahbod2007-05-032-10/+21
| | | | | | | | | | 2007-05-03 Behdad Esfahbod <behdad@gnome.org> * pango-view/viewer-render.c (output_body), (do_output): Save one layout rendering per view. Down to two from three now. svn path=/trunk/; revision=2256
* New test text with long Latin and Arabic lines, suitable for --justifyBehdad Esfahbod2007-05-032-0/+10
| | | | | | | | | | 2007-05-02 Behdad Esfahbod <behdad@gnome.org> * pango-view/test-justify.txt: New test text with long Latin and Arabic lines, suitable for --justify testing. svn path=/trunk/; revision=2255
* Bug 64538 – pango_layout_set_justify() doesn't workBehdad Esfahbod2007-05-032-4/+104
| | | | | | | | | | | | | 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-024-42/+187
| | | | | | | | | | | | | | | | | 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-022-2/+110
| | | | | | | | | | | | | | 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 patch-from.Behdad Esfahbod2007-05-021-0/+2
| | | | svn path=/trunk/; revision=2251
* Add is_expandable_space to PangoLogAttr.Behdad Esfahbod2007-05-024-5/+22
| | | | | | | | | | | | 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
* Add --justify.Mathias Hasselmann2007-05-022-0/+9
| | | | | | | | | | 2007-05-02 Mathias Hasselmann <mathias.hasselmann@gmx.de> * pango-view/viewer-render.c (make_layout), (parse_options): Add --justify. svn path=/trunk/; revision=2249
* Bug 355789 – Pango misaligns word-wrapped text due to trailingBehdad Esfahbod2007-05-022-0/+43
| | | | | | | | | | | | | | 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-022-1/+9
| | | | | | | | | | 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-022-6/+17
| | | | | | | | | | | | 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-022-0/+6
| | | | | | | | | | 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-022-1/+5
| | | | | | | | | | 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-022-0/+9
| | | | | | | | | | 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
* Add option for testing text alignment.Mathias Hasselmann2007-05-012-4/+29
| | | | | | | | | | 2007-04-28 Mathias Hasselmann <mathias.hasselmann@gmx.de> * pango-view/viewer-render.c (make_layout), (parse_alignment), (parse_options): Add option for testing text alignment. svn path=/trunk/; revision=2241
* Link freetype to harfbuzz-dump, for those systems that don't trackBehdad Esfahbod2007-05-012-2/+8
| | | | | | | | | | 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
* Add PANGO_UNITS_ROUND to docs.Behdad Esfahbod2007-04-303-0/+24
| | | | | | | | | | | 2007-04-30 Behdad Esfahbod <behdad@gnome.org> * docs/pango-sections.txt: * docs/tmpl/glyphs.sgml: Add PANGO_UNITS_ROUND to docs. svn path=/trunk/; revision=2239
* Move PANGO_UNITS_ROUND here... ...from here.Behdad Esfahbod2007-04-309-25/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-302-2/+10
| | | | | | | | | | | 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
* Correct the signature by making PangoAnalysis const, fixes build warning.Richard Hult2007-04-272-6/+11
| | | | | | | | | 2007-04-27 Richard Hult <richard@imendio.com> * modules/basic/basic-atsui.c (basic_engine_shape): Correct the signature by making PangoAnalysis const, fixes build warning. svn path=/trunk/; revision=2236
* 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-272-2/+8
| | | | | | | | | | 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