| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
simple layout -> layout
line iter -> layout iter
line -> layout line
This commit replaces the old PangoLayout implementation
with PangoSimpleLayout, and does all the necessary
cleanups.
|
| |
|
|
|
|
|
|
|
| |
This formats text in two columns.
Use it like:
columns INPUT OUTPUT
|
|
|
|
|
|
|
|
|
| |
Use it like:
parshape INPUT OUTPUT
There's two input files provided.
One in Latin and one in Hebrew.
|
|
|
|
| |
Just use g_object_ref/unref.
|
| |
|
| |
|
|
|
|
|
| |
Somebody on win32 will have to fix this to build
without warnings.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
We will just use meson from now on.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Meson is a meta build system that is:
- fast
- simpler to understand and use
- portable to multiple platforms through different backends
- well integrated with the GNOME platform
- well maintained
Using Meson allows us to build Pango much more quickly, and on all the
platforms we currently target, without any loss of functionality,
compared to Autotools.
Some timing comparisons with hot ccache for both build systems:
* autogen.sh: * meson
real 0m11.149s real 0m2.525s
user 0m8.153s user 0m1.609s
sys 0m2.363s sys 0m1.206s
* make -j$(($(nproc) + 2)) * ninja
real 0m9.186s real 0m3.387s
user 0m16.295s user 0m6.887s
sys 0m5.337s sys 0m1.318s
--------------------------------------------------------------
* autotools * meson + ninja
real 0m27.669s real 0m5.772s
user 0m45.622s user 0m8.465s
sys 0m10.698s sys 0m2.357s
System: Intel Core i7-7500U, SSD, 16GB of RAM
|
|
|
|
| |
Avoid a compiler warning for potentially uninitialized variables.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=700592
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
svn path=/trunk/; revision=2770
|
|
|
|
|
|
|
|
|
| |
2008-11-26 Behdad Esfahbod <behdad@gnome.org>
* examples/cairotwisted.c (parametrize_path), (point_on_path):
Handle close_path correctly.
svn path=/trunk/; revision=2745
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
2007-12-05 Behdad Esfahbod <behdad@gnome.org>
* examples/cairotwisted.c (point_on_path): Optimize double math.
svn path=/trunk/; revision=2517
|
|
|
|
|
|
|
|
|
|
| |
2007-12-03 Behdad Esfahbod <behdad@gnome.org>
* examples/cairotwisted.c: Add some more comments to document
the math involved.
svn path=/trunk/; revision=2510
|
|
|
|
|
|
|
|
|
|
|
| |
2007-11-30 Behdad Esfahbod <behdad@gnome.org>
* examples/cairotwisted.c (two_points_distance), (curve_length),
(parametrize_path), (point_on_path), (draw_twisted), (main):
Document cairotwisted example.
svn path=/trunk/; revision=2509
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-11-29 Behdad Esfahbod <behdad@gnome.org>
Bug 485536 – underline_position can be zero
* pango/pango-utils.c (pango_cairo_quantize_line_geometry):
Document that returned position may be zero.
* pango/pangocairo-win32font.c
(pango_cairo_win32_font_create_metrics_for_context):
* pango/pangofc-font.c (get_face_metrics):
Handle case of underline_position==0 after rounding.
svn path=/trunk/; revision=2506
|
|
|
|
|
|
|
|
|
|
|
| |
2007-10-20 Behdad Esfahbod <behdad@gnome.org>
* examples/cairotwisted.c (curve_length): Implement bezier curve
length function that flattens the curve and sum the length of straight
lines approximating it.
svn path=/trunk/; revision=2451
|
|
|
|
| |
svn path=/trunk/; revision=2379
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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>
* examples/pangowin32tobmp.c (SaveBitmap):
* modules/tibetan/tibetan-fc.c:
Replace C++-style // comments with C-style /* */ ones.
svn path=/trunk/; revision=2164
|
|
|
|
|
|
|
|
|
| |
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>
* examples/cairotwisted.c (point_on_path), (draw_text),
(draw_twisted), (draw_dream), (draw_wow), (main):
Improve text-on-path example.
svn path=/trunk/; revision=2156
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-01-16 Behdad Esfahbod <behdad@gnome.org>
* examples/pango-view.c:
* examples/pangocairo-view.c:
* examples/pangoft2-view.c:
* examples/pangox-view.c:
* examples/pangoxft-view.c:
* examples/renderdemo.c:
* examples/renderdemo.h:
* examples/test-arabic.txt:
* examples/test-chinese.txt:
* examples/test-devanagari.txt:
* examples/test-gurmukhi.txt:
* examples/test-hebrew.txt:
* examples/test-ipa.txt:
* examples/test-lao.txt:
* examples/test-latin.txt:
* examples/test-mixed.txt:
* examples/test-syriac.txt:
* examples/test-tamil.txt:
* examples/test-thai.txt:
* examples/test-tibetan.txt:
* examples/viewer-cairo.c:
* examples/viewer-cairo.h:
* examples/viewer-main.c:
* examples/viewer-pangocairo.c:
* examples/viewer-pangoft2.c:
* examples/viewer-pangox.c:
* examples/viewer-pangoxft.c:
* examples/viewer-win32.c:
* examples/viewer-x.c:
* examples/viewer-x.h:
* examples/viewer.h:
Move into pango-view/
* Makefile.am:
* configure.in:
* examples/Makefile.am:
* pango-view/Makefile.am:
Update.
svn path=/trunk/; revision=2152
|
|
|
|
|
|
|
|
|
| |
2007-01-16 Behdad Esfahbod <behdad@gnome.org>
* examples/renderdemo.c (parse_enum): Oops. Replace GType* with GType.
svn path=/trunk/; revision=2151
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-01-16 Behdad Esfahbod <behdad@gnome.org>
* examples/cairotwisted.c (draw_text):
* pango/pangocairo-win32font.c (max_glyph_width):
* pango/pangofc-font.c (max_glyph_width):
* pango/pangowin32.c (max_glyph_width),
(pango_win32_render_layout):
* pango/pangox.c (pango_x_render_layout):
Use pango_layout(_iter)?_get_line_readonly() instead of
pango_layout(_iter)?_get_line().
svn path=/trunk/; revision=2146
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-01-16 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-attributes.h:
* pango/pango-attributes.c:
New attribute types PANGO_ATTR_GRAVITY and PANGO_ATTR_GRAVITY_HINT.
New public functions:
pango_attr_gravity_new()
pango_attr_gravity_hint_new()
* pango/pango-context.c (update_attr_iterator),
(itemize_state_init), (itemize_state_add_character),
(get_shaper_and_font), (itemize_state_update_for_new_run):
Handle gravity and gravity_hint attributes.
* pango/pango-utils.h:
* pango/pango-utils.c:
New public function:
pango_parse_enum()
* pango/pango-markup.c (span_parse_func): Parse gravity and
gravity_hint attributes for <span>. Optimize a bit.
* pango/pango-markup.c (parse_absolute_size), (attr_strcmp),
(span_parse_int), (span_parse_boolean), (span_parse_color),
(span_parse_enum), (span_parse_func): Use pango_scan_int(),
pango_color_parse(), and pango_parse_enum(). Also, ignore '-' and
'_' differences when matching attribute names for <span>.
* examples/renderdemo.c (parse_enum), (parse_ellipsis),
(parse_gravity), (parse_gravity_hint), (parse_hinting),
(parse_wrap): Use a generic parse_enum() that uses pango_parse_enum().
* modules/basic/basic-fc.c (basic_engine_shape):
* pango/pangofc-fontmap.c (pango_fc_make_pattern):
Use PANGO_GRAVITY_IS_VERTICAL().
* pango/pango.def:
* docs/pango-sections.txt:
* docs/tmpl/text-attributes.sgml:
* docs/tmpl/utils.sgml:
Update.
svn path=/trunk/; revision=2145
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-01-15 Behdad Esfahbod <behdad@gnome.org>
Bug 323173 – Add layout of mixed direction text for vertical layout
* pango/pango-gravity.h:
* pango/pango-gravity.c:
Moved gravity stuff here. New public API:
PangoGravityHint
pango_gravity_get_for_matrix()
pango_gravity_get_for_script()
* pango/pango-context.h:
* pango/pango-context.c (pango_context_init),
(update_resolved_gravity), (itemize_state_update_for_new_run):
Support gravity hint. New public API:
pango_context_set_gravity_hint()
pango_context_get_gravity_hint()
* pango/pango-utils.c:
* pango/pango-matrix.c:
* pango/pango-matrix.h:
* pango/pango-types.h:
Moved gravity and matrix stuff into its own header. pango-types.h
includes both pango-matrix.h and pango-gravity.h
* pango/pango.h:
Include new headers.
* pango/pango.def:
* pango/Makefile.am:
Update.
* docs/pango-docs.sgml:
* docs/pango-sections.txt:
* docs/tmpl/glyphs.sgml:
* docs/tmpl/main.sgml:
* docs/tmpl/vertical.sgml:
Add a section for Vertical Text.
* examples/renderdemo.c (do_output), (parse_gravity_hint),
(parse_options):
Support gravity hint.
* examples/test-mixed.txt:
New test, mixed Latin, Arabic, Chinese text.
svn path=/trunk/; revision=2144
|
|
|
|
| |
svn path=/trunk/; revision=2137
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-01-04 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 332266 – gdk_draw_layout fails for coordinates >= 2^21
* pango/pango-types.h:
* pango/pango-matrix.c: New public API:
pango_matrix_transform_distance()
pango_matrix_transform_point()
pango_matrix_transform_rectangle()
pango_matrix_transform_pixel_rectangle()
* pango/pango-utils.h:
* pango/pango-utils.c: New public API:
pango_units_from_double()
pango_units_to_double()
pango_extents_to_pixels()
* pango/pango-layout.c (pango_layout_get_pixel_extents),
(pango_layout_line_get_pixel_extents): Use pango_extents_to_pixels().
* pango/pangocairo-fcfont.c:
(pango_cairo_fc_font_glyph_extents_cache_init),
(compute_glyph_extents): Use pango_units_from_double().
* examples/renderdemo.c (do_output): Use
pango_matrix_transform_pixel_rectangle();
* pango/pango.def:
* docs/pango-sections.txt:
* docs/tmpl/glyphs.sgml: Update.
svn path=/trunk/; revision=2126
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-12-06 Behdad Esfahbod <behdad@gnome.org>
* configure.in:
* pango/Makefile.am:
New generated public header file pango-features.h. Currently contains
the version information. In the future, can be expanded to define
which backends have been enabled, etc.
* pango/pango.def:
* pango/pango-utils.h:
* pango/pango-utils.c:
New public macros and functions: PANGO_VERSION_ENCODE(),
PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR, PANGO_VERSION_MICRO,
PANGO_VERSION, PANGO_VERSION_STRING, PANGO_VERSION_CHECK(),
pango_version(), pango_version_string(), pango_version_check().
* docs/pango-docs.sgml:
* docs/pango-sections.txt:
* docs/tmpl/pango-version.sgml:
Docs for new symbols, in a new section.
* examples/renderdemo.c (show_version):
If run-time Pango lib version is different than the compile-time one,
show that one too.
* pango/pango.h:
#include <pango-utils.h> as well as almost all other public pango-*.h
headers (though, the other ones were already included indirectly).
The only public pango-*.h header pango.h shouldn't include are
pango-ot.h (which is really misnamed) and pango-modules.h (that should
not be needed by 99.99% users anyway).
* docs/Makefile.am:
* docs/check.docs: Test to check that all symbols are documented and
properly hooked into documentation tree.
* pango/pango.rc.in:
* pango/pangoft2.rc.in:
* pango/pangowin32.rc.in:
Update, reflecting some internal symbol changes.
* pango/check.defs: Improve.
|
|
|
|
|
|
|
|
|
| |
2006-12-06 Behdad Esfahbod <behdad@gnome.org>
* examples/renderdemo.c (do_output): Set context language to
pango_language_get_default() instead of hardcoding "en-US".
* pango/pango-utils.c (pango_language_get_default): Improve docs.
|
|
|
|
|
|
|
|
| |
2006-12-06 Behdad Esfahbod <behdad@gnome.org>
* examples/Makefile.am:
* examples/test-gurmukhi.txt:
Gurmukhi test text from supreet sethi.
|