Behdad Esfahbod
6c0ebd02c9
[util] If font has color, generate PNG with color
9 years ago
Behdad Esfahbod
3530cc2d7c
[util] Fix option-parsing leaks
9 years ago
Behdad Esfahbod
642135f3b2
[util] In --debug mode, duplicate font data
...
This has the effect that the font data will end up in a memory
section malloc()ed exactly to its size. This gives us better
valgrind detection of out-of-bounds access.
Previously, the font data was placed in a mmap()ed section or
GString-allocated area, which didn't have proper protections
at the end when running under valgrind.
9 years ago
Behdad Esfahbod
fdd1770e00
Add API/cmdline to show glyph extents when serializing buffer
...
New API: HB_BUFFER_SERIALIZE_FLAG_GLYPH_EXTENTS
hb-shape now accepts --show-extents.
Patch from Simon Cozens.
9 years ago
Behdad Esfahbod
376d587f36
Implement more granular cluster-merging
...
TODO: Documentation.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=71445
9 years ago
Behdad Esfahbod
cd042fc8c4
[util] Disable hb-fc-list for now
...
Until I figure out what to do about the API, and finalize
the tool.
10 years ago
Behdad Esfahbod
16dac7eccf
Fix build
10 years ago
Behdad Esfahbod
ff0f210519
[util] Minor
10 years ago
Behdad Esfahbod
820505a186
Whitespace
10 years ago
Behdad Esfahbod
fe97b65a54
[utils] Add hb-fc-list
...
This is a tool that lists all fonts that can render a given string.
It uses hb_shape() to do so, and as such is aware of HarfBuzz's
normalizer.
10 years ago
Behdad Esfahbod
e8fd83932a
[util/hb-view] Fix rendering with all combinations of negative scales
10 years ago
Behdad Esfahbod
69d5af9316
[util] Minor
10 years ago
Behdad Esfahbod
a664810e38
[util] Accept comma as well as space when separating components of args
...
Applies to --font-size and --margin.
Hopefully the scanf usage here doesn't have compatibility issues
(star being counted in the return value, etc).
10 years ago
Behdad Esfahbod
e2d4e8480d
[util] Add convenience "make lib" target
10 years ago
Collin Fair
9ee176ee97
Stop hb-shape docs leaking into hb-view
10 years ago
Collin Fair
952b8dbdf6
'All' of the above, not 'each'
10 years ago
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
80f7728226
[util] Fix ansi output when surface is empty
10 years ago
Behdad Esfahbod
0de25d4184
[util] Note CSS compatibility in --help-features
10 years ago
Behdad Esfahbod
0afedaa96c
[util/hb-shape] Fix crash; oops
11 years ago
Behdad Esfahbod
9109f1e944
[util/hb-shape] Accept an empty output-format that would skip output
...
Useful for benchmarking, to avoid buffer serialization overhead (which
seems to by far dominate shaping!)
11 years ago
Behdad Esfahbod
8656408572
[util] Fix hb-view rendering with --font-funcs=ot
11 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
adb039554d
Minor
11 years ago
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