summaryrefslogtreecommitdiff
path: root/pango-view
Commit message (Collapse)AuthorAgeFilesLines
* Bug 576298 – Fails to link pango-view if --without-x is specified but ↵Sebastian Dröge2009-03-232-1/+5
| | | | cairo has X11 support
* Bug 547963 – man page for pango-viewBehdad Esfahbod2009-03-163-8/+32
|
* Bug 502804 – pango-view or pangocairo-view option to annotateBehdad Esfahbod2009-03-165-5/+51
| | | | | | | Added --annotate. Also fixes: Bug 502801 – per-backend pango-view options
* [pango-view] Add an extra level of mild annotation to cairo backendBehdad Esfahbod2009-03-163-74/+72
|
* [pango-view] Clear background in _renderBehdad Esfahbod2009-03-163-54/+65
|
* Bug 502805 – pango-view option for foreground/background colorBehdad Esfahbod2009-03-167-30/+182
|
* [pango-view] Don't clear the background for vector outputBehdad Esfahbod2009-03-152-7/+24
|
* [pango-view] Add ability to save to PS, EPS, PDF, and SVGBehdad Esfahbod2009-03-153-14/+183
|
* [pango-view] Make the cairo backend save png nativelyBehdad Esfahbod2009-03-151-0/+4
|
* [Makefile.am] CleanupBehdad Esfahbod2009-03-151-13/+5
|
* Bug 523166 – pango-view opens display even when invoked with -qBehdad Esfahbod2009-03-146-17/+93
| | | | Works now.
* [pango-view] Don't set metrics-hinting, fallback to surface defaultBehdad Esfahbod2009-03-141-2/+0
|
* [pango-view] Remove per-backend binariesBehdad Esfahbod2009-03-145-129/+0
|
* Bug 572662 – Remove deprecated GTK+ symbolsBehdad Esfahbod2009-03-022-749/+0
| | | | Remove the obsolete file viewer-win32.c
* Remove default font family and size. This means default is "serif 12" now,Behdad Esfahbod2009-01-301-23/+3
| | | | | | | | | | 2009-01-29 Behdad Esfahbod <behdad@gnome.org> * pango-view/viewer-render.c (make_layout), (get_options_string): Remove default font family and size. This means default is "serif 12" now, instead of previous "sans 18". svn path=/trunk/; revision=2820
* Make sure we measure layout with the same surface type as the finalBehdad Esfahbod2009-01-026-33/+25
| | | | | | | | | | | | | | | 2009-01-02 Behdad Esfahbod <behdad@gnome.org> * pango-view/viewer-main.c (main): * pango-view/viewer-pangocairo.c (pangocairo_view_render): * pango-view/viewer-pangoft2.c (pangoft2_view_render): * pango-view/viewer-pangox.c (pangox_view_render): * pango-view/viewer-pangoxft.c (pangoxft_view_render): * pango-view/viewer.h: Make sure we measure layout with the same surface type as the final target. Also reduces fonts loaded by the pangocairo backend. svn path=/trunk/; revision=2777
* Call cairo_debug_reset_static_data().Behdad Esfahbod2008-12-261-0/+2
| | | | | | | | | 2008-12-26 Behdad Esfahbod <behdad@gnome.org> * pango-view/viewer-pangocairo.c (pangocairo_view_destroy): Call cairo_debug_reset_static_data(). svn path=/trunk/; revision=2772
* Fix all warnings in pango-view/Behdad Esfahbod2008-12-267-39/+39
| | | | | | | | | | | | | | | | | | | | | | | 2008-12-25 Behdad Esfahbod <behdad@gnome.org> * pango-view/viewer-main.c (main): * pango-view/viewer-pangocairo.c (pangocairo_view_create), (transform_callback), (pangocairo_view_render), (pangocairo_view_write): * pango-view/viewer-pangoft2.c (substitute_func), (pangoft2_view_create), (pangoft2_view_create_surface), (pangoft2_view_destroy_surface), (render_callback), (pangoft2_view_render), (pangoft2_view_write): * pango-view/viewer-pangox.c (render_callback): * pango-view/viewer-pangoxft.c (default_substitute), (render_callback): * pango-view/viewer-render.c (parse_enum), (parse_align), (parse_ellipsis), (parse_gravity), (parse_gravity_hint), (parse_hinting), (parse_wrap), (parse_backend), (show_version): * pango-view/viewer-x.c (x_view_init): Fix all warnings in pango-view/ svn path=/trunk/; revision=2769
* Bug 469049 – Fix all compiler warningsBehdad Esfahbod2008-12-261-0/+1
| | | | | | | | | | | | | | | | | | | | | 2008-12-25 Behdad Esfahbod <behdad@gnome.org> Bug 469049 – Fix all compiler warnings * pango-view/viewer-pangocairo.c (render_callback): * pango/fonts.c (append_field), (pango_font_description_to_string): * pango/opentype/harfbuzz-dump.c: * pango/pango-bidi-type.c (pango_log2vis_get_embedding_levels): * pango/pango-coverage.c (pango_coverage_set): * pango/pango-markup.c (span_parse_func): * pango/pango-renderer.c (pango_renderer_default_draw_error_underline): * pango/pango-utils.c (pango_scan_string): * pango/pangocairo-render.c (pango_cairo_renderer_draw_trapezoid), (draw_error_underline), (pango_cairo_renderer_class_init): Fix all the remaining warnings. svn path=/trunk/; revision=2767
* Various corrections.Behdad Esfahbod2008-08-201-20/+18
| | | | | | | | | | 2008-08-19 Behdad Esfahbod <behdad@gnome.org> * pango-view/GLASS.txt: * pango/pango-ot-tag.c: Various corrections. svn path=/trunk/; revision=2694
* Make the following API public:Behdad Esfahbod2008-08-064-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-2210-10/+10
| | | | | | | | | | | | 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
* Wait for convert(1) to finish. Patch by Jamie Guinan.Behdad Esfahbod2008-04-281-1/+7
| | | | | | | | | | 2008-04-28 Behdad Esfahbod <behdad@gnome.org> * pango-view/viewer-main.c (main): Wait for convert(1) to finish. Patch by Jamie Guinan. svn path=/trunk/; revision=2620
* Bug 469313 – Add pango_layout_set_height() Bug 508179 – PangoGlyphUnitBehdad Esfahbod2008-01-151-16/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-14 Behdad Esfahbod <behdad@gnome.org> Bug 469313 – Add pango_layout_set_height() Bug 508179 – PangoGlyphUnit confusion * pango/pango-layout.h: * pango/pango-layout-private.h: * pango/pango-layout.c: * pango/ellipsize.c (_pango_layout_line_ellipsize): New public API: pango_layout_set_height() See docs for semantics. Currently only negative height values (number of lines) is implemented. * pango-view/viewer-render.c (make_layout), (output_body), (parse_options): Implement --height. * pango/pango.def: * docs/pango-sections.txt: * docs/tmpl/layout.sgml: Update. 2008-01-14 Behdad Esfahbod <behdad@gnome.org> Bug 508179 – PangoGlyphUnit confusion * pango/pangowin32.c: * pango/glyphstring.c: * pango/pango-layout.c (process_item): Remove all traces of #PangoGlyphUnit svn path=/trunk/; revision=2542
* Bug 508007 – Add option for single-paragraph mode to pango-viewBehdad Esfahbod2008-01-081-0/+4
| | | | | | | | | | | | 2008-01-08 Behdad Esfahbod <behdad@gnome.org> Bug 508007 – Add option for single-paragraph mode to pango-view * pango-view/viewer-render.c (make_layout), (parse_options): Add --single-par option to pango-view. svn path=/trunk/; revision=2537
* Fix assertion in pango_gravity_get_rotation().Behdad Esfahbod2007-12-061-1/+1
| | | | | | | | | | 2007-12-05 Behdad Esfahbod <behdad@gnome.org> * pango-view/viewer-pangocairo.c (render_callback): Fix assertion in pango_gravity_get_rotation(). svn path=/trunk/; revision=2515
* Bug 474708 – pangocairo leaks memoryBehdad Esfahbod2007-09-081-1/+1
| | | | | | | | | | | | | | 2007-09-07 Behdad Esfahbod <behdad@gnome.org> Bug 474708 – pangocairo leaks memory * pango-view/viewer-pangocairo.c (pangocairo_view_create): Use pango_cairo_font_map_new() instead of pango_cairo_font_map_get_default(), so the font map is freed at the end so we can use valgrind to detect leaks without noise. svn path=/trunk/; revision=2425
* MinorBehdad Esfahbod2007-08-301-3/+4
| | | | svn path=/trunk/; revision=2419
* Fix Japanese text. Patch from Ben KonrathBehdad Esfahbod2007-05-282-2/+2
| | | | | | | | | | | 2007-05-28 Behdad Esfahbod <behdad@gnome.org> * pango-view/test-mixed.markup: * pango-view/test-mixed.txt: Fix Japanese text. Patch from Ben Konrath svn path=/trunk/; revision=2322
* New test text for N'Ko.Behdad Esfahbod2007-05-232-0/+16
| | | | | | | | | | | 2007-05-22 Behdad Esfahbod <behdad@gnome.org> * pango-view/Makefile.am: * pango-view/test-nko.txt: New test text for N'Ko. svn path=/trunk/; revision=2316
* Add a test file showing off OpenType language-system support used withBehdad Esfahbod2007-05-162-0/+6
| | | | | | | | | | | | 2007-05-16 Behdad Esfahbod <behdad@gnome.org> * pango-view/Makefile.am: * pango-view/test-opentype-language.markup: Add a test file showing off OpenType language-system support used with DejaVu Sans. svn path=/trunk/; revision=2312
* Add various test txt files recently added.Behdad Esfahbod2007-05-152-0/+13
| | | | | | | | | | | | | 2007-05-15 Behdad Esfahbod <behdad@gnome.org> * pango-view/Makefile.am: Add various test txt files recently added. * pango-view/test-mixed.markup: A language-tagged version of test-mixed.txt. svn path=/trunk/; revision=2299
* Part of Bug 414264 – Pango vertical writing support is different withBehdad Esfahbod2007-05-141-0/+1
| | | | | | | | | | | | | 2007-05-14 Behdad Esfahbod <behdad@gnome.org> Part of Bug 414264 – Pango vertical writing support is different with real CJK usage. * pango-view/test-mixed.txt: Add a line of Japanese text that has brackets that should be rotated in vertical text. svn path=/trunk/; revision=2291
* Add --language.Behdad Esfahbod2007-05-141-2/+7
| | | | | | | | | | 2007-05-13 Behdad Esfahbod <behdad@gnome.org> * pango-view/viewer-render.c (do_output), (parse_options): Add --language. svn path=/trunk/; revision=2283
* Improve docs about freeing returned items.Behdad Esfahbod2007-05-031-1/+0
| | | | | | | | | | 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-031-0/+19
| | | | | | | | | | | | 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
* Save one layout rendering per view. Down to two from three now.Behdad Esfahbod2007-05-031-10/+16
| | | | | | | | | | 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-031-0/+5
| | | | | | | | | | 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
* Add --justify.Mathias Hasselmann2007-05-021-0/+4
| | | | | | | | | | 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
* Add option for testing text alignment.Mathias Hasselmann2007-05-011-4/+24
| | | | | | | | | | 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
* Move PANGO_UNITS_ROUND here... ...from here.Behdad Esfahbod2007-04-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Bug 398238 – pangorc file missing from tests directoryBehdad Esfahbod2007-01-211-1/+1
| | | | | | | | | | | | | 2007-01-21 Behdad Esfahbod <behdad@gnome.org> Bug 398238 – pangorc file missing from tests directory * pango-view/Makefile.am: * tests/Makefile.am: Don't use $<. Doesn't work with Sun's make. svn path=/trunk/; revision=2176
* Fix typo when rounding to points.Behdad Esfahbod2007-01-161-2/+2
| | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> * pango-view/viewer-render.c (make_layout): Fix typo when rounding to points. svn path=/trunk/; revision=2169
* *.c, *.h: Removed spaces followed b tabs.Behdad Esfahbod2007-01-162-8/+8
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Removed spaces followed b tabs. svn path=/trunk/; revision=2166
* *.c, *.h: Replace preceding sequences of 8 spaces with tabs.Behdad Esfahbod2007-01-165-10/+10
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Replace preceding sequences of 8 spaces with tabs. svn path=/trunk/; revision=2165
* *.c, *.h: Drop trailing whitespace.Behdad Esfahbod2007-01-169-86/+86
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Drop trailing whitespace. svn path=/trunk/; revision=2163
* Rename renderdemo.[ch] to viewer-render.[ch].Behdad Esfahbod2007-01-1611-25/+25
| | | | | | | | | | | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> * pango-view/Makefile.am: * pango-view/renderdemo.c: * pango-view/renderdemo.h: * pango-view/viewer-main.c: * pango-view/viewer-pangocairo.c: * pango-view/viewer-pangoft2.c: * pango-view/viewer-pangox.c: * pango-view/viewer-pangoxft.c: * pango-view/viewer-render.c: * pango-view/viewer-render.h: * pango-view/viewer-x.c: Rename renderdemo.[ch] to viewer-render.[ch]. svn path=/trunk/; revision=2153
* Move into pango-view/Behdad Esfahbod2007-01-1634-0/+3647
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