| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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=/branches/pango-1-14/; revision=2222
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-02-26 Tor Lillqvist <tml@novell.com>
* pango/pangowin32-fontmap.c: 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)
(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
(logfont_hash, logfont_equal): Look at just nonzeroness of
lfItalic here, too.
svn path=/branches/pango-1-14/; revision=2205
|
|
|
|
|
|
|
|
|
|
|
|
| |
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=/branches/pango-1-14/; revision=2193
|
|
|
|
|
|
|
|
|
|
| |
2007-01-31 Tor Lillqvist <tml@novell.com>
* pango/Makefile.am: Use pangocairo.def only on Win32, not
Cygwin. (#402373, "paul")
svn path=/branches/pango-1-14/; revision=2191
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-01-22 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-glyph-item.c (_pango_glyph_item_iter_next_cluster):
Fix the "menu accels are two chars wide" bug that was introduced
by the recent changes in this function, in 1.15.4. Apparently
glyph_index means separate things in next_cluster and prev_cluster.
svn path=/branches/pango-1-14/; revision=2181
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-01-16 Behdad Esfahbod <behdad@gnome.org>
* pango/ellipsize.c (get_cluster_width): Fix width calculation.
Was causing ellipsization to stop at a zero-width glyph that was
part of a bigger cluster.
* pango/ellipsize.c (remove_one_span): Skip over zero-width clusters,
otherwise ellipsization will stop at a zero-width cluster.
* pango/pango-glyph-item.c (_pango_glyph_item_iter_next_cluster),
(_pango_glyph_item_iter_prev_cluster): Fix yet another bug with
in prev_cluster that was making it not work for any interesting
cluster.
svn path=/branches/pango-1-14/; revision=2157
|
|
|
|
|
|
|
|
|
|
| |
2007-01-16 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-renderer.c (pango_renderer_draw_layout_line): Fix
background rendering being off in presence of rise attributes.
svn path=/branches/pango-1-14/; revision=2149
|
|
|
|
| |
svn path=/branches/pango-1-14/; revision=2138
|
|
|
|
| |
svn path=/branches/pango-1-14/; revision=2132
|
|
|
|
| |
svn path=/branches/pango-1-14/; revision=2131
|
|
|
|
|
|
|
|
|
|
| |
2006-12-19 Behdad Esfahbod <behdad@gnome.org>
Bug 326099 – Setting width, indentation and ellipsizing doesn't work
as I would expect
* pango/ellipsize.c (_pango_layout_line_ellipsize): Account for
indentation when deciding what width to ellipsize for.
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-12-13 Behdad Esfahbod <behdad@gnome.org>
Bug 319808 – Patch to let pango support artifical italic, bold and
bold italic styles for the fonts which don't have these styles.
Patch from James Su
* pango/pangofc-fontmap.c (pango_fc_face_describe), (create_face),
(pango_fc_family_list_faces): Create fake Bold, Italic, and Bold
Italic faces for fonts that do not have one.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-12-04 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-render.c (_pango_cairo_renderer_draw_frame),
(_pango_cairo_renderer_draw_box_glyph),
(_pango_cairo_renderer_draw_unknown_glyph):
Fix handling of boxes drawn in do_path mode. Previously we were
doing one rectangle and stroke it if in show mode, and leave it alone
if in path mode. That doesn't really work. Now we do two rectangles,
for the outer and inner rects of the box border, but with different
orientations, such that pango_cairo_layout_path(); cairo_fill(); works
for hexboxes now.
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-11-28 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-font.c (_pango_cairo_font_install),
(_pango_cairo_font_get_font_face),
(_pango_cairo_font_get_scaled_font):
* pango/pangocairo-private.h:
* pango/pangocairo-render.c (pango_cairo_renderer_draw_glyphs):
Revert two of the cast changes from last commit, to make sure the
test-pangocairo-fontmap-mismatch test doesn't crash.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-11-28 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_font_face),
(pango_cairo_fc_font_install), (pango_cairo_fc_font_finalize),
(pango_cairo_fc_font_get_metrics), (pango_cairo_fc_font_shutdown),
(_pango_cairo_fc_font_new):
* pango/pangocairo-fcfontmap.c
(pango_cairo_fc_font_map_set_resolution),
(pango_cairo_fc_font_map_get_resolution_cairo),
(pango_cairo_fc_font_map_get_renderer),
(pango_cairo_fc_font_map_finalize),
(pango_cairo_fc_font_map_get_resolution_fc),
(pango_cairo_fc_font_map_create_font):
* pango/pangocairo-font.c (_pango_cairo_font_install),
(_pango_cairo_font_get_font_face),
(_pango_cairo_font_get_scaled_font),
(_pango_cairo_font_get_hex_box_info):
* pango/pangocairo-fontmap.c (pango_cairo_create_layout):
* pango/pangocairo-render.c (set_color),
(_pango_cairo_renderer_draw_unknown_glyph),
(pango_cairo_renderer_draw_glyphs),
(pango_cairo_renderer_draw_rectangle),
(pango_cairo_renderer_draw_error_underline):
Use simple, fast, casts instead of PANGO_CAIRO_*() macros where the
object cannot have reached us if it wasn't of the right type.
|
|
|
|
|
|
|
|
|
|
|
| |
2006-11-25 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-render.c (acquire_renderer), (release_renderer),
(_pango_cairo_do_glyph_string), (_pango_cairo_do_layout_line),
(_pango_cairo_do_layout): Make renderer-cache really thread-safe this
time. Last try was not quite thread-safe theoretically, because
pointer assignments are not necessarily atomic on some archs. Anyway,
this one should do it.
|
|
|
|
|
|
|
|
|
|
| |
2006-11-22 Behdad Esfahbod <behdad@gnome.org>
Bug 377975 – bug in _pango_glyph_item_iter_next_cluster
* pango/pango-glyph-item.c (_pango_glyph_item_iter_next_cluster),
(_pango_glyph_item_iter_prev_cluster): Fix condition for ending a
cluster.
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-11-20 Behdad Esfahbod <behdad@gnome.org>
Bug 356666 – pango is not thread-safe, nautilus does not honour that
* pango/pangocairo-render.c (acquire_renderer), (release_renderer),
(_pango_cairo_do_glyph_string), (_pango_cairo_do_layout_line),
(_pango_cairo_do_layout): Instead of using a per-fontmap renderer, use
a locally cached one, but make sure only one thread uses the cached
renderer. Fixes the raciest point in pangocairo.
|
|
|
|
|
|
|
|
|
| |
2006-11-14 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c (itemize_state_process_run): Choose
shaper/font for unassigned Unicode codepoints too. This is needed to
be able to render scripts being encoded before next version of Unicode
is out.
|
|
|
|
|
|
|
| |
2006-11-08 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-layout.c (pango_layout_move_cursor_visually): Don't
index vis2log_map[] with a negative value. Fixes #368972.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-10-13 Behdad Esfahbod <behdad@gnome.org>
Bug 361938 – Can't include *-lang modules (./configure
--with-included-modules fails)
* configure.in:
* modules/Makefile.am:
* pango/.cvsignore:
* pango/Makefile.am:
* pango/modules.c (init_modules):
* pango/modules.h:
Make included language engines work.
|
|
|
|
|
|
|
|
|
| |
2006-10-12 Behdad Esfahbod <behdad@gnome.org>
* pango/break.c (pango_default_break), (tailor_break),
(pango_break), (pango_find_paragraph_boundary), (tailor_segment),
(pango_get_log_attrs): Backport (copy) break.c from HEAD. This makes
the language engine interface work.
|
|
|
|
|
|
|
|
|
|
| |
2006-09-25 Behdad Esfahbod <behdad@gnome.org>
Bug 357686 – pangocairo-font.c: illegal g_object_unref in
pango_cairo_font_get_hex_box_info
* pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info): Remove
wrong g_object_unref (fontmap).
|
|
|
|
|
|
|
|
|
|
|
| |
2006-09-13 Behdad Esfahbod <behdad@gnome.org>
Bug 355550 – Miscalculation of logical attributes in
pango_get_log_attrs()
Patch from Theppitak Karoonboonyanan
* pango/break.c (pango_get_log_attrs): Pass the correct lang_engine to
pango_break().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-09-13 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 355782 – Misaligned extents in pango
* pango/pango-layout.c (pango_layout_get_extents_internal),
(pango_layout_get_extents), (pango_layout_iter_copy),
(pango_layout_get_iter), (pango_layout_iter_get_line_extents):
Add a new internal member layout_width to PangoLayoutIter. Set it up
in pango_layout_get_extents_internal and use in
pango_layout_iter_get_line_extents to fix misalignment of ink link
extents.
|
|
|
|
|
|
|
|
|
| |
2006-09-13 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 355782 – Misaligned extents in pango
* pango/pango-layout.c (pango_layout_iter_copy): Fix typo in copying
iter->cluster_width.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-09-11 Behdad Esfahbod <behdad@gnome.org>
Bug 355435 – Invalid calls to pango_map_get_engine()
Patch from Theppitak Karoonboonyanan
* pango/break.c (pango_get_log_attrs):
* pango/pango-renderer.c (add_underline):
* pango/pangofc-font.c (pango_fc_font_find_shaper):
* pango/pangowin32.c (pango_win32_font_find_shaper):
* pango/pangox.c (pango_x_font_find_shaper):
Pass a PangoScript to pango_map_get_engine, not a gunichar!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-09-11 Behdad Esfahbod <behdad@gnome.org>
Bug 347146 – underline/overstrike spaces
* pango/pango-renderer.c (add_underline), (add_strikethrough),
(pango_renderer_draw_layout_line): Use logical extents for
x and width of underline/strikethrough, such that trailing spaces are
correctly handled.
* pango/pango-layout.c (pango_layout_run_get_extents): Use logical
rect for underline/strikethrough, and reflect that in run ink extents.
* pango/pango-layout.c (pango_layout_line_get_extents): Don't
let runs with empty ink extents affect total ink extents.
2006-09-10 Behdad Esfahbod <behdad@gnome.org>
Bug 352535 – Ink extents of empty glyph
* pango/pangocairo-fcfont.c
(pango_cairo_fc_font_get_glyph_extents): Return zero ink_rect for
PANGO_GLYPH_EMPTY.
|
|
|
|
|
|
|
|
| |
2006-08-26 Behdad Esfahbod <behdad@gnome.org>
Bug 349813 – typo in docs for pango_layout_move_cursor_visually
* pango/pango-layout.c (pango_layout_move_cursor_visually): Fix typo.
|
|
|
|
|
|
|
|
| |
2006-08-22 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c (itemize_state_process_run): Replace (!isgraph
&& !isspace) with (!isprint) which is equivalent. Also, update
comments.
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-08-22 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c (itemize_state_process_run): Find shaper/font
for Private Use and space characters too. Finding shaper for Private
Use is needed for any practical use of those areas. Ideally, spaces
should be synthesized if they are not available in the font, but
falling back to other fonts is far easier, and should give pretty good
results with the current set of common fonts. These fixes allow
Firefox+Pango to render MathML like Firefox+Xft does.
|
|
|
|
|
|
|
|
|
| |
2006-08-17 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 348825 – pango should optimize away calls to FcFontSort as
much as possible
* pango/pangofc-fontmap.c: Increase FONTSET_CACHE_SIZE from 16 to 64.
|
|
|
|
|
|
|
|
|
| |
2006-08-16 Behdad Esfahbod <behdad@gnome.org>
Bug 351585 – API documentation issues with 2.15 release
* pango/fonts.c (pango_font_describe_with_absolute_size): Add Since
tag to docs.
|
|
|
|
|
|
|
|
|
|
|
| |
2006-07-25 Behdad Esfahbod <behdad@gnome.org>
* modules/basic/basic-fc.c: Add Cuneiform and Phoenician in the list
of supported scripts by this backend. Phoenician is a simple RTL
script.
* pango/pango-script.c (pango_script_get_sample_language): Add
language code "nqo" for script N'Ko.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-07-24 Behdad Esfahbod <behdad@gnome.org>
* pango/mini-fribidi/fribidi_tab_char_type_2.i: Update to UCD 5.0.0.
* pango/mini-fribidi/README: Note the about update.
* pango/pango-script.h: Add new values for PangoScript.
* pango/pango-script.c (pango_script_for_unichar_bsearch): Default
to PANGO_SCRIPT_UNKNOWN.
* pango/pango-script.c (pango_script_get_sample_language): Add empty
entries for new script values.
* tools/gen-script-table.pl: Default to PANGO_SCRIPT_UNKNOWN as is
now the default value of Scripts.txt in UCD 5.0.0.
* pango/pango-script-table.h: Regenerated against UCD 5.0.0.
* docs/tmpl/scripts.sgml: Document new script types.
* tools/gen-script-for-lang.c (scripts_for_line): Ignore data at the
end of lines as many .orth files in fontconfig now list the character
name there.
* pango/pango-script-lang-table.h: Regenerate against newer
fontconfig 2.3.9x.
|
|
|
|
|
|
|
|
|
| |
2006-07-24 Behdad Esfahbod <behdad@gnome.org>
Bug 347073 – Allow empty GPOS table
* pango/opentype/harfbuzz-open.c (_HB_OPEN_Load_ScriptList): Don't
err on empty GPOS/GSUB tables.
|
|
|
|
|
|
| |
2006-07-19 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-layout.c (pango_layout_get_extents): Improve docs.
|
|
|
|
|
|
|
|
|
|
| |
2006-07-17 Richard Hult <richard@imendio.com>
Bug 347021 – atsui crash when a matching font cannot be found.
Patch from Brian Tarricone.
* pango/pangoatsui-fontmap.c (pango_atsui_font_map_load_font):
Bail out if best desc or best face isn't found.
|
|
|
|
|
|
|
|
| |
2006-07-10 Behdad Esfahbod <behdad@gnome.org>
Bug 330603 – pango_scan_int invokes undefined behaviour
* pango/pango-utils.c (pango_scan_int): Use strtol.
|
|
|
|
|
|
|
|
|
| |
2006-07-10 Behdad Esfahbod <behdad@gnome.org>
Bug 315599 – PangoAttribute remains in wrong context.
* pango/pangocairo-render.c (_pango_cairo_do_glyph_string): Rever my
commit that removed Owen's fix from last year!
|
|
|
|
|
|
|
|
|
| |
2006-07-10 Behdad Esfahbod <behdad@gnome.org>
Bug 163677 – pango_attr_list_splice: inconsistent docs
Patch from Morten Welinder
* pango/pango-attributes.c (pango_attr_list_splice): Improve docs.
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-07-08 Behdad Esfahbod <behdad@gnome.org>
* pango/glyphstring.c (pango_glyph_string_get_width):
* pango/pango-glyph.h:
* pango/pango-layout.c (pango_layout_line_index_to_x),
(pango_layout_line_x_to_index), (pango_layout_line_get_x_ranges):
* pango/pango-renderer.c (pango_renderer_draw_layout_line): Fix silly
error in implementation of pango_glyph_string_get_width(), and also
remove unused font parameter from its signature.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
2006-07-08 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 135683 – Cache glyphstring extents
* pango/pango-layout.c (pango_layout_line_index_to_x),
(pango_layout_line_x_to_index), (pango_layout_line_get_x_ranges):
Use pango_glyph_string_get_width in most places in PangoLayout.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-07-08 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 135683 – Cache glyphstring extents
* docs/pango-sections.txt:
* docs/tmpl/glyphs.sgml:
* pango/pango.def:
* pango/pango-glyph.h:
* pango/glyphstring.c (pango_glyph_string_get_width): New function.
Much faster than calling pango_glyph_string_extents and using
logical_rect.width.
* pango/pango-renderer.c (add_underline), (add_strikethrough),
(pango_renderer_draw_layout_line): Use the new function for
optimization.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-07-07 Behdad Esfahbod <behdad@gnome.org>
Bug 344766 – Memory leak in get_ruleset() in modules/basic/basic-fc.c
* pango/pango-ot-private.h: Rename PANGO_OT_IS_RULESET is
PANGO_IS_OT_RULESET.
* pango/pango-ot-ruleset.c (pango_ot_ruleset_finalize),
(pango_ot_ruleset_new), (pango_ot_ruleset_add_feature),
(pango_ot_ruleset_substitute), (pango_ot_ruleset_position):
Use weak pointers to reference ruleset->info, to avoid circular
dependency.
|
|
|
|
|
|
|
|
| |
2006-07-07 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-matrix.c: New file.
* pango/pango-utils.c: Move all pango_matrix_* stuff into a separate
file.
|
|
|
|
|
|
|
|
|
| |
2006-06-22 Behdad Esfahbod <behdad@gnome.org>
Bug 345600 – cvs build error in pango/opentype/Makefile
* pango/opentype/Makefile.am: Rename variable SOURCES to MAINSOURCES.
Some automake versions seem to use it or something.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-06-21 Behdad Esfahbod <behdad@gnome.org>
* autogen.sh: Just call gnome-autogen.sh. The old autogen.sh had
poor version checking and was borking with libtool 2.x.
* Makefile.am:
* configure.in:
* pango-zip.sh.in:
* pango/Makefile.am:
* pango/pango.rc.in:
* pango/pangoft2.rc.in:
* pango/pangowin32.rc.in: Rename LT_* variables such that autoconf
doesn't err on "possibly undefined macros".
|
|
|
|
|
|
|
| |
2006-06-07 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info):
Set matrix on the context we create to load minifont.
|