Behdad Esfahbod
d6660356dd
Add uniscribe font getters
13 years ago
Behdad Esfahbod
01ec13a1d9
Implement hb_ft_font_get_face
13 years ago
Behdad Esfahbod
36a4fe037d
Fix charset conversion
13 years ago
Behdad Esfahbod
25c4830593
[util] Add hb-shape --shapers
...
If the specified shapers fail, hb-shape will fail immediately
13 years ago
Behdad Esfahbod
0501573ded
Fix const correctness in the API
13 years ago
Behdad Esfahbod
a21add6c0d
Reformat
13 years ago
Behdad Esfahbod
8df90c8118
[util] Port hb-view to GOption
13 years ago
Behdad Esfahbod
511a136f0c
Move hb-view into util/
13 years ago
Behdad Esfahbod
d753ac78da
[uniscribe] Remove zerowidth glyphs from output
13 years ago
Behdad Esfahbod
217cc81cd9
[test/shape-complex] Print cluster and position info in --verbose
13 years ago
Behdad Esfahbod
708403e7f3
Fix warnings with old glib
13 years ago
Behdad Esfahbod
ddd247b0c5
Minor
13 years ago
Behdad Esfahbod
1b8196c986
Add fallback shaper
13 years ago
Behdad Esfahbod
13a601fe99
[FT] Don't make font immutable
13 years ago
Behdad Esfahbod
38b2118724
[API] Add hb_ft_font_set_funcs(), remove hb_ft_get_font_funcs()
...
Remove hb_ft_get_font_funcs() as it cannot be used by the user anyway.
Add hb_ft_font_set_funcs(). Which will make the font internally use
FreeType. That is, no need for the font to have created using the
hb-ft API. Just create using hb_face_create()/hb_font_create() and
then call this on the font (after having set font scale). This
internally creates an FT_Face and attached to the font.
13 years ago
Behdad Esfahbod
255f176fdc
Minor
13 years ago
Behdad Esfahbod
a9057eb3f3
[uniscribe] Unbreak
13 years ago
Behdad Esfahbod
c0975e1231
Fix build again
13 years ago
Behdad Esfahbod
33ccc77902
[API] Make set_user_data() functions take a replace parameter
...
We need this to set data on objects safely without worrying that some
other thread unsets it by setting it at the same time.
13 years ago
Behdad Esfahbod
944b2ba1ce
[buffer] Make API take signed int length
...
Since we already switched to accepting -1 as 'zero-terminated'.
13 years ago
Behdad Esfahbod
de1e1cf9bc
[FT] Adapt to new face API
13 years ago
Behdad Esfahbod
458c89a856
Minor
13 years ago
Behdad Esfahbod
bf3eef540f
[uniscribe] Cleanup backend
13 years ago
Behdad Esfahbod
f1f848e2e4
Fix build
13 years ago
Behdad Esfahbod
3897335c76
[API] Sort out get_blob API
...
hb_face_get_blob() renamed to hb_face_reference_blob(), returns a
reference now.
hb_face_[sg]et_index() added.
hb_face_set_upem() added.
13 years ago
Behdad Esfahbod
e715784be3
Rename get_table to reference_table in all API
13 years ago
Behdad Esfahbod
670c873499
Fix shaper ordering logic
13 years ago
Behdad Esfahbod
cc797e0d53
Minor
13 years ago
Behdad Esfahbod
826e22732d
[uniscribe] Fix blob lifecycles
13 years ago
Behdad Esfahbod
ff199ba356
Fix shaper_list manipulation, aaaaaaaaaaaaargh
13 years ago
Behdad Esfahbod
206e329345
[test] test-object is not FreeType-specific, move it to the right place
13 years ago
Behdad Esfahbod
577326b86a
[uniscribe] Fix cluster calculation
13 years ago
Behdad Esfahbod
f6d83b2dcf
Minor
13 years ago
Behdad Esfahbod
2eb474afb4
[uniscribe] Fix shaper
...
It's kinda working finally!
13 years ago
Behdad Esfahbod
f22e661147
[glib] Protect against invalid characters
13 years ago
Behdad Esfahbod
144cd49a0e
[buffer] Accept -1 for text_length and item_length
...
A -1 text_length means: zero-terminated string.
A -1 item_length means: to the end of string.
13 years ago
Behdad Esfahbod
e9c71fab30
Fix name-table lookup
...
Oops!
13 years ago
Behdad Esfahbod
3fd2b5bece
[uniscribe] Use font size directly
13 years ago
Behdad Esfahbod
892eb2e462
[uniscribe] Make font selection work
...
Not tested yet.
13 years ago
Behdad Esfahbod
b492299eb3
Start implementing the 'name' table
13 years ago
Behdad Esfahbod
4538efacca
Skip tests by returning 77
...
automake test runner understands this.
13 years ago
Behdad Esfahbod
54eb65538d
Fix check on OS X sh
13 years ago
Behdad Esfahbod
9da554504e
Add hb_shape_list_shapers()
13 years ago
Behdad Esfahbod
d7bf473ef2
Minor
13 years ago
Behdad Esfahbod
c62a8f10f3
Free all static memory upon exit
13 years ago
Behdad Esfahbod
c4d63ef744
Fix env parsing code
...
Also changed the separator to comma instead of colon.
13 years ago
Behdad Esfahbod
3931837beb
Change hb_shape() API back to what it was, add hb_shape_full()
...
I disliked changing hb_shape() API, and disliked the fact that it was
returning a bool now. So, reverted. Added new API for the extra
functionality.
13 years ago
Behdad Esfahbod
3ca6c4ecc2
Change hb_shape() API back to what it was, add hb_shape_full()
...
I disliked changing hb_shape() API, and disliked the fact that it was
returning a bool now. So, reverted. Added new API for the extra
functionality.
13 years ago
Behdad Esfahbod
02aeca985b
[API] Changes to main shape API
...
hb_shape() now accepts a shaper_options and a shaper_list argument.
Both can be set to NULL to emulate previous API. And in most situations
they are expected to be set to NULL.
hb_shape() also returns a boolean for now. If shaper_list is NULL, the
return value can be ignored.
shaper_options is ignored for now, but otherwise it should be a
NULL-terminated list of strings.
shaper_list is a NULL-terminated list of strings. Currently recognized
strings are "ot" for native OpenType Layout implementation, "uniscribe"
for the Uniscribe backend, and "fallback" for the non-complex backend
(that will be implemented shortly). The fallback backend never fails.
The env var HB_SHAPER_LIST is also parsed and honored. It's a
colon-separated list of shaper names. The fallback shaper is invoked if
none of the env-listed shapers succeed.
New API hb_buffer_guess_properties() added.
13 years ago
Behdad Esfahbod
57692adf12
Make test.cc do something more useful
...
Hardcoded to the uniscribe backend for now. Will fix soon.
13 years ago