Collin Fair
9e867b6446
Remove reference to --help-output-content in --help-output (as --help-output-format's options aren't available in hb-view)
10 years ago
Collin Fair
1d55ffeb66
Add serialization syntax documentation. Clarify naming and wording in --help-output/--help-format
10 years ago
Behdad Esfahbod
cd4eb96abb
[util] Add --font-size to hb-shape
...
Also makes hb-view to use 8 bits of subpixel precision and shape at
requested size, instead of always shaping at upem and scaling results.
10 years ago
Behdad Esfahbod
5789ca69d7
[util] Minor
10 years ago
Behdad Esfahbod
c36c4a9924
Add missing va_end()
...
Fixes https://github.com/behdad/harfbuzz/pull/74
10 years ago
Behdad Esfahbod
0de25d4184
[util] Note CSS compatibility in --help-features
10 years ago
Behdad Esfahbod
8650def735
[util] Add option to set font function implementation to use
...
Supports ft and ot right now. hb-view currently not rendering with ot.
Will fix after some clean up.
11 years ago
Behdad Esfahbod
2306ad46dc
[util] Fix memory issue
11 years ago
Behdad Esfahbod
903648437c
Start fleshing out builtin font functions
11 years ago
Behdad Esfahbod
ea5e8a02eb
[util] Plug minor leak
11 years ago
Behdad Esfahbod
d688475ea9
Minor
11 years ago
Behdad Esfahbod
260a3198f4
[util] Plug leak
11 years ago
Behdad Esfahbod
c2bc818706
Work with old and new glib
...
Avoids "deprecated" warnings.
11 years ago
Behdad Esfahbod
9326d48e43
Don't use g_mapped_file_unref()
...
Was introduced in glib 2.22.
11 years ago
Behdad Esfahbod
50067e280f
[util] Add --num-iterations
...
Useful for profiling shapers.
12 years ago
Behdad Esfahbod
e2aab4b5db
Improve checks for setmode()
...
As reported by Jonathan, OS X has setmode() that is something other
than what setmode() is on Win32. So, limit invocation to Windows
platforms only.
12 years ago
Behdad Esfahbod
ceeae30f47
Really fix setmode this time
...
Thanks to Khaled for spotting it.
12 years ago
Behdad Esfahbod
7cba8a673b
Fixup previous commit
...
Now, it looks like this breaks Cygwin again. Have to figure out what's
going on.
12 years ago
Behdad Esfahbod
bc76449f51
Use setmode() instead of _setmode()
...
Looks like Cygwin / MSVC declare it that way, and it still works on
MinGW32 cross.
12 years ago
Behdad Esfahbod
9815a88111
[util] List supported output formats in --help output
12 years ago
Behdad Esfahbod
9a34a50daa
Fix build with C++11
12 years ago
Behdad Esfahbod
f9edf16725
Add buffer serialization / deserialization API
...
Two output formats for now: TEXT, and JSON. For example:
hb-shape --output-format=json
Deserialization API is added, but not implemented yet.
12 years ago
Behdad Esfahbod
407f80d625
[util] Add --bot / --eot / --preserve-default-ignorables
12 years ago
Behdad Esfahbod
78d41d8d69
Minor
12 years ago
Behdad Esfahbod
321f73c16e
[util] Add --text-before and --text-after to hb-shape / hb-view
...
Use with Arabic, for example, to see the effect on joining.
12 years ago
Behdad Esfahbod
c8149ca85e
[hb-shape] Adjust postioning output format
...
1. If there is any offset (x or y), print out both x and y offsets.
2. Always print out the advance in the major direction of the buffer.
Ie. even for zero-advance glyphs, print a "+0". This is more intuitive.
12 years ago
Behdad Esfahbod
3bc22eb7b8
Minor
12 years ago
Behdad Esfahbod
e30ebd2794
Add hb_feature_to/from_string()
12 years ago
Behdad Esfahbod
6f3a300138
Add hb_font_glyph_from/to_string
12 years ago
Behdad Esfahbod
ade7459ea7
[util] Fix leaks
12 years ago
Behdad Esfahbod
bdc48a879a
Enlarge glyph_name buffer
...
Lohit Devanagari has a glyph named:
u0924_u094D.half_u0930_u094D.blwf.vatu
12 years ago
Behdad Esfahbod
39b17837b4
Add hb_buffer_normalize_glyphs() and hb-shape --normalize-glyphs
...
This reorders glyphs within the cluster to a nominal order. This should
have no visible effect on the output, but helps with testing, for
getting the same hb-shape output for visually-equal glyphs for each
cluster.
13 years ago
Behdad Esfahbod
0594a24484
Cleanup TRUE/FALSE vs true/false
13 years ago
Behdad Esfahbod
c188548312
Add --verbose to hb-shape
...
Just turns all --show-* options on.
13 years ago
Behdad Esfahbod
ae62166519
[util] Minor
13 years ago
Behdad Esfahbod
5db0683a82
[util] Make hb-shape continue shaping other lines if shapers failed
13 years ago
Behdad Esfahbod
bce095524b
Add hb_font_get_glyph_name() and hb_font_get_glyph_from_name()
13 years ago
Behdad Esfahbod
8f8956a55f
[util] Add hidden --shaper that is equivalent of --shapers
13 years ago
Behdad Esfahbod
30874b4819
[util] Make tools default to stdin if no text is provided
...
One less argument to type in typical testing workflow!
13 years ago
Behdad Esfahbod
95cefdf96e
Add --utf8-clusters
...
Also fix cairo cluster generation.
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
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
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