Behdad Esfahbod
c8f529a07e
[config] Add HB_NO_HINTING, enabled by HB_TINY
...
Disables HintingDevice tables and Anchors addressing contour points.
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-19 19:33:15 -07:00
Behdad Esfahbod
a849873124
[config] Add HB_NO_VAR to disable variations support, enabled by HB_TINY
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-19 19:26:22 -07:00
Behdad Esfahbod
230adf2c41
[config] Add HB_NO_OT_FONT_GLYPH_NAMES
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-19 18:49:52 -07:00
Behdad Esfahbod
b0debc32f6
[subset] Simplify collect_name_ids
2019-06-19 18:42:51 -07:00
Behdad Esfahbod
a5897463d4
[config] Add HB_NO_STAT
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-19 18:36:35 -07:00
Behdad Esfahbod
ffc2b8d56e
[config] Don't include name table in face if HB_NO_NAME
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-19 18:33:29 -07:00
Behdad Esfahbod
1432df102e
[config] Disable hb-ot-font code if HB_NO_OT_FONT
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-19 18:32:40 -07:00
Behdad Esfahbod
b1a2384a52
[ucd] Print out table sizes
2019-06-19 17:34:12 -07:00
Behdad Esfahbod
f4de0c7754
[config] Disable AAT map
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-19 17:09:55 -07:00
Behdad Esfahbod
d8bf6723a1
[config] Disable more legacy kerning
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-19 17:04:16 -07:00
Behdad Esfahbod
43d7048d59
[config] More trak disabling
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-19 17:02:32 -07:00
Behdad Esfahbod
d84932ba50
[config] add HB_NO_OT_SHAPE_FRACTIONS, enabled in HB_LEAN
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-19 16:57:48 -07:00
Behdad Esfahbod
eaf4a7364c
[config] Minor trak disable
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-19 16:51:23 -07:00
Behdad Esfahbod
971330c058
[config] Add HB_NO_LANGUAGE_PRIVATE_SUBTAG
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-19 16:37:35 -07:00
Behdad Esfahbod
f642a5fa6c
Restructure code
2019-06-19 16:36:09 -07:00
Behdad Esfahbod
d2ff73b256
[config] Remove remaining AAT context bits if HB_NO_OT_KERN
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-19 16:28:27 -07:00
Behdad Esfahbod
588697afd0
[config] Add HB_NO_OT_KERN, enabled by HB_MINI / HB_NO_LEGACY
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-19 16:24:51 -07:00
Behdad Esfahbod
2e3e929d2b
Fix build
2019-06-19 15:50:13 -07:00
Behdad Esfahbod
631da9d816
[config] Remove tables from hb_face_t for disabled features
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-19 15:36:14 -07:00
Misty De Meo
e710888188
coretext: remove trailing macro from SCRATCH_RESTORE
2019-06-18 15:52:23 -07:00
Behdad Esfahbod
10bac21bb5
[coretext/uniscribe/directwrite] Remove extra semicolons
...
Fixes https://github.com/harfbuzz/harfbuzz/pull/1783
2019-06-18 15:15:06 -07:00
Behdad Esfahbod
f0b0fd4e78
Remove dead code
2019-06-18 14:40:24 -07:00
Behdad Esfahbod
d7e27cd65a
[config] Don't use VORG table if HB_NO_OT_FONT_CFF
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-18 14:38:05 -07:00
Behdad Esfahbod
37f8ebff5f
[config] Fixup for AAT ltag table access
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-18 14:33:49 -07:00
Behdad Esfahbod
f08066ce9a
[config] One more morx disabling
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-18 14:30:45 -07:00
Behdad Esfahbod
231d025788
[config] Don't compile AAT API if HB_NO_AAT
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-18 14:25:52 -07:00
Behdad Esfahbod
bf9424a9a1
[config] Don't compile unused layout API if HB_NO_LAYOUT_UNUSED
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-18 13:31:35 -07:00
Behdad Esfahbod
eb9798ef73
[config] Dont' compile buffer message API if HB_NO_BUFFER_MESSAGE
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-18 13:29:55 -07:00
Behdad Esfahbod
be1c0ab218
[config] Don't compile buffer serialize API if HB_NO_BUFFER_SERIALIZE
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-18 13:26:03 -07:00
Behdad Esfahbod
bdbabd110c
Minor header include cleanup
2019-06-18 13:21:25 -07:00
Behdad Esfahbod
83de3a60ab
[config] Don't compile color API if HB_NO_COLOR
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-18 13:18:15 -07:00
Behdad Esfahbod
350f98ea47
[config] Don't compile name table API if HB_NO_NAME
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-18 13:11:41 -07:00
Behdad Esfahbod
da51a2cb0e
[config] Don't compile math API if HB_NO_MATH
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-18 13:09:22 -07:00
Behdad Esfahbod
737436d3f8
Streamline HB_NO_CFF
2019-06-18 13:07:44 -07:00
Behdad Esfahbod
60653a7adb
Remove HB_VECTOR_SIZE
...
It was cumbersome to get it to work reliably, for dubious performance
gain, mostly in the subsetter maybe...
Life is easier without. It was disabled forever anyway.
2019-06-18 13:01:11 -07:00
Behdad Esfahbod
24060d3aa7
Add hb_bitwise_neg
2019-06-18 12:50:42 -07:00
Behdad Esfahbod
7cf9169078
Remove accidentally left cruft
2019-06-18 12:44:03 -07:00
Behdad Esfahbod
6172ec5d87
Remove (unused) posix_memalign fallback
...
Was wrong. The returned pointer couldn't be passed to free(). Ouch!
2019-06-18 12:41:56 -07:00
Behdad Esfahbod
aa3450cac1
[config] Don't compile disabled features
...
This makes it possible to include all .cc files into build, even if not
building CoreText, Uniscribe, etc.
This was mostly to help custom builders. But also means that we can
include all files in our own build system. Not sure if we should.
Definitely simplifies things, but slightly only.
2019-06-17 22:41:49 -07:00
Behdad Esfahbod
23ccd00a3d
Minor
2019-06-17 20:35:04 -07:00
Behdad Esfahbod
23768a99e0
[config] Replace HAVE_FALLBACK with HB_NO_FALLBACK_SHAPE
...
This disables fallback shaper in tiny builds. Projects that don't
use our build system and want to disable fallback shaper (eg. Firefox)
should define HB_NO_FALLBACK_SHAPE now.
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-17 20:29:29 -07:00
Behdad Esfahbod
1c56b5d1d8
[serialize] Fix copy() calling operator=
...
9f610ae239 (commitcomment-33944686)
2019-06-17 14:23:04 -07:00
Behdad Esfahbod
6492b2345c
Minor
2019-06-17 14:19:13 -07:00
Behdad Esfahbod
8938dd23c6
Use injected class name
2019-06-17 14:12:11 -07:00
Behdad Esfahbod
bfb5569d53
Disable non-OpenType kerning with hb-ft in HB_TINY
2019-06-17 14:06:04 -07:00
Behdad Esfahbod
0819f3ca86
Deprecate v_kerning callback again
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1682
2019-06-17 14:02:47 -07:00
Behdad Esfahbod
eb2825c7f1
Minor
2019-06-17 13:42:53 -07:00
Behdad Esfahbod
896416bd4c
Partially revert "[ft/ot] Remove implementation of deprecated kerning funcs"
...
This reverts commit 47030b1855
.
Reverts only the hb-ft part, to reinstate non-OpenType kerning with
FreeType.
Fixes https://github.com/harfbuzz/harfbuzz/issues/1682
2019-06-17 13:39:49 -07:00
Behdad Esfahbod
2682efb02d
Revert "Deprecate font kern API"
...
This reverts commit d219f899f4
.
API change: Un-deprecate font kern API.
Part of https://github.com/harfbuzz/harfbuzz/issues/1682
We should document that this API is only necessary to hook up
non-OpenType kerning. hb-ot-font will continue to NOT implement them.
2019-06-17 13:38:49 -07:00
David Corbett
d6cb244f7d
Canonically reorder U+0C55 and U+0C56
2019-06-16 16:44:45 -07:00
Michiharu Ariza
82d4bfb8f3
enable cff subset tests
...
add Unicode UCS-4 cmap
fix Unicode bits in OS/2
add Unicode cmap sub-table in SourceHanSans-Regular_subset.otf
regenerate cff subset test expected results
2019-06-14 11:08:59 -07:00
Ebrahim Byagowi
6bcbe495bf
[cff] minor format ( #1774 )
2019-06-13 15:04:51 +04:30
David Corbett
4f37c0db9b
Remove 'mym3'
2019-06-11 15:41:37 -07:00
Michiharu Ariza
90872a29ee
change assert(false) to failure
2019-06-11 12:42:28 -07:00
Behdad Esfahbod
0c5da57d1a
Fix typo :)
2019-06-10 14:06:25 -07:00
Ebrahim Byagowi
19b8eb08e5
Move HB_NO_SETLOCALE to closer place to its to unbreak HB_TINY build ( #1768 )
2019-06-11 01:33:30 +04:30
Ebrahim Byagowi
b4a5a69ad8
Add HB_NO_OEPN ( #1767 )
2019-06-11 01:33:09 +04:30
Ebrahim Byagowi
a36ff94171
Add HB_NO_SETLOCALE
2019-06-10 12:54:02 -07:00
Ebrahim Byagowi
c4cae81a26
Remove round polyfill
...
Added in 01dff1e
and 19256bef
, this was targeted at older
msvc versions that don't support C99 but now as we require
C++11 we don't target places those envs thus removing this.
2019-06-10 12:49:50 -07:00
Behdad Esfahbod
ff9b9b1c89
Simplify HB_PARTIALIZE impl
...
+this works on gcc 4.8 as well as default code path.
2019-06-10 12:48:25 -07:00
Behdad Esfahbod
451edbd4d0
Revert "Test new solution for HB_PARTIALIZE"
...
This reverts commit a0c4900799
.
2019-06-10 12:46:54 -07:00
Behdad Esfahbod
a0c4900799
Test new solution for HB_PARTIALIZE
...
Just testing bots. Will finish based on results.
2019-06-10 12:33:23 -07:00
Ebrahim Byagowi
9407ef8d4b
minor, add HB_USE_INTERNAL_QSORT
...
The only thing I need for a working wasm in a minimum libc,
otherwise I have to provide the very same qsort inside that libc
2019-06-10 15:17:43 +04:30
Ebrahim Byagowi
7dcfc5357d
[stat] minor format
2019-06-09 11:58:08 +04:30
Ebrahim Byagowi
2646c7149c
[stat] minor
2019-06-09 11:51:58 +04:30
Ebrahim Byagowi
c4669fda78
[algs] minor
2019-06-09 11:50:36 +04:30
Ebrahim Byagowi
9b853f755d
[cff] Use switch on multi-format structs ( #1762 )
2019-06-09 11:49:25 +04:30
Ebrahim Byagowi
eff579f743
Update and use internal qsort everywhere
2019-06-08 12:53:27 -07:00
Behdad Esfahbod
5074d665a8
[ucd] Save another 1.5kb
...
https://github.com/harfbuzz/harfbuzz/issues/1652
2019-06-07 14:21:40 -07:00
Behdad Esfahbod
973699c49b
Disable clang gcc impersonator
2019-06-07 12:49:06 -07:00
Behdad Esfahbod
e4e518f33d
Fix build on gcc 4.8
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1724
2019-06-07 12:41:09 -07:00
Behdad Esfahbod
3c240bd3dc
Downgrade double-promotion from error to warning
...
https://github.com/harfbuzz/harfbuzz/issues/1740
2019-06-07 10:56:24 -07:00
Ebrahim Byagowi
385e436692
Minor, fix gcc maybe-uninitialized complain
...
I guess all of its field will be initialized anyway here but lets make it more defensive
2019-06-07 10:49:57 -07:00
Ebrahim Byagowi
1bada656a8
Minor, remove unnecessary semicolon
...
Causing -Wextra-semi-stmt build error when no primitive has chosen
Interesting that nobody has noticed it yet.
2019-06-07 02:01:27 +04:30
Garret Rieger
f9b1ae7336
[subset] Move OS/2 to subset2.
2019-06-06 12:33:42 -07:00
Qunxin Liu
93d592e0e1
[subset] post table to use _subset2
2019-06-06 10:55:25 -07:00
Qunxin Liu
db938479d7
[subset] maxp table to use _subset2
2019-06-05 14:56:21 -07:00
Eli Zaretskii
d5e5f37832
This makes minor changes to allow building HarfBuzz with
...
mingw.org's MinGW.
src/hb-algs.hh: Don't compile _BitScanForward and _BitScanReverse
for GCC >= 4. mingw.org's MinGW doesn't have these functions.
src/hb-atomic.hh: MemoryBarrier does exist in mingw.org's MinGW,
but it is not a macro, it is an inline function. __MINGW32_VERSION
is a macro that exists only in mingw.org's MinGW, so conditioning
on it should not affect MinGW64, where MemoryBarrier is a macro.
src/hb-uniscribe.cc: Define E_NOT_SUFFICIENT_BUFFER if it is not
defined (mingw.org's MinGW doesn't).
src/hb.hh: Don't include intrin.h for mingw.org's MinGW, since that
header is not available; instead, include windows.h. Conditioned
on __MINGW32_VERSION to avoid affecting MinGW64.
2019-06-05 14:37:51 -07:00
Behdad Esfahbod
c7439d4e3a
Slightly massage buffer-messaging commit
...
Saves a few bytes.
2019-06-05 12:15:09 -07:00
Ebrahim Byagowi
4b1b0bf2f5
Merge pull request #1755 from ebraminio/slim
...
Don't use vsnprintf when HB_NO_BUFFER_MESSAGE is defined
2019-06-05 12:57:28 +04:30
Ebrahim Byagowi
815f002bb9
Don't use vsnprintf when HB_NO_BUFFER_MESSAGE is defined
2019-06-05 10:38:06 +04:30
David Corbett
2e16593b70
[myanmar] Make medial_group match the OT spec
...
Sometime between [July 2018] and [January 2019], the OpenType Myanmar
grammar changed: one asat is now allowed after a medial ya, before any
other medial consonant.
[July 2018]: http://web.archive.org/web/20180711011550/https://docs.microsoft.com/en-us/typography/script-development/myanmar
[January 2019]: http://web.archive.org/web/20190115044451/https://docs.microsoft.com/en-us/typography/script-development/myanmar
This also reverts commit 439b05867c
, which
allowed an asat immediately after a medial ra.
2019-06-04 13:02:04 -07:00
Qunxin Liu
209491fc37
[subset] Hmtx/vmtx tables to use subset2 and new iterator frameworks
2019-06-04 12:08:05 -07:00
Michiharu Ariza
12febd68d6
added parentheses to FDSelect::sanitize as well
2019-06-03 16:40:03 -07:00
Michiharu Ariza
be82a2fc0c
parenthesized cond-exp in CFF2FDSelect::sanitize
2019-06-03 15:52:23 -07:00
Ebrahim Byagowi
760eb1bf93
Reapply possible bsearch overflow fix
...
Originally introduced in 21ede86
(#1314 ) but as it wasn't applied to hb_bsearch
accidentally removed while merging hb_bsearch_r to it.
2019-06-03 05:48:04 -07:00
Bruce Mitchener
5846884f86
test: Use nullptr in C++ code. ( #1744 )
2019-06-03 12:30:25 +04:30
Ebrahim Byagowi
8278ff7dce
minor
2019-06-02 00:36:30 +04:30
Ebrahim Byagowi
33d38e793e
Use a unified bsearch ( #1741 )
...
A part of #593
2019-06-02 00:19:57 +04:30
Ebrahim Byagowi
c91f3fa3ea
[dwrite] Replace REPLACEME with release version the symbol had
2019-06-01 10:55:37 +04:30
Behdad Esfahbod
93c455567f
2.5.1
2019-05-31 22:56:56 -07:00
Behdad Esfahbod
619f5f1eb9
Fourth try at building VS bots
...
Based on https://github.com/harfbuzz/harfbuzz/issues/1730#issuecomment-497151210
2019-05-31 22:49:34 -07:00
Behdad Esfahbod
aba3888d93
Third try at fixing VS build
...
https://github.com/harfbuzz/harfbuzz/issues/1730
2019-05-31 22:49:34 -07:00
Behdad Esfahbod
8aaecbb583
Second VS fix try
...
https://github.com/harfbuzz/harfbuzz/issues/1730
2019-05-31 22:49:34 -07:00
Behdad Esfahbod
5a1b5c0a8b
Try fixing VS builds
...
Hopefully fixes https://github.com/harfbuzz/harfbuzz/issues/1730
2019-05-31 22:49:34 -07:00
Behdad Esfahbod
92fde3dea2
Whitespace
2019-05-31 22:49:34 -07:00
rsheeter
49879adbfc
[subset] Correct calculation of max offset; fixes bug where loca would erroneously be short
2019-05-31 19:43:30 -07:00
Behdad Esfahbod
2ad4ba7bc0
[gsub] Minor
2019-05-31 15:51:29 -07:00
Behdad Esfahbod
2dbdec66a1
[gsub] Porting serialize to iterators
2019-05-31 15:41:54 -07:00
Behdad Esfahbod
1834cf86d4
[serialize] Pass offset to serialize_subset()
2019-05-31 14:39:32 -07:00