Behdad Esfahbod
95cefdf96e
Add --utf8-clusters
...
Also fix cairo cluster generation.
13 years ago
Behdad Esfahbod
effb42e5c5
Always use cairo_show_text_glyphs()
...
Better catches cluster errors.
13 years ago
Behdad Esfahbod
799cfdd15a
Make page progression be right to left for vertical text
13 years ago
Behdad Esfahbod
a5f1834f57
Apply 'liga' for vertical writing mode too
...
Apparently that's what Kazuraki uses to form vertical ligatures,
which suggests that it's what Adobe does.
13 years ago
Behdad Esfahbod
4d85252bda
Add Japanese test data from Adobe's Kazuraki font ligatures
13 years ago
Behdad Esfahbod
e74616b889
Add comment
13 years ago
Behdad Esfahbod
683b503f30
Minor
13 years ago
Behdad Esfahbod
b9f199c8e3
Move code around
13 years ago
Behdad Esfahbod
38a83019e6
Minor
13 years ago
Behdad Esfahbod
d4adade217
Add assert
13 years ago
Behdad Esfahbod
fe28b997fb
Add HB_DIRECTION_IS_VALID
13 years ago
Behdad Esfahbod
5e88aa6682
Remove public enum names again
...
As was reported to me, glib-mkenum does not understand named enums,
so remove for now.
13 years ago
Behdad Esfahbod
08569c0eaa
Minor
13 years ago
Behdad Esfahbod
4bf90f6483
Make HB_DIRECTION_INVALID be zero
...
This changes all the HB_DIRECTION_* enum member values, but is
nicer, in preparation for making hb_segment_properties_t public.
13 years ago
Behdad Esfahbod
d01402da9c
Minor
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
c6035cf802
Add names to enums
...
gdb was showing <anonymous enum> instead of useful stuff, so name
all our enums.
13 years ago
Behdad Esfahbod
d1c9eb458c
Make it an error to include non-top-level headers
...
Users should #include <hb.h> (or hb-ft.h, hb-glib.h, etc), but
never things like hb-shape.h directly. This makes it easier to
refactor headers later on without breaking compatibility.
13 years ago
Behdad Esfahbod
323190c27b
Minor
13 years ago
Behdad Esfahbod
0e3361464b
Fix bug with not setting Unicode props of the first character
...
Fixes Mongolian shaping issue:
https://bugs.freedesktop.org/show_bug.cgi?id=45695
13 years ago
Behdad Esfahbod
f9746b600a
Minor
13 years ago
Behdad Esfahbod
7470b0ff80
Add Mongolian test case
13 years ago
Behdad Esfahbod
c65662b71e
Fix left-matra positioning in Indic
...
Fixes 200 failures out of previous 4290 cases in the OO.o Indic
dictionary (of ~16000 entries).
13 years ago
Behdad Esfahbod
6d16403bfa
Adjust TODO
13 years ago
Behdad Esfahbod
029a82d81d
[hangul] Apply *jmo features to all Hangul chars
...
This is what old HB does. Morever, fixes rendering with Win8 malgun
font. The Win7 version doesn't compose with either Uniscribe nor HB,
but Win8 version works as expected, like Uniscribe, with this change.
Lets call Hangul done for now.
13 years ago
Behdad Esfahbod
3baae2440d
Update TODO
13 years ago
Behdad Esfahbod
a4976447cd
Add Hangul test
13 years ago
Behdad Esfahbod
e95d912b3b
Fix diff tool
13 years ago
Behdad Esfahbod
41ae674f68
Don't create hb_apply_context_t per glyph!
...
I couldn't measure significant performance gains out of this; maybe
about 5% (with one million Malayalam strings). Still, not bad.
But reminds me that optimizing this codebase without profiling first
is simply not going to work. Oh well...
13 years ago
Behdad Esfahbod
4a1e02ef79
Fix shape to presentation forms font check
...
As reported by Jonathan Kew on the list.
13 years ago
Behdad Esfahbod
6062f5f014
Fix build with some compilers
...
As reported by Jonathan Kew on the list.
13 years ago
Behdad Esfahbod
acd88e659f
In Arabic fallback shaping, check that the font has glyph for new char
13 years ago
Behdad Esfahbod
7752aa73e7
Minor
13 years ago
Behdad Esfahbod
939c010211
Implement Arabic fallback shaping mandatory ligatures
13 years ago
Behdad Esfahbod
b7d04eb606
Do Arabic fallback shaping
13 years ago
Behdad Esfahbod
ae4a2b9365
Generate fallback Arabic shaping table
...
Not hooked up yet.
13 years ago
Behdad Esfahbod
3b26f96ebe
Add Thai shaper that does SARA AM decomposition / reordering
...
That's not in the OpenType spec, but it's what MS and Adobe do.
13 years ago
Behdad Esfahbod
0b6d2ac6a1
Minor
13 years ago
Behdad Esfahbod
e099dd6592
Add Thai test case for SARA AM decomposition
13 years ago
Behdad Esfahbod
4450dc9354
Move around
13 years ago
Behdad Esfahbod
d4cc44716c
Move code around, in prep for Thai/Lao shaper
13 years ago
Behdad Esfahbod
c9a841f445
Add simple Hangul shaper that recomposes Jamo when feasible
...
Previously, we were NOT actually recomposing Hangul Jamo. We do now.
The two lines in:
test/shaping/texts/in-tree/shaper-default/script-hangul/misc/misc.txt
Now render the same with the UnDotum.ttf font. Previously the second
linle was rendering boxes.
We can also start applying OpenType Jamo features later. At this time,
I have no idea how the 'ljmo', 'vjmo', 'tjmo' features are supposed to
work. Maybe someone can explain them to me?
13 years ago
Behdad Esfahbod
9683184553
Implement normalization mode HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_FULL
...
In this mode we try composing CCC=0 with CCC=0 characters. Useful for
Hangul.
13 years ago
Behdad Esfahbod
bec2ac4fde
Bring normalization algorithm closer to the spec
...
No logical difference so far.
13 years ago
Behdad Esfahbod
e02d925786
Flip logic around
13 years ago
Behdad Esfahbod
aaa25d5f45
Add Hangul test case
...
Composed, and decomposed, of the same text.
13 years ago
Behdad Esfahbod
11138ccff7
Add normalize mode
...
In preparation for Hangul shaper.
13 years ago
Behdad Esfahbod
6769f21d57
More moving code around
13 years ago
Behdad Esfahbod
2db2a56682
Move code around
13 years ago