Behdad Esfahbod
353f455af7
[MATH] Wire up get_glyph_variants()
9 years ago
Behdad Esfahbod
7fe0e28c22
[MATH] Start fleshing out glyph variant API
9 years ago
Behdad Esfahbod
4b8de1ea80
Round, not truncate, when scaling values
...
Fixes https://github.com/behdad/harfbuzz/issues/255
9 years ago
Behdad Esfahbod
8b5bc141cd
Add get_nominal_glyph() and get_variation_glyph() instead of get_glyph()
...
New API:
- hb_font_get_nominal_glyph_func_t
- hb_font_get_variation_glyph_func_t
- hb_font_funcs_set_nominal_glyph_func()
- hb_font_funcs_set_variation_glyph_func()
- hb_font_get_nominal_glyph()
- hb_font_get_variation_glyph()
Deprecated API:
- hb_font_get_glyph_func_t
- hb_font_funcs_set_glyph_func()
Clients that implement their own font-funcs are encouraged to replace
their get_glyph() implementation with a get_nominal_glyph() and
get_variation_glyph() pair. The variation version can assume that
variation_selector argument is not zero.
9 years ago
Steven R. Loomis
a13b023dbf
AIX fixes
...
- use '-w' instead of '\<...\>' for check-header-guards
grep manpage says these are the same
- put '-q' first in the grep options
- move VAR into hb-private.hh
- hb-font-private.hh - use [VAR] instead of [] for variable array
9 years ago
Simon Cozens
6f2e6de1fa
Get font ascender and descender metrics from OS/2 table.
9 years ago
Behdad Esfahbod
ea512f7108
Use C-style casts instead of compare to 0, to convert hb_bool_t to bool
9 years ago
Behdad Esfahbod
28de104f15
Move variable-sized struct member to end
...
Hopefully makes clang build happy
9 years ago
Behdad Esfahbod
762770c964
Add font->has_...() to check for individual nil font funcs
...
Hopefully this wouldn't break any compiler. There was some magic
moments to getting this to compile...
9 years ago
Behdad Esfahbod
88e9a9bcae
Minor reshaping of hb_font_funcs_t implementation
...
In anticipation of further changes. No functional changes.
9 years ago
Behdad Esfahbod
a6a7715bac
Comments
9 years ago
Behdad Esfahbod
bee901b38e
Optimize positioning direction calculations
...
It makes the binary smaller AND faster. Yumm!
9 years ago
Behdad Esfahbod
50f489a0a0
Typo
10 years ago
Behdad Esfahbod
8de20b1e8a
Add font->has_glyph()
11 years ago
Behdad Esfahbod
2a8c49ade0
Remove unnecessary includes
11 years ago
Behdad Esfahbod
83408cf804
Fix llvm warnings on Mac
...
Patch from Scott Fleischman. Warnings were:
harfbuzz/src/hb-font-private.hh:121:42: Implicit conversion loses
integer precision: 'long long' to 'hb_position_t' (aka 'int')
harfbuzz/src/hb-font-private.hh:126:42: Implicit conversion loses
integer precision: 'long long' to 'hb_position_t' (aka 'int')
harfbuzz/src/hb-font-private.hh:400:85: Implicit conversion loses
integer precision: 'long long' to 'hb_position_t' (aka 'int')
harfbuzz/src/hb-ot-layout-common-private.hh:1115:37: Implicit conversion
loses integer precision: 'long long' to 'int'
harfbuzz/src/hb-ft.cc:421:97: Implicit conversion loses integer
precision: 'unsigned long long' to 'int'
harfbuzz/src/hb-ft.cc:422:97: Implicit conversion loses integer
precision: 'unsigned long long' to 'int'
11 years ago
Behdad Esfahbod
288f289997
[docs/introspection] More annotations
12 years ago
Behdad Esfahbod
5a5350b39b
Revert "Round when scaling values"
...
This reverts commit 10f964623f
.
See discussion with Khaled Hosny on mailing list. In short, since
integers here can be negative, and int division is "round towards
zero", proper rounding should take sign into account. Just skip
doing it again, has been serving us well before.
12 years ago
Behdad Esfahbod
2e3a07abdf
Separate face source code from font
...
Makes documentation / introspection easier.
12 years ago
Behdad Esfahbod
38b8b40526
Fix possible snprintf OOM
...
https://bugzilla.redhat.com/show_bug.cgi?id=1001645
12 years ago
Behdad Esfahbod
10f964623f
Round when scaling values
...
Doesn't matter for most users since they should be working in a
fixed sub-pixel scale anyway (ie. 22.10, 26.6, 16.16, etc).
12 years ago
Behdad Esfahbod
df8f70ae5d
Minor
12 years ago
Behdad Esfahbod
ce8badf180
Minor
12 years ago
Behdad Esfahbod
7235f33f9e
Fix misc warnings reported by cppcheck
...
https://bugs.freedesktop.org/show_bug.cgi?id=65544
12 years ago
Behdad Esfahbod
e05a999495
Add hb_face_[sg]et_glyph_count()
12 years ago
Behdad Esfahbod
4c8ac4f47e
Misc minor fixes
13 years ago
Behdad Esfahbod
6f3a300138
Add hb_font_glyph_from/to_string
13 years ago
Behdad Esfahbod
8fbfda920e
Inline font getters
13 years ago
Behdad Esfahbod
2f87cebe10
Implement shape_plan caching
...
Should give us some performance boost.
13 years ago
Behdad Esfahbod
ea278d3895
Partially switch ot shaper to shape_plan
13 years ago
Behdad Esfahbod
5b95c148cc
Start implementing shape_plan
13 years ago
Behdad Esfahbod
027857d041
Start adding a unified shaper access infrastructure
...
Add global shape_plan. Unused so far.
13 years ago
Behdad Esfahbod
1bc1cb3603
Make source more digestable for gobject-introspection
13 years ago
Behdad Esfahbod
6220e5fc0d
Add ASSERT_POD for most objects
13 years ago
Behdad Esfahbod
bce095524b
Add hb_font_get_glyph_name() and hb_font_get_glyph_from_name()
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.
14 years ago
Behdad Esfahbod
e715784be3
Rename get_table to reference_table in all API
14 years ago
Behdad Esfahbod
c605bbbb6d
Remove C++ guards from source files
...
Where causing issues for people with MSVC.
14 years ago
Behdad Esfahbod
4b6317c4f4
More code shuffling
14 years ago
Behdad Esfahbod
60fbb36096
[Vertical] GPOS is always done with horizontal origin
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
7fc5a30cb4
[API] Add hb_face_make/is_immutable()
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
b9d975b931
[API] Pass down closure user_data to font funcs
14 years ago
Behdad Esfahbod
defc45be6d
[API] Add hb_font_create_sub_font() and hb_font_get_parent()
...
Not quite useful just yet.
14 years ago
Behdad Esfahbod
11bb8fe7b3
[font] Fix internal sign of x/y_scale
...
Should have been done as part of da97541988
14 years ago
Behdad Esfahbod
74f1d896f2
Add hb_font_make/is_immutable()
14 years ago