Behdad Esfahbod
2097951110
[util] Change default font size of hb-view to 256
...
Most common usecase of hb-view is to test rendering of short words for
testing / inspection. Not having to type "--font-size 150" each time
isn't such a bad idea...
13 years ago
Behdad Esfahbod
95cefdf96e
Add --utf8-clusters
...
Also fix cairo cluster generation.
13 years ago
Behdad Esfahbod
effb42e5c5
Always use cairo_show_text_glyphs()
...
Better catches cluster errors.
13 years ago
Behdad Esfahbod
799cfdd15a
Make page progression be right to left for vertical text
13 years ago
Behdad Esfahbod
69b84a8f6c
Fix hb-view surface size calc for vertical text
...
For some reason it doesn't quite work with IranianNastaliq, but
that looks like a font issue.
13 years ago
Behdad Esfahbod
6bd9b479b8
Hide backend-specific shape functions
...
Also remove shaper_options argument to hb_shape_full(). That was
unused and for "future". Let it go.
More shaper API coming in preparation for plan/planned API.
13 years ago
Behdad Esfahbod
f51e167436
Minor error handling
13 years ago
Behdad Esfahbod
d530024168
[util] Make clusters work with char offset instead of UTF-8 offset
...
This means the --features indices also refer to char position
instead of byte position now. Same for cluster values reported
by hb-shape.
Will add an option for byte indices later.
13 years ago
Behdad Esfahbod
0f68f4a0b5
Correctly print out Unicode strings
13 years ago
Behdad Esfahbod
d8134bc017
[hb-shape] Add parantheses around --show-text output
13 years ago
Behdad Esfahbod
4e84ce48d5
Move hb-diff to test/shaping/
13 years ago
Behdad Esfahbod
c91c4fa471
[hb-shape] Change glyphstring brackets from </> to [/]
...
Sorry for the disruption but I need this to differentiate from the
Unicode string.
13 years ago
Behdad Esfahbod
4983feebbb
[hb-diff] Clean up
13 years ago
Behdad Esfahbod
cdc673d97c
[hb-shape] Add --show-line-num
...
Ok, much more useful as a test suite driver now.
13 years ago
Behdad Esfahbod
cc4d9810d6
[hb-shape] Add --show-text and --show-unicode options
13 years ago
Behdad Esfahbod
27c36af411
Fix OOB in hb-shape
13 years ago
Behdad Esfahbod
8750abaf84
[util] Add --help-features
...
Patch from Khaled Hosny.
13 years ago
Behdad Esfahbod
a097043f9a
Allow space in one more place when parsing features
13 years ago
Behdad Esfahbod
fd528c17b7
[util] Add --list-shapers to hb-view and hb-shape
13 years ago
Behdad Esfahbod
5857720cd3
[util] s/%d/%u/ when printing glyph ids and clusters
13 years ago
Behdad Esfahbod
d3f3690b48
hb-shape: In --no-glyph-names, output glyph number directly
...
Ie. write "86" instead of "gid86".
13 years ago
Behdad Esfahbod
088c1e27c0
[util] Fix option parsing
...
Wow, who knew bool is one byte and I was using it as a 4byte int?!
C++ auto casts fails you in mysterious ways...
13 years ago
Behdad Esfahbod
e700bce118
[util] Add hb-diff
...
A diff program written in Python that is more suitable for comparing
hb-shape output from different backends. Main differences with stock
diff:
1. It outputs one line's comparison at a time, as opposed to batching
'+' lines and '-' lines.
2. It colors the part of the line that changed, taking word boundaries
into consideration.
You can pipe the colored output to 'less -r'.
13 years ago
Behdad Esfahbod
422558142a
[util] Account for line-space in surface size
13 years ago
Behdad Esfahbod
b5afd8f78e
[util] Rename --output to --output_file, and --format to --output-format
13 years ago
Behdad Esfahbod
466393c2f0
Really fix build this time
13 years ago
Behdad Esfahbod
fe1605db4f
Fix dist
13 years ago
Behdad Esfahbod
8b8b19056d
[util] Add hb-shape utility
...
Like hb-view, but prints out buffer contents.
The output format is kinda cryptic. Suggestions welcome.
13 years ago
Behdad Esfahbod
f6496663c2
[util] If no text is provided, simply call cairo_show_glyphs()
13 years ago
Behdad Esfahbod
11e51993ab
[util] Move font-size into view-options
13 years ago
Behdad Esfahbod
0fe2960197
Fix Linux build when io.h is available
...
Bug 40953 - fail compile git: make[2]: *** [hb_view-options.o] Error 1
13 years ago
Behdad Esfahbod
d2b3ab9ece
Fix "[util] Fix hb-view crash with bogus font."
13 years ago
Behdad Esfahbod
da4a2a1426
Cosmetic
13 years ago
Behdad Esfahbod
4274ed7ab6
[util] Fix hb-view crash with bogus font
13 years ago
Behdad Esfahbod
5ddd9cc499
Minor
13 years ago
Behdad Esfahbod
55aeb04904
Fix reading text from stdin
13 years ago
Behdad Esfahbod
a75c1b1251
Move code around
13 years ago
Behdad Esfahbod
7bf6ecd3bf
Always shape at size=upem
...
Fixes bug with uniscribe not handling GIGANTIC sizes.
13 years ago
Behdad Esfahbod
674ee58d9b
Minor
13 years ago
Behdad Esfahbod
4451168e5d
Fix binary stdin/stdout io in Windows
...
Make --font-file accept "-" to mean stdin, and have it work
in Windows too!
13 years ago
Behdad Esfahbod
639b5957d9
Minor
13 years ago
Behdad Esfahbod
f7e2ef74f8
[hb-view] Make print to stdout work in Windows
...
Apparently there's no equivalent to "/dev/stdout", so write using
stdio to be able to output to stdout.
13 years ago
Behdad Esfahbod
b9b10ad78b
[util] Refactor hb-view completely
...
Now we can use the same code to do other utils...
13 years ago
Behdad Esfahbod
bc4b07b05e
More reshuffling
13 years ago
Behdad Esfahbod
516857eb51
[util] Simplify more
13 years ago
Behdad Esfahbod
4f4b114a55
[util] Move code around
13 years ago
Behdad Esfahbod
46d86a73a1
Minor
...
We now support using -1 for NUL-terminated strings.
13 years ago
Behdad Esfahbod
90e312cb85
[util] Move code around
13 years ago
Behdad Esfahbod
109cb38289
[util] Further refactor option parsing
13 years ago
Behdad Esfahbod
4c9fe88d30
[API] Make all _from_string() functions take a len parameter
...
Can be -1 for NUL-terminated string. This is useful for passing parts
of a larger string to a function without having to copy or modify the
string first.
Affected functions:
hb_tag_t hb_tag_from_string()
hb_direction_from_string()
hb_language_from_string()
hb_script_from_string()
13 years ago