Dougall Johnson
84fd09ea53
stb_truetype: Fix sign error in CFF push immediate
2017-10-14 11:58:03 +11:00
Sean Barrett
555efbedfc
Update version numbers
2017-07-23 14:09:39 -07:00
Fabian Giesen
b1d058e5c7
stb_truetype: Fix typo, as pointed out by oyvindjam.
...
Fixes #471 .
2017-07-22 19:37:03 -07:00
Fabian Giesen
30c7c6b583
stb_truetype: Support reading OS/2 vertical metrics
...
...as present in MS TrueType files. Since this table is optional,
the new stbtt_GetFontVMetricsOS2 has a return value and can fail.
This is a replacement for pull request #463 .
Fixes #463 .
2017-07-22 19:24:41 -07:00
Fabian Giesen
530c05ee61
Merge branch 'stbtt_const_fontdata' of https://github.com/cdwfs/stb into cdwfs-stbtt_const_fontdata
2017-07-22 15:05:56 -07:00
Sean Barrett
423298e071
fix SDF documentation and add example code
2017-07-12 09:27:04 -07:00
Sean Barrett
38479bc58c
stb_truetype version number
2017-07-12 07:25:20 -07:00
Sean Barrett
9a2e92e818
SDF documentation
2017-07-12 07:10:13 -07:00
Sean Barrett
fa98e4f6cf
Merge branch 'master' into sdf
...
Conflicts:
stb_truetype.h
2017-07-12 06:42:02 -07:00
Sean Barrett
5defc65c23
Initial SDF support
2017-07-12 06:34:52 -07:00
Cort
f3d8e52ddc
stb_truetype: fontdata can be const in stbtt_PackFontRange[s]()
2017-03-28 21:36:54 -07:00
Sean Barrett
0c1232f576
version number
2017-03-03 09:37:50 -08:00
Sean Barrett
b280541e6a
Merge branch 'stbtt_const_chardata' of https://github.com/cdwfs/stb into working
2017-03-03 09:35:11 -08:00
Sean Barrett
e248e30954
change license to public-domain AND mit (based on twitter vote)
2017-03-03 07:53:07 -08:00
Cort
f5519a8f85
stbtt: chardata can be const in GetBakedQuad() and GetPackedQuad()
2017-02-13 18:30:25 -08:00
Sean Barrett
96620a3a54
update version numbers
2017-01-16 00:51:24 -08:00
Sean Barrett
0bd0a9abc4
stb_truetype: comment typo
...
stb_c_lexer: end-of-array wrapped overflow bug
2017-01-16 00:11:58 -08:00
Dougall Johnson
9bb7f80cb8
stb_truetype: Fix a couple of CFF bugs
...
The CFF/Type 2 changes broke including without STB_TRUETYPE_IMPLEMENTATION defined, and had a typo. Sorry!
2017-01-03 13:08:05 +11:00
Sean Barrett
4f2324c6ad
Merge branch 'num-fonts' of https://github.com/IntellectualKitty/stb into working
...
Conflicts:
stb_truetype.h
2017-01-02 15:22:16 -08:00
Sean Barrett
cca943e78a
version history
2017-01-02 15:18:52 -08:00
Sean Barrett
834199151e
Merge branch 'is-apple-font' of https://github.com/IntellectualKitty/stb into working
2017-01-02 15:16:33 -08:00
Sean Barrett
3d1c790e96
version history
2017-01-02 15:16:22 -08:00
Sean Barrett
d0b576c474
update stb_truetype version
2017-01-02 15:12:18 -08:00
Sean Barrett
ad6614ad9f
Merge branch 'cff-type2' of https://github.com/dougallj/stb into type2
...
Conflicts:
stb_truetype.h
2017-01-02 15:10:20 -08:00
IntellectualKitty
75a8fd9d41
Add function to get the number of fonts in a TrueType file
2016-12-04 17:06:17 -07:00
IntellectualKitty
7fa573cd61
Update stb_truetype.h
2016-12-04 16:06:34 -07:00
Sean Barrett
996ccf2159
update version numbers
2016-10-25 08:53:48 -07:00
Sean Barrett
5d9423f8fd
fix -Wcast-qual in stb_rect_pack, stb_textedit, stb_truetype
2016-10-25 08:50:44 -07:00
Dougall Johnson
0181b37188
CFF and Type 2 charstream parsing in stb_truetype
...
This is a partial implementation of the CFF and Type 2 charstring
specifications. It allows stb_truetype to read most OTF files.
2016-10-01 20:18:31 +10:00
Sean Barrett
a1a918a487
fix unused variable warning
2016-04-02 13:45:32 -07:00
Sean Barrett
6e4154737c
update version numbers, documentation, and contributors
2016-04-02 04:51:26 -07:00
Sean Barrett
56e8fd063c
don't leak vertex data if text is scaled to 0
2016-04-02 03:55:03 -07:00
Sean Barrett
5990ff8a47
remove duplicate typedef of stbtt_fontinfo
2016-04-02 03:51:19 -07:00
Sean Barrett
4be8fa919f
Merge branch 'pull-request-fabs2' of https://github.com/sglass68/stb into working
2016-04-02 02:37:51 -07:00
Craig Donner
ee6978cb68
Slightly modify the public domain license to keep it in the public domain, but make it clear that even when dedications might not be recognized that the code is still usable. Given that this isn't dual-licensing under a different license, I'm hoping this will be acceptable.
2016-02-25 12:55:44 -08:00
Simon Glass
4ef7d07a44
ttf: Correct direct use of fabs()
...
Add a macro to allow fabs() to be provided by the user, as with the other
maths functions. Update the implementation code to use it instead of fasb().
Signed-off-by: Simon Glass <sjg@chromium.org>
2016-01-16 11:35:26 -07:00
Sean Barrett
48ec72ac12
Update stbtt_fontinfo.userdata field on paths where user never has access to it.
2016-01-16 10:26:36 -08:00
Sean Barrett
ad9a570e27
stb_truetype version history; update README
2016-01-16 10:20:54 -08:00
Sean Barrett
16fc63404d
suppress bogus static analysis warning
2015-11-08 01:03:37 -08:00
Sean Barrett
6382e49063
don't crash if out of memory allocating a new active edge (assert in debug)
2015-11-08 00:54:49 -08:00
Sean Barrett
232927699c
Vita warning fix
2015-09-23 05:03:26 -07:00
Sean Barrett
4de75eb0cc
stb_textedit: better support for baseline at bottom
...
stb_textedit: end-of-line handling places cursor before newline
stb_truetype: avoid compiler warning due to local vars hiding local vars
readme: add list of one-file libs
2015-09-13 13:35:51 -07:00
Sean Barrett
ff116a4fe8
allow font ranges with first_char = 0;
...
fix divide by 0 for exactly-vertical edges;
fix possible divide by 0 for exactly-horizontal edges
add documentation for stbtt_Rasterize;
2015-09-13 11:42:54 -07:00
Sean Barrett
54b1879725
document stbtt_Rasterize
2015-09-13 11:23:33 -07:00
Sean Barrett
264bc5725f
credits
2015-09-13 06:37:24 -07:00
Sergey Popov
f24f92bcc7
Fix -Wextra warning in stb_truetype.h
2015-08-19 14:36:09 +03:00
Sean Barrett
ad57cd038b
fix assert() to be STBTT_assert()
2015-08-01 04:16:19 -07:00
Sean Barrett
c6ee732c79
allow finer-grained PackFontRanges with Gather & Render;
...
allow discontinuous codepoints in PackFontRanges;
fix bug in GetFontOffsetForIndex (non-0 index never worked?);
tweak public domain license
2015-08-01 04:04:54 -07:00
ocornut
52845885c4
Merge remote-tracking branch 'upstream/master'
2015-07-15 12:08:29 -06:00
Sean Barrett
20b04f4aa9
stb_truetype version 1.06
...
- switch from qsort() to built-in quicksort (about 2x as fast a sort, ~10% faster overall)
- use pool allocator for active-edge allocations (~10% faster overall)
- use new rasterizer (about 30% faster, ~10% faster overall)
2015-07-14 18:23:12 -07:00