Sean Barrett
a1a918a487
fix unused variable warning
ago%!(EXTRA string=9 years)
Sean Barrett
6e4154737c
update version numbers, documentation, and contributors
ago%!(EXTRA string=9 years)
Sean Barrett
56e8fd063c
don't leak vertex data if text is scaled to 0
ago%!(EXTRA string=9 years)
Sean Barrett
5990ff8a47
remove duplicate typedef of stbtt_fontinfo
ago%!(EXTRA string=9 years)
Sean Barrett
4ff6723a6d
make resample_test work in VC6
ago%!(EXTRA string=9 years)
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.
ago%!(EXTRA string=9 years)
Craig Donner
49b65c0873
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.
ago%!(EXTRA string=9 years)
Jorge Rodriguez
5e2d0fd777
Add support for obtaining the entire kerning table from a font all at once, for use in rendering packed textures offline.
ago%!(EXTRA string=9 years)
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>
ago%!(EXTRA string=9 years)
Sean Barrett
48ec72ac12
Update stbtt_fontinfo.userdata field on paths where user never has access to it.
ago%!(EXTRA string=9 years)
Sean Barrett
ad9a570e27
stb_truetype version history; update README
ago%!(EXTRA string=9 years)
Sean Barrett
16fc63404d
suppress bogus static analysis warning
ago%!(EXTRA string=10 years)
Sean Barrett
6382e49063
don't crash if out of memory allocating a new active edge (assert in debug)
ago%!(EXTRA string=10 years)
Sean Barrett
232927699c
Vita warning fix
ago%!(EXTRA string=10 years)
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
ago%!(EXTRA string=10 years)
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;
ago%!(EXTRA string=10 years)
Sean Barrett
54b1879725
document stbtt_Rasterize
ago%!(EXTRA string=10 years)
Sean Barrett
264bc5725f
credits
ago%!(EXTRA string=10 years)
Sergey Popov
f24f92bcc7
Fix -Wextra warning in stb_truetype.h
ago%!(EXTRA string=10 years)
Sean Barrett
ad57cd038b
fix assert() to be STBTT_assert()
ago%!(EXTRA string=10 years)
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
ago%!(EXTRA string=10 years)
Giumo X. Clanjor (哆啦比猫/兰威举)
3159971d85
stb_truetype: fix wrong result returned by stbtt_GetFontOffsetForIndex
...
fixed the typo in stbtt_GetFontOffsetForIndex, where the field size should be 4 instead of 14.
ago%!(EXTRA string=10 years)
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)
ago%!(EXTRA string=10 years)
Sean Barrett
e4be8fae2c
fix misplaced STBTT_DEF definition
ago%!(EXTRA string=10 years)
Sean Barrett
a51c2d4ab0
update version number etc
ago%!(EXTRA string=10 years)
Peter LaValle
63550ae9ed
Update stb_truetype.h
...
trivial typo
ago%!(EXTRA string=10 years)
Sean Barrett
8a0a882f53
stb_truetype version update
ago%!(EXTRA string=10 years)
Sean Barrett
a7ee207475
fix missing free in the new rectangle packing
...
remove unneeded (but harmless) statements
ago%!(EXTRA string=10 years)
Sean Barrett
ab6aaa85be
credits, STBTT_STATIC docs
ago%!(EXTRA string=10 years)
unknown
ffe447630d
Couple of places should be using STBTT_memset instead of memset
ago%!(EXTRA string=10 years)
unknown
30eb4371c8
Change double literals 0.5 to float type
ago%!(EXTRA string=10 years)
Cap Petschulat
7579b8a177
Fix the simple truetype example
ago%!(EXTRA string=10 years)
ocornut
45fec17148
stb_truetype: added STBTT_STATIC to make all implementation static
...
Followed the structure used by stb_rectpack.
Functions that had neither extern neither static got STBTT_DEF as well.
ago%!(EXTRA string=10 years)
ocornut
2c13513a95
stb_truetype: fix for if stb_rect_pack .h wasn't included.
ago%!(EXTRA string=10 years)
ocornut
90c18fd41a
stb_truetype: split stbtt_PackFontRanges() into 3 functions for advanced uses, allow stbtt_PackBegin() to take NULL pixels
ago%!(EXTRA string=10 years)
Sean Barrett
00965512d7
update version number
ago%!(EXTRA string=11 years)
Sean Barrett
26439254e8
fix use of stbrp_coord if no stb_rect_pack;
...
fix a few assert()s that weren't STBTT_asserts();
fix missing cast for C++
fix typo in C++ test compilation that prevented it from trying to compile stb_truetype
ago%!(EXTRA string=11 years)
Sean Barrett
d1c85eac78
update version numbers
ago%!(EXTRA string=11 years)
Sean Barrett
97037461d9
stb_truetype:
...
STBTT_POINT_SIZE
documentation for above
stb_rect_pack:
STBRP_ASSERT
ago%!(EXTRA string=11 years)
Fabian Giesen
82677e5518
stb_truetype: Fix implicit conversion warnings.
ago%!(EXTRA string=11 years)
Fabian Giesen
27974c42f9
stb_truetype: Negative size = pixels for EM square.
ago%!(EXTRA string=11 years)
Fabian Giesen
5f674fc7e5
stb_truetype: Cancel out phase offset from box filter correctly.
ago%!(EXTRA string=11 years)
Sean Barrett
22dbcffef7
stbtt_Pack* documentation
...
oversample test tweaks
ago%!(EXTRA string=11 years)
Sean Barrett
f03e352093
stb_rect_pack: fix LARGE_RECT bug
...
stb_truetype: oversampling, including oversampling demo app
ago%!(EXTRA string=11 years)
Sean Barrett
0a3dd5aff3
new font bitmap baking API
ago%!(EXTRA string=11 years)
Sean Barrett
c32d5c40d2
update version number & contributors
ago%!(EXTRA string=11 years)
Fabian Giesen
f36b7116e2
Fix a few bugs with subpixel shifts, shift_y in particular.
...
1. In the presence of nonzero shift_x / shift_y,
stbtt_GetGlyphBitmapBoxSubpixel would return a nonzero-sized bounding
box for empty glyphs (e.g. spaces). Since such glyphs don't have any
outlines, the rasterizer wouldn't do anything, resulting in a 1x1-pixel
image with uninitialized memory.
2. GetGlyphBitmapBoxSubpixel added shift_y then flipped the y axis,
whereas the rasterizer flipped the y axis then added shift_y.
Consistently flip-then-add in both places. This also makes the pattern
of floors/ceils in GetGlyphBitmapBoxSubpixel simpler.
3. The rasterizer added shift_y after multiplying by the vertical
oversampling factor, instead of before.
Vertical shifts now work much better, in my tests anyway.
ago%!(EXTRA string=11 years)
Sean Barrett
d26beed67d
comments/ version update for platformID = Unicode
ago%!(EXTRA string=11 years)
Sean Barrett
2da2806d20
update version numbers due to warnings/minor fixes
ago%!(EXTRA string=11 years)
HouQiming
8c83fc2bad
Added STBTT_PLATFORM_ID_UNICODE
...
Added a STBTT_PLATFORM_ID_UNICODE clause to support iOS/Mac fonts
ago%!(EXTRA string=11 years)