Behdad Esfahbod
2d8ebcb9d0
[API] One last font-funcs API change
...
Now that vertical text works correctly, I'm doing a last round
modification of the font-funcs API to simplify. Expect no more
changes around here.
14 years ago
Behdad Esfahbod
7403e055cd
[Vertical] fix vertical gpos
...
Wow, it took me a few days to find the right fix!
We now set the advance for attached marks to zero, but we
do this in the _finish() state of gpos, so it shouldn't
regress with fonts like DejaVuSansMono that explicitly
decrease the mark advance width to set it to zero.
14 years ago
Behdad Esfahbod
3b0bb855e0
[Vertical] GPOS x/y advance adjustments only apply in hori/vert respectively
14 years ago
Behdad Esfahbod
cc2086d67c
[Vertical] Fix GPOS y-advance direction
14 years ago
Behdad Esfahbod
67d51ff961
[Vertical] Do fallback origin calculation
14 years ago
Behdad Esfahbod
60fbb36096
[Vertical] GPOS is always done with horizontal origin
14 years ago
Behdad Esfahbod
8b38faeede
More vertical
...
Starting to get there, but not without yet another round of changes.
I think I know wheere to go now.
14 years ago
Behdad Esfahbod
e609aeb1e2
[hb-view] Add --annotate
...
Currently it only marks glyph origins.
14 years ago
Behdad Esfahbod
b8d76dd74e
Vertical: Adjust origin in glyph_extents() and glyph_contour_point()
...
The base for vertical is almost ready now.
14 years ago
Behdad Esfahbod
190981851f
Cosmetic
14 years ago
Behdad Esfahbod
2c3f51a11c
Minor
14 years ago
Behdad Esfahbod
7e2c85de30
[API] Vertical support, take 2
...
I like this API *much* better. Implementation still incomplete, but
horizontal works.
14 years ago
Behdad Esfahbod
744970af4d
[API] Add support for vertical text
...
Design not final yet, and in fact I'm going to change it immediately,
but this is an standalone change for itself.
14 years ago
Behdad Esfahbod
4053f3f788
Cosmetic
14 years ago
Behdad Esfahbod
56d12e0356
Remove unnecessary TODO item
14 years ago
Behdad Esfahbod
1883af3796
[hb-view] Start work on vertical support
14 years ago
Behdad Esfahbod
9aa6f96af5
[hb-view] No need to allocate an extra glyph item at the end
14 years ago
Behdad Esfahbod
1a64f6e19a
[API] Add HB_LANGUAGE_INVALID
14 years ago
Behdad Esfahbod
40b5c2e86c
[test/test-ot-tag] Test hb-ot-tag.h, fix many bugs
...
I'm in awe with how many bugs this test revealed. All fixed.
14 years ago
Behdad Esfahbod
7fc5a30cb4
[API] Add hb_face_make/is_immutable()
14 years ago
Behdad Esfahbod
20c8b908dd
Finish off previous change
14 years ago
Behdad Esfahbod
0fd8c2f1be
[API] Make get_glyph() callback return a boolean
...
We need to know whether the glyph exists, so we can fallback to
composing / decomposing. Assuming that glyph==0 means "doesn't exist"
wouldn't work for applications like Pango that want to use different
"doesn't exist" glyph codes for different characters. An explicit
return value fixes that.
14 years ago
Behdad Esfahbod
805af72405
Rename get_kernings() arguments from first/second_glyph to left/right_glyph
...
Makes it clear that kerning is in visual order.
14 years ago
Behdad Esfahbod
df077fadd7
[object] Make object inert during destruction
...
Such that user_data and other finalizers cannot resurrect object
14 years ago
Behdad Esfahbod
52df150efe
Fix font subclass chainup
...
Test passing now.
14 years ago
Behdad Esfahbod
7033518f75
[API] Pass face to get_table()
14 years ago
Behdad Esfahbod
b467827806
[API] Remove const from font user_data
14 years ago
Behdad Esfahbod
9a14688e40
[API] Rename hb_face_create_for_data() to hb_face_create()
14 years ago
Behdad Esfahbod
46d6a21cc8
[API] Add hb_ot_layout_substitute_start/finish()
14 years ago
Behdad Esfahbod
c84d15f52e
Remove unused hb_set_t
14 years ago
Behdad Esfahbod
389a7c9e67
Remove hb_static_threadsafe_set_t
14 years ago
Behdad Esfahbod
e06d4eda7b
Use constructor/destructor for hb_ot_shape_plan_t
14 years ago
Behdad Esfahbod
daa446f184
Fix compile with no mutex available
14 years ago
Behdad Esfahbod
1e56c476c1
Free static mutex'es
14 years ago
Behdad Esfahbod
831886a9b4
Streamline mutex stuff
14 years ago
Behdad Esfahbod
438c4eee35
Remove unused hb_mutex_trylock()
14 years ago
Behdad Esfahbod
80a6833b03
[API] Add hb_*_get_empty() for all objects
14 years ago
Behdad Esfahbod
d3b30be378
[API] Add HB_UNTAG()
...
Useful in C API only.
14 years ago
Behdad Esfahbod
3cc6e9dcb4
Minor
14 years ago
Behdad Esfahbod
4101ca7dbb
Plug more leaks
...
All good now.
14 years ago
Behdad Esfahbod
6a7ac79e26
Plug leaks
14 years ago
Behdad Esfahbod
7aa12ebdff
[unicode] Simplify method setting
14 years ago
Behdad Esfahbod
d5bfd02721
Minor
14 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
a513dbcf73
[API] Change signature of get_contour_point and get_kerning ffuncs
...
get_contour_point now takes glyph id before point_index.
get_kerning now takes a vector to fill-in.
14 years ago
Behdad Esfahbod
63d646fb29
[font] Do user-space conversion when chaining up to parent font
14 years ago
Behdad Esfahbod
b6f902a1a9
Minor
14 years ago
Behdad Esfahbod
abcfe9b59b
Remove hb_ot_layout_context_t, simplify code
14 years ago
Behdad Esfahbod
1ded6d8bbf
Make default font-funcs chain-up to the parent
14 years ago
Behdad Esfahbod
b9d975b931
[API] Pass down closure user_data to font funcs
14 years ago