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
c87b317f0e
[util] Add hb-ot-shape-closure tool
...
Computes all the glyphs that may be generated given a font and
set of Unicode characters.
The order of the Unicode characters is irrelevant.
Sample output:
behdad:util 0$ ./hb-ot-shape-closure Doulos\ SIL\ Regular.ttf f
f f_f
behdad:util 0$ ./hb-ot-shape-closure Doulos\ SIL\ Regular.ttf i
i
behdad:util 0$ ./hb-ot-shape-closure Doulos\ SIL\ Regular.ttf fi
f f_i f_f_i f_f i
behdad:util 0$ ./hb-ot-shape-closure DroidNaskh-Regular.ttf ب
uni0628 uni0628.init uni0628.medi uni0628.fina
behdad:util 0$ ./hb-ot-shape-closure DroidNaskh-Regular.ttf ا
uni0627 uni0627.fina
behdad:util 0$ ./hb-ot-shape-closure DroidNaskh-Regular.ttf با
uni0627 uni0627.fina uni0628 uni0628.init uni0628.medi uni0628.fina
behdad:util 0$ ./hb-ot-shape-closure DroidNaskh-Regular.ttf با --no-glyph-names
5 6 133 134 135 136
13 years ago
Behdad Esfahbod
912c5ff80a
Reduce default margin
13 years ago
Behdad Esfahbod
52e7b1424a
[util] Make hb-view print out Unicode art if stdout is a terminal
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
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
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
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
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
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
422558142a
[util] Account for line-space in surface size
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
11e51993ab
[util] Move font-size into view-options
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
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
90e312cb85
[util] Move code around
13 years ago
Behdad Esfahbod
109cb38289
[util] Further refactor option parsing
13 years ago
Behdad Esfahbod
97796453aa
Fix falloffs of the GOption conversion
13 years ago
Behdad Esfahbod
3bb300ee78
Refactor hb-view code
13 years ago
Behdad Esfahbod
c605bbbb6d
Remove C++ guards from source files
...
Where causing issues for people with MSVC.
13 years ago
Behdad Esfahbod
6a4e7e1372
Add maxp table
...
Not used for anything right now. Will use to get num_glyphs in the future.
14 years ago
Behdad Esfahbod
c78f448558
[API] Add version macros and functions
...
Step version up to 0.5.0.
Also, fix to pass "make distcheck"
14 years ago
Behdad Esfahbod
2409d5f8d7
Update Copyright headers
14 years ago
Behdad Esfahbod
f144a8ea84
[icu] Add two-way script conversion functions
...
Also optimizes the common-direction script lookup.
14 years ago
Behdad Esfahbod
acdba3f90b
Prefer C linkage
15 years ago
Behdad Esfahbod
c755cb3e3a
Change header comment
15 years ago
Behdad Esfahbod
8fb3d1aa4e
Start ft glue
15 years ago
Behdad Esfahbod
d94647e2cd
Add ICU glue
15 years ago
Behdad Esfahbod
081819ea8b
[OT] Hookup glib unicode funcs
15 years ago
Behdad Esfahbod
49f261df2a
[HB] Add hb-glib
15 years ago
Behdad Esfahbod
678bed4333
[HB] Add top-level header files
15 years ago
Behdad Esfahbod
0cc7bc59ea
[HB] Move typedef's around
15 years ago
Behdad Esfahbod
35a7383c61
[HB] Simplify refcounting functions
15 years ago
Behdad Esfahbod
0090dc0f67
[HB] Remove hinting setting and use ppem==0 to mean "no hinting"
15 years ago
Behdad Esfahbod
2ebb89d63d
Revert "XX"
...
This reverts commit c939f6aff405ca7b10b1f1538f46148bff719fcb.
15 years ago
Behdad Esfahbod
55520d2af1
XX
15 years ago
Behdad Esfahbod
6c78683c04
[HB] Update copyright years
15 years ago