summaryrefslogtreecommitdiff
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* utils: update a comment mentioning GraphicsMagickJeremy Bicha2021-09-181-1/+1
|
* Merge branch 'use-gm' into 'main'Matthias Clasen2021-09-091-6/+6
|\ | | | | | | | | Switch to use GraphicsMagick in pango-view See merge request GNOME/pango!472
| * Switch to use GraphicsMagick in pango-viewPeng Wu2021-09-091-6/+6
| |
* | Support antialias option in pango-view with the FreeType backendPeng Wu2021-09-091-0/+5
|/
* CosmeticsMatthias Clasen2021-08-301-1/+1
|
* CosmeticsMatthias Clasen2021-08-301-1/+1
|
* pango-view: Use pango_glyph_string_index_to_x_fullmore-rtl-cluster-fixesMatthias Clasen2021-08-291-7/+8
|
* pango-view: Redo --annotate optionMatthias Clasen2021-08-291-14/+68
| | | | | Parse the argument as a comma-separated list of names. The old numeric arguments still work.
* pango-view: Use the new apiMatthias Clasen2021-08-291-3/+2
| | | | | | Use the new run baseline api to correct the positioning of glyph extents and caret positions.
* pango-view: Improve glyph extentsMatthias Clasen2021-08-291-1/+2
| | | | | | We can't currently position them correctly for shifted runs. But at least we can get it right for the runs on the baseline.
* pango-view: More careful numberingMatthias Clasen2021-08-291-2/+7
| | | | | Don't overwrite caret position numbers with different numbers.
* pango-view: Don't draw the empty runMatthias Clasen2021-08-291-0/+5
|
* pango-view: Fix slope of caretsMatthias Clasen2021-08-291-4/+2
| | | | We want vertical carets to be really vertical.
* pango-view: Split caret positions and slopesMatthias Clasen2021-08-281-13/+26
| | | | Still some bits left!
* pango-view: Fix caret visualizationMatthias Clasen2021-08-281-2/+9
| | | | I was confusing char and byte offsets here.
* pango-view: Show caret slopes as wellMatthias Clasen2021-08-271-0/+19
| | | | | When annotating caret positions, render the diagonal of the caret position rectangle as well.
* pango-view: Allow showing glyph ink rectsligature-caret-rtl-fixesMatthias Clasen2021-08-271-11/+69
|
* pango-viewer: Number caretsMatthias Clasen2021-08-271-0/+7
| | | | | When showing caret positions, put a little number next to them to indicate the order.
* pango-view: Be more careful about caret positionsMatthias Clasen2021-08-271-12/+23
| | | | | Don't show carets where they don't belong. Skip non-cursor positions.
* pango-view: Don't omit the last caret positionMatthias Clasen2021-08-251-8/+16
| | | | We want to draw n+1 dots, the last one with trailing == 1.
* pango-viewer: Visualize caret positionsMatthias Clasen2021-08-251-2/+52
| | | | | | With --annotate=256, show caret positions. This will be helpful in improving our handling of caret positions inside clusters.
* pango-view: Change annotation handlingMatthias Clasen2021-08-191-129/+229
| | | | | Make this separate flags, so things can be turned on and off separately.
* Add an option to pango-viewjustify-last-lineMatthias Clasen2021-08-101-2/+6
| | | | | Give pango-view a --justify-last-line option to test the new PangoLayout option for this.
* utils: Fix win32 buildMatthias Clasen2021-07-091-0/+1
| | | | We need stdlib.h for exit().
* pango-segmentation: Add a --text optionsegmentation-tweaksMatthias Clasen2021-07-091-4/+20
| | | | | | Change pango-segmentation to interpret its argument as a filename, and add a --text=STRING option to specify the text directly. This matches what pango-view does.
* utils: Remove leftover codeMatthias Clasen2021-07-061-11/+0
| | | | | pango-segmentation is not a test, so don't call g_test_message.
* pango-segmentation: FixesMatthias Clasen2021-05-232-6/+29
| | | | | Only build pango-segmentation if we have cairo. And add --version here too.
* pango-list: Add --versionMatthias Clasen2021-05-231-3/+11
|
* Only build pango-segmentation if we have cairoMatthias Clasen2021-05-231-7/+7
|
* Add pango-segmentationsegmentation-utilMatthias Clasen2021-05-092-0/+189
| | | | A little utility to show text segmentation.
* Fix leaks found by asanSzunti2021-01-161-0/+1
|
* utils: Don't use deprecated apiMatthias Clasen2020-09-182-3/+3
| | | | | Port pango-viewer to use the new pango_fc_font_map_set_default_substitute.
* meson: Fix help2man options command lineRico Tzschichholz2020-06-081-1/+1
|
* pango-view: Add a --subpixel-positions optionMatthias Clasen2019-08-033-0/+8
| | | | | | This lets us explore the influence of subpixel positioning in various contexts without relying on gtk applications.
* pango-view: Add font optionsMatthias Clasen2019-07-313-2/+132
| | | | | | | Add commandline options for antialiasing, subpixel order and metrics hinting, so we can reproduce font rendering issues with pango-view.
* pango-list: Call setlocale in main functionTing-Wei Lan2019-07-291-0/+2
| | | | | | If it isn't called, GLib will try to convert non-ASCII characters to ASCII because LC_CTYPE locale is C. Therefore, all non-ASCII characters are displayed as question marks because the conversion always fails.
* Fix up harfbuzz includesMatthias Clasen2019-07-281-1/+1
| | | | | | The correct include is without harfbuzz/. Closes: https://gitlab.gnome.org/GNOME/pango/issues/387
* pango-list: Optionally show variationsMatthias Clasen2019-07-251-0/+58
| | | | | This is not perfect; we really need harfbuzz api to get design coords of a hb_font_t.
* Add a test file for coloring ArabicMatthias Clasen2019-07-241-0/+2
| | | | | | | Test that a change of foreground color does not interrupt a run of Arabict text. Taken from https://gitlab.gnome.org/GNOME/pango/issues/28
* Use the allow_breaks attributeMatthias Clasen2019-07-201-2/+2
| | | | | | In the test-hyphen.txt file, we dont want the hyphenation examples to be broken, so use the allow_breaks attribute to prevent that.
* Add a test file with lots of hyphensMatthias Clasen2019-07-181-0/+3
| | | | | | | This has quite a few soft hyphens, some explicit hyphens, and some hyphenation point characters. Try it with pango-view --width=330 --wrap=word --justify test-hyphens.txt
* pango-list: Be niceMatthias Clasen2019-07-181-2/+2
| | | | No need to dump core because somebody typoed an option.
* pango-list: Add a --metrics optionMatthias Clasen2019-07-161-32/+43
| | | | | Make the output a bit more compact, and optionally print out font metrics as well.
* pango-list: Fix a compiler warningMatthias Clasen2019-07-161-0/+1
|
* pango-list: Add a --verbose optionMatthias Clasen2019-07-161-0/+23
|
* pango-view: Make it possible to turn line-spacing offMatthias Clasen2019-07-161-4/+6
|
* Revert "utils: Link against libpangocairo"Matthias Clasen2019-07-121-1/+1
| | | | This reverts commit 37fd3ce13b643d1743ae8b69c453a2cfcb0e3eb0.
* utils: Link against libpangocairoMatthias Clasen2019-07-091-1/+1
| | | | Same here.
* pango-view: Add a --line-spacing optionMatthias Clasen2019-07-051-0/+6
| | | | Add a way to try pango_layout_set_line_spacing().
* pango-viewer: Optionally show line rectsMatthias Clasen2019-07-041-2/+27
| | | | | | With --annotate 3, show the logical rects for each line. This makes the spacing between lines easily visible.