| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Patch from Rafał Mużyło.
|
|
|
|
| |
Patch from Akira TAGOH.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Back in the days we used to always use the font from surrounding runs
for any space characters. I changed that when I found that rendering
MathML results in hexboxes when a font doesn't have the space characters
needed...
Forward to these days: HarfBuzz will silently compatibility-decompose
any space character to the ASCII space. And looks like it's important
for Mongolian to not break runs around NNBSP. As such, go back to never
choosing a font just for space characters.
Seems to work, though more testing is needed.
Bug 701652 - wrong shaped classic Mongolian word suffixes
|
|
|
|
|
|
|
| |
If we are in fallback mode, with a font that has to space glyph, then
looking up engine/font for any character not in the font was failing
badly. In that case, if there's only one engine (which is the case
these days), just choose it.
|
|
|
|
|
|
|
|
|
| |
We track changes in the PangoContext and automatically call
pango_layout_context_changed() when needed, plus we track
changes in the layout and let apps know via pango_layout_get_serial
when the layout changed and needs to be redrawn.
https://bugzilla.gnome.org/show_bug.cgi?id=340066
|
|
|
|
|
|
|
|
|
|
|
|
| |
Whenever a PangoContext or its fontmap changes we bump the
contexts serial, you can get it via pango_context_get_serial()
to see find out if the context changed since the last time and
you need to relayout.
You can also force the context to be "changed" by calling
pango_context_changed().
https://bugzilla.gnome.org/show_bug.cgi?id=340066
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Variant of pango_shape() that takes the full paragraph text as input.
This is then passed in entirety to HarfBuzz, which would allow certain
cross-run interactions (in Arabic for example).
When combined with upcoming HarfBuzz 0.9.5+, this fixes:
Red Hat Bug 858736 - [Spanish] Stray dotted circle rendered
https://bugzilla.redhat.com/show_bug.cgi?id=858736
and partially:
Bug 313181 - color changes break arabic shaping
https://bugzilla.gnome.org/show_bug.cgi?id=313181
|
|
|
|
|
| |
GLib gained a new API that allows to set qdata in a thread-safe
way. Use it here.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Add transfer container annotations so that the array is freed but not
the (static) family objects.
|
| |
|
| |
|
|
|
|
|
|
|
| |
G_CONST_RETURN is headed for deprecation (as per bug #644611). Stop
using it in Pango.
https://bugzilla.gnome.org/show_bug.cgi?id=652202
|
|
|
|
| |
return value in pango_itemize_with_base_dir
|
|
|
|
| |
return value in pango_itemize
|
| |
|
|
|
|
| |
pango_context_get_font_map
|
|
|
|
| |
pango_context_load_font
|
|
|
|
| |
pango_context_load_fontset
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Only show wide chars (as in g_unichar_iswide()) upright.
This improves rendering of 1) digits in CJK context, and 2) Narrow
Hangul characters.
New public API:
pango_gravity_get_for_script_and_width()
|
|
|
|
| |
Always show full-width Unicode characters upright.
|
|
|
|
|
|
|
|
| |
LANG=fa_IR
When computing approximate char width for context metrics use the actual
size the sample string renders to. Previously it was taking average
over all the fonts used by the sample str.
|
| |
|
|
|
|
|
|
|
| |
Move the PangoScriptIter structure definition to a private header file,
so that we can embed the iterator within other structures or allocate
a local iterator on the stack. This eliminates the frequent short-lived
allocations associated with the iterator.
|
| |
|
|
|
|
|
|
|
|
|
| |
2009-01-08 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c (itemize_state_process_run):
Improve warning message.
svn path=/trunk/; revision=2796
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-07 Behdad Esfahbod <behdad@gnome.org>
Bug 566726 – Minor optimization
* pango/pango-context.c (get_shaper_and_font):
Don't walk the fontset if there are no engines.
svn path=/trunk/; revision=2794
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-02 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c (shaper_font_element_destroy),
(get_shaper_font_cache), (shaper_font_cache_insert),
(get_shaper_and_font_foreach), (itemize_state_process_run):
Fix possible reference leak when fallback is disabled.
svn path=/trunk/; revision=2774
|
|
|
|
|
|
|
|
|
| |
2008-12-07 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c (pango_context_get_metrics):
Fix docs re NULL language. Also allow NULL desc.
svn path=/trunk/; revision=2749
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-08-05 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c:
* pango/pango-context.h:
Make the following API public:
pango_context_new()
pango_context_set_font_map()
* pango/pango-fontmap.c (pango_font_map_create_context):
* pango/pango-fontmap.h:
New public API:
pango_font_map_create_context()
* pango/pangocairo-context.c (pango_cairo_create_context):
* pango/pangocairo-font.c (_pango_cairo_font_get_metrics),
(_pango_cairo_font_private_get_hex_box_info):
* pango/pangocairo-fontmap.c (pango_cairo_font_map_create_context):
* pango/pangocairo.h:
Deprecate pango_cairo_font_map_create_context().
* pango/pangofc-font.c (pango_fc_font_get_metrics):
* pango/pangofc-fontmap.c (pango_fc_font_map_create_context):
* pango/pangofc-fontmap.h:
Deprecate pango_fc_font_map_create_context().
* pango/pangoft2-fontmap.c (pango_ft2_font_map_create_context),
(pango_ft2_get_context):
* pango/pangoft2.h:
Deprecate pango_ft2_font_map_create_context().
* pango/pangowin32.c (pango_win32_get_context),
(pango_win32_font_get_metrics):
* pango/pangowin32.h:
Deprecate pango_win32_get_context().
* pango/pangoxft-font.c (_pango_xft_font_get_mini_font):
* pango/pangoxft-fontmap.c (pango_xft_get_context):
* pango/pangoxft.h:
Deprecate pango_xft_get_context().
* pango/pangox-fontmap.c (pango_x_font_map_for_display):
* pango/pangox.c (get_context_info), (pango_x_get_context),
(pango_x_context_set_funcs), (pango_x_render_layout_line):
Deprecate pango_x_get_context(), again.
* docs/pango-sections.txt:
* docs/tmpl/fonts.sgml:
* pango-view/viewer-pangocairo.c (pangocairo_view_get_context):
* pango-view/viewer-pangoft2.c (pangoft2_view_get_context):
* pango-view/viewer-pangox.c (pangox_view_get_context):
* pango-view/viewer-pangoxft.c (pangoxft_view_get_context):
* pango/check.defs:
* pango/pango.def:
Update.
svn path=/trunk/; revision=2675
|
|
|
|
| |
svn path=/trunk/; revision=2667
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-01-28 Wouter Bolsterlee <wbolster@svn.gnome.org>
* pango/pango-context.c:
* pango/pango-fontmap.c:
* pango/pango-utils.c:
* pango/pangofc-fontmap.h:
* pango/pangox.c:
* pango/reorder-items.c:
Fixed gtk-doc warnings.
svn path=/trunk/; revision=2555
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-12-10 Behdad Esfahbod <behdad@gnome.org>
Bug 478914 – Use something invalid instead of '?' when validating
input text
* pango/pango-layout.c (pango_layout_set_text): Set invalid input
bytes to -1, which gives a unichar value of -1, and eventually a
glyph value of -1, aka PANGO_GLYPH_INVALID_INPUT.
* pango/fonts.c (pango_font_get_glyph_extents),
(pango_font_get_metrics), (pango_font_get_font_map):
* pango/modules.c (build_map):
* pango/pango-context.c (get_script), (get_shaper_and_font),
(string_from_script), (itemize_state_process_run):
* pango/pango-coverage.c (pango_coverage_get):
* pango/pango-impl-utils.h:
* pango/pango-utils.c:
* pango/pangocairo-font.c (pango_cairo_font_get_scaled_font),
(_pango_cairo_font_private_get_hex_box_info),
(_pango_cairo_font_private_get_glyph_extents_missing):
* pango/pangocairo-private.h:
* pango/pangocairo-render.c (_pango_cairo_renderer_draw_frame),
(_pango_cairo_renderer_draw_box_glyph),
(_pango_cairo_renderer_draw_unknown_glyph):
* pango/pangofc-fontmap.c (pango_fc_font_map_get_patterns):
* pango/pangoft2-private.h:
* pango/pangoft2-render.c (pango_ft2_font_render_box_glyph),
(pango_ft2_font_render_glyph), (pango_ft2_renderer_draw_glyph):
* pango/pangoft2.c (pango_ft2_font_get_face),
(pango_ft2_font_get_glyph_extents):
* pango/pangox.c (pango_x_find_subfont), (pango_x_render):
* pango/pangoxft-font.c (_pango_xft_font_get_mini_font),
(get_glyph_extents_missing), (pango_xft_font_get_font):
* pango/pangoxft-private.h:
* pango/pangoxft-render.c (get_total_matrix), (draw_box),
(_pango_xft_renderer_draw_box_glyph),
(_pango_xft_renderer_draw_unknown_glyph),
(pango_xft_renderer_draw_glyphs):
* pango/shape.c (pango_shape):
Render PANGO_GLYPH_INVALID_INPUT to a single-width box with a cross
inside. Also cleanup spewed warnings and warn at the source, where
we fail to find a shaper, instead of at every location that we see
a NULL font.
* pango/pango-font.h:
* docs/pango-sections.txt:
* docs/tmpl/glyphs.sgml:
New public macro:
PANGO_GLYPH_INVALID_INPUT
svn path=/trunk/; revision=2519
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-05-23 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 440603 – Minor ABI change
* pango/pango-context.c (pango_context_init),
(pango_context_set_language), (pango_context_get_language):
Make itemization use pango_language_get_default() if context has no
language set on it. Ditto for pango_context_get_metrics() if both
input language and context language are NULL.
svn path=/trunk/; revision=2317
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
2007-01-16 Behdad Esfahbod <behdad@gnome.org>
*.c, *.h: Removed spaces followed b tabs.
svn path=/trunk/; revision=2166
|
|
|
|
|
|
|
|
|
| |
2007-01-16 Behdad Esfahbod <behdad@gnome.org>
*.c, *.h: Replace preceding sequences of 8 spaces with tabs.
svn path=/trunk/; revision=2165
|
|
|
|
|
|
|
|
|
| |
2007-01-16 Behdad Esfahbod <behdad@gnome.org>
*.c, *.h: Drop trailing whitespace.
svn path=/trunk/; revision=2163
|
|
|
|
|
|
|
|
|
|
|
| |
2007-01-16 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-context.c (itemize_state_init),
(itemize_state_update_for_new_run): Update centered_baseline in
presence of gravity attributes.
svn path=/trunk/; revision=2147
|