summaryrefslogtreecommitdiff
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* pango-segmentation: Some tweakspango-segmentation-workMatthias Clasen2023-01-151-13/+66
| | | | Allow showing word and sentence start/end too.
* utils/viewer-cairo.c: fix empty-bodyFabrice Fontaine2022-03-291-1/+1
| | | | | | | | | | | | | | | Fix the following build failure raised since version 1.50.5 and https://gitlab.gnome.org/GNOME/pango/-/commit/cd08fb7402498e6ea542b4628447547477ac212e: ../utils/viewer-cairo.c: In function 'cairo_vector_view_create': ../utils/viewer-cairo.c:228:5: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body] ; ^ Fixes: - http://autobuild.buildroot.org/results/dee3d631474f83b345f22eb26c59a305c32258f8 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
* Drop the hb-glib dependency againMatthias Clasen2022-03-091-5/+9
| | | | | | It is not really needed. Fixes: #674
* pango-view: Remove debug spewMatthias Clasen2022-03-091-2/+0
|
* pango-view: Show more baselinesMatthias Clasen2022-02-171-1/+117
| | | | | | | | | With --annotation=run-baselines, show the baselines from the BASE table for each run, if harfbuzz knows them. We draw a solid line for baselines that come from the BASE table, and a dashed line for baselines that are synthesized.
* utils: Use common cflagsMatthias Clasen2022-02-151-3/+3
|
* pango-segmentation: fix compiler warningsMatthias Clasen2022-02-151-3/+3
|
* pango-view: Fix compiler warningsMatthias Clasen2022-02-152-0/+5
|
* pango-view: Support transforms with --serializedMatthias Clasen2021-12-181-0/+5
| | | | | We can just use the matrix from the deserialized layout.
* pango-view: Add --serialize-to optionviewer-serialize-outputMatthias Clasen2021-12-171-2/+17
| | | | Add an option to produce a serialized output.
* Fix pango-view option handlingfix-pango-view-optionsMatthias Clasen2021-12-111-3/+3
| | | | | The --serialized option did not quite work as expected.
* Fix pango-view crashPeng Wu2021-11-291-2/+0
| | | | | Remove cairo_debug_reset_static_data function call in pango-view to avoid crash.
* pango-view: Deserialize context tooMatthias Clasen2021-11-241-1/+1
| | | | | This lets us transfer things like base gravity from layout-editor to pango-view.
* Add flags to serialize and deserializeMatthias Clasen2021-11-241-1/+1
| | | | | | | This gives us some room to add more things to these apis, e.g. a way to store not just the input part of a layout, but also the output.
* pango-view: Allow loading serialized layoutsMatthias Clasen2021-11-191-1/+34
| | | | | | | | | You can now do pango-view --serialized file All layout-related options will be overwritten by the serialized data. Other options can still be used.
* pango-view: Fix display of char extentsMatthias Clasen2021-11-191-1/+1
|
* pango-view: Remove debug spewMatthias Clasen2021-11-161-3/+0
|
* pango-view: Accept width 0Matthias Clasen2021-11-111-2/+2
| | | | | | GTK frequently uses this width during measuring, so it is good if we can reproduce what happens in this case.
* pango-view: Add --pango-unitsMatthias Clasen2021-11-111-4/+28
| | | | This can make it easier to reproduce problems.
* 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
|