Behdad Esfahbod
c704a8700e
[util] Fix uninitialized memory access
11 years ago
Behdad Esfahbod
260a3198f4
[util] Plug leak
11 years ago
Behdad Esfahbod
c77d1ade68
Fix warnings
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
078de49ca1
[util] Don't use g_array_unref()
...
Was introduced in glib 2.22.
11 years ago
Behdad Esfahbod
4dc798de19
Add hb-deprecated.h, and rename a couple enum values
...
Add deprecated alias for old name.
11 years ago
Behdad Esfahbod
5fbc952524
Fix glyph name printing in hb-ot-shape-closure
11 years ago
Behdad Esfahbod
7235f33f9e
Fix misc warnings reported by cppcheck
...
https://bugs.freedesktop.org/show_bug.cgi?id=65544
12 years ago
Chun-wei Fan
b4c5c52944
util/ansi-print.cc: Use fallback implementation for lround on MSVC
...
Unfortuately Visual Studio (still) does not support the C99 function
lround, so provide a fallback implementation for it.
12 years ago
Behdad Esfahbod
e4046080c5
[util] Unbreak --show-text / --show-unicode
12 years ago
Behdad Esfahbod
50067e280f
[util] Add --num-iterations
...
Useful for profiling shapers.
12 years ago
Behdad Esfahbod
c462b32dcb
Disable automatic segment properties guessing
...
Before, if one called hb_shape() without setting script, language, and
direction on the buffer, hb_shape() was calling
hb_buffer_guess_segment_properties() on the user's behalf to guess
these.
This is very dangerous, since any serious user of HarfBuzz must set
these properly (specially important is direction). So now, we don't
guess properties by default. People not setting direction will get
an abort() now. If the old behavior is desired (fragile, good for
simple testing only), users can call
hb_buffer_guess_segment_properties() on the buffer just before calling
hb_shape().
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
1172dc7362
Rename hb_buffer_clear() to hb_buffer_clear_contents()
...
The previous name was clashing with harfbuzz.old. There are systems
that need to link both...
Clash-free now again.
12 years ago
Behdad Esfahbod
4a765f092d
Minor
12 years ago
Behdad Esfahbod
9815a88111
[util] List supported output formats in --help output
12 years ago
Behdad Esfahbod
f95a87b7b8
[util] List supported output formats in hb-view
12 years ago
Behdad Esfahbod
6bad092aa8
[util] Default to "text" output format in hb-shape
...
If you say:
hb-shape font.ttf text --output-file out.txt
This was previously failing:
Unknown output format `txt'; supported formats are: TEXT / JSON
Now we simply fallback to TEXT if no explicit format was requested.
12 years ago
Behdad Esfahbod
9a34a50daa
Fix build with C++11
12 years ago
Behdad Esfahbod
75da37dcb1
Minor
12 years ago
Behdad Esfahbod
aec89de564
Add / modify set API a bit
12 years ago
Behdad Esfahbod
a4bef84e37
[util] Make hb-shape err if output-format is not understood
...
And list supported formats.
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
6a5661f1e6
Ugh
13 years ago
Behdad Esfahbod
f211d5c291
More Oops! Fix fast-path with sub-type==0
13 years ago
Behdad Esfahbod
a18280a8ce
Fix warnings produced by clang analyzer
13 years ago
Behdad Esfahbod
7ec83051c0
Fix warnings
13 years ago
Behdad Esfahbod
0594a24484
Cleanup TRUE/FALSE vs true/false
13 years ago
Behdad Esfahbod
4a8a529068
Make hb-view err if all shapers failed
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
cd6a549341
Remove unused variable
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
29ce446d31
Add set iterator
13 years ago