|
2723c7d3
|
2010-05-22T22:17:27
|
|
Fix a division by zero in FTTextureFont.cpp. Addresses SF bug #2692128.
|
|
deffdbba
|
2010-05-22T18:48:27
|
|
Support bitmap (1 bpp) fonts. Patch courtesy of Jaakko Hyvätti.
|
|
309590c0
|
2010-05-22T17:47:46
|
|
Fix padding usage in FTBufferFont, patch courtesy of Benlitz. Addresses
sourceforge bug #2023590.
|
|
c04b6ae5
|
2010-05-12T16:29:08
|
|
pull in change from bzflag downstream, partial r20590 by brlcad, try harder to make sure we don't get a <char> template instantiation. getting a negative character code on high ascii values that causes a crash in FTGlyphContainer::Advance().
|
|
f2803ba1
|
2010-05-12T16:26:38
|
|
pull in change from bzflag downstream, r20591 by brlcad, FTVector's [] will let you run beyond the vector (crash), so manually make sure our glyph index is within bounds.
|
|
ca4a58f9
|
2010-05-12T16:24:45
|
|
pull in change from bzflag downstream, r20589 by brlcad, make sure our chars are all unsigned so we don't end up coercing a template instantiation to char where we start spitting out negative values.
|
|
da18f9db
|
2010-05-12T16:23:50
|
|
pull in change from bzflag downstream, r21141 by trepan, quieted some strict-aliasing warnings with a little dirty pool (in-place new's)
|
|
394ceb32
|
2010-05-06T20:36:04
|
|
apply sf patch # 2121813 from Tobias Gunkel ( tobigun ) for Typo in FTLayoutGlue ftglGetLayoutBBox(). fixes the transposed letters.
|
|
97040c07
|
2009-09-13T08:59:48
|
|
Solaris 10 now has glu.h in the proper place. Reverting [947] as suggested
by bzflag developer Bullet Catcher.
|
|
0fd32b61
|
2009-07-20T09:02:24
|
|
Add missing FTCleanup files required for commit 1218.
|
|
84fdd792
|
2009-07-19T16:09:40
|
|
Correct the order in which FT_Done_Face is called via the library's
destructors. Fixes a Bzflag crash upon exit. Patch courtesy of Mathew Eis
(kingrobot) from SF patch 2721799.
|
|
a45d89a5
|
2009-07-19T15:59:01
|
|
Remove dead code.
|
|
989d224e
|
2009-07-19T15:56:38
|
|
Document FTFont::renderMode usage, courtesy of Christopher Sean Morrison.
|
|
ec01ea3b
|
2009-07-19T15:37:10
|
|
Don't display more than 8 soft assertions, and improve the FTASSERT_FAIL
definition.
|
|
29603ae3
|
2009-07-19T15:28:59
|
|
Remove GL_BLEND tampering. It's the caller application's responsibility to
enable or disable blending.
|
|
6533eff4
|
2009-07-19T15:06:37
|
|
Provide support for automake 1.6.3 as included in XCode 3.4.1 on MacOS 10.4,
which uses AM_CPPFLAGS where automake 1.10 uses libftgl_la_CPPFLAGS.
Patch courtesy of Bzflag's developer bullet_catcher for SF bug 2117545.
|
|
b7036d0c
|
2009-07-19T14:26:13
|
|
Fix coding style and remove tabs here and there.
|
|
cab1fafd
|
2009-07-19T13:05:50
|
|
Update my e-mail address everywhere.
|
|
abaf40a5
|
2009-04-01T16:22:45
|
|
Remove trailing spaces and tabs to ease syncs bzflag needs to do.
|
|
92d175e8
|
2009-01-02T15:51:25
|
|
Implement ftglCreateBitmapFontFromMem() and siblings so that the
font-loading can be done from memory in C (and in languages binding
with FTGL through the C interface such as C#).
|
|
6ce3b10b
|
2008-10-31T22:33:44
|
|
pulled from downstream bzflag. apply sf patch 2210898 (Fix for some potential FTGL issues) from Matt Handley (applmak) where he adds some asserts that check for the conditions that provoke glTexSubImage2D to return GL_INVALID_VALUE. this is being provoked by ftgl during Advance when the font size (0-2) is smaller than the hard-coded default font padding size (3).
|
|
2766703a
|
2008-09-08T03:16:59
|
|
Eliminate some double->float conversions for performance
|
|
03663110
|
2008-06-13T21:16:09
|
|
make windows use the FONT_FILE mechanism for setting default font in demos also, no reason to special-case it.
add standard license verbage to msvc config.h.
tack a copyright notice on a couple files I made significant changes to.
|
|
78bec1e6
|
2008-06-12T14:13:35
|
|
* ftglCreateBufferGlyph: do not export FTBufferFont in the C API: we do not
have easy ways to emulate the FTBuffer object.
|
|
ebd805d1
|
2008-06-12T14:13:05
|
|
* Prevent issues when strndup is defined as a macro.
|
|
4388dc7a
|
2008-06-11T23:23:05
|
|
provide for us poor sobs who don't have a native strndup implementation
|
|
c5bcad81
|
2008-06-09T12:57:41
|
|
* Add my copyright information to files I modified significantly.
* Add the Unicode, Inc. to the list of authors because of FTUnicode.h.
|
|
4a3dd0f5
|
2008-06-09T11:47:42
|
|
* Code simplifications in FTContour.
|
|
291c70ed
|
2008-06-09T11:47:14
|
|
* Add "const" qualifier to FTPoint's scalar multiplication operator.
|
|
a132a5e4
|
2008-06-09T11:45:52
|
|
* Document and reorganise FTBuffer. It is now clean enough.
|
|
d7c9fc14
|
2008-06-09T10:13:09
|
|
* Document missing function parameters.
|
|
0b40c371
|
2008-06-09T10:12:21
|
|
* Better FTContour::ComputeOutsetPoint() documentation.
|
|
14e3e435
|
2008-06-09T10:11:58
|
|
* Create FTFont::GlyphLoadFlags() to vary FT_Load_Glyph() calls according
to the font type. Now we no longer load vector information when not
needed.
|
|
6c2a187c
|
2008-06-08T15:56:35
|
|
* Revert the FTFont::Advance() and FTGlyph::Advance() improvements. After
discussion, I was convinced they were not worth the backwards compatibility
breakage. They now return float again, instead of FTPoint.
|
|
632c866d
|
2008-06-08T15:55:19
|
|
* Add a comment to FTBufferFont to not forget about bugs in it.
|
|
b173cbee
|
2008-06-03T12:24:37
|
|
* Fix a crash in FTExtrudeGlyph caused by uninitialised members.
|
|
7e2d6252
|
2008-06-03T12:23:25
|
|
* FTBufferFont: use strndup() and, when available, wcsdup().
|
|
cdc9b560
|
2008-06-03T12:23:07
|
|
* Coding style: remove tabs and trailing spaces, wrap long lines.
|
|
dd224b27
|
2008-05-24T19:04:02
|
|
from BZFlag r17264: rewrite StringCopy. wcscpy is not a standard function; we have logic for doing it ourselves already (minus the len = 0 case), so handle len = 0 and do it all ourselves.
|
|
6e4ad4cf
|
2008-05-23T16:45:20
|
|
Copyright notices as requested by sam
|
|
e1e19b26
|
2008-05-23T00:56:25
|
|
include wctype.h to make gcc happy
|
|
484a90e1
|
2008-05-23T00:53:23
|
|
no need to shadow variables
|
|
84869ec7
|
2008-05-23T00:46:08
|
|
* Provide a helper class for walking potentially-multibyte unicode strings.
* Provide support for multibyte encodings (UTF-8, UTF-16) in FTFont and derived classes, and in FTSimpleLayout.
* Put a few UTF-8 strings in non-latin codeplanes in FTGLDemo (toggle at compile-time) for testing.
* FTSimpleLayout should be tested extensively before release. I would be surprised if I didn't break at least one unusual use case.
|
|
95183df2
|
2008-05-23T00:16:54
|
|
* Start protecting FTBuffer members using getters and setters.
|
|
5de43fe6
|
2008-05-22T15:31:32
|
|
* Empty the FTBufferFont cache when changing the face size.
|
|
d1bea035
|
2008-05-22T15:31:07
|
|
* Fix a visual bug in FTBufferFont caused by overlapping glyphs.
|
|
b73f2e81
|
2008-05-22T12:39:48
|
|
* Implement caching in FTBufferFont. To avoid unnecessary texture uploads,
each font object keeps the last 16 strings in the graphic card.
|
|
865b9043
|
2008-05-22T12:39:12
|
|
* Fix an off-by-one error in FTBufferGlyph::Render.
|
|
3d018d80
|
2008-05-21T16:37:54
|
|
* Fix the quad vertex order in FTBufferFont.
|
|
0bc4a552
|
2008-05-21T16:36:34
|
|
* Fix a bug in the FTFont::BBox calculation: the first glyph bbox was not
relative to the position argument.
|
|
901ee76c
|
2008-05-21T15:45:11
|
|
* Fix a texture coordinate bug caused by our next-power-of-two ceiling.
|
|
fa5631df
|
2008-05-21T15:43:52
|
|
* Add proper glPushAttrib() and glPushClientAttrib() calls to the
rendering methods that need them.
|
|
68a99036
|
2008-05-21T11:39:31
|
|
* Enable GL_TEXTURE_2D in FTFont::Render variations that need it.
|
|
f2011b55
|
2008-05-21T00:39:04
|
|
quell warning
|
|
ca7c7a81
|
2008-05-20T23:49:25
|
|
* First try at the FTBufferFont/FTBufferGlyph implementation.
|
|
8932eba0
|
2008-05-20T23:48:56
|
|
* Rename FTTextureGlyphImpl::pos to FTTextureGlyphImpl::corner because pos
was misleading.
|
|
f7d00178
|
2008-05-19T15:45:47
|
|
* Starting the buffer font class revival. For now, it just consists in empty
FTBuffer, FTBufferGlyph and FTBufferFont classes.
|
|
7abb7502
|
2008-05-19T10:06:49
|
|
* Do not crash if the face has no charmaps. Bug found using zzuf:
xvfb-run zzuf -q -F5 -r0.0000001:0.1 -s0:10000 -c CTest EunjinNakseo.ttf
|
|
9b33da91
|
2008-05-19T10:06:25
|
|
* Simplified contour parity check routine, formula courtesy of Guillaume
Bittoun.
|
|
13adc2c1
|
2008-05-19T10:06:07
|
|
* Add parentheses around && within || to please gcc.
|
|
612c3756
|
2008-05-11T21:43:57
|
|
* Simplify the C bindings. 70 lines gained.
|
|
b70df3d7
|
2008-05-11T21:43:35
|
|
* Get rid of FTSimpleLayout::RenderSpace(). It's still useful in
FTSimpleLayoutImpl, but as a public method FTFont::Render() is just
as powerful.
|
|
55dc91e0
|
2008-05-11T21:43:10
|
|
* Added optional position and string length to the Layout methods.
|
|
a90225b5
|
2008-05-11T11:29:39
|
|
* Get rid of all methods in FTLayoutImpl that were accessing FTFontImpl
internals, since FTFont now has all the proper public methods for that.
|
|
32ef6d1e
|
2008-05-11T11:29:17
|
|
* Get rid of FTFontImpl::DoRender(), one of the oldest TODOs.
|
|
47e20607
|
2008-05-11T11:28:53
|
|
* Re-add FTFont::BBox() implementations with the old prototype, in case
old projects use them.
|
|
5f23d804
|
2008-05-11T11:28:38
|
|
* Honour the pen's Z coordinate when rendering glyphs (except the raster
ones, where the Z coordinate makes no sense).
|
|
20ac99b1
|
2008-05-11T11:28:08
|
|
* FTFont::Advance(), FTFont::Render() and FTFont::BBox() are now far
more powerful, allowing for substring display and extra spacing between
characters.
|
|
d39c7838
|
2008-05-11T11:26:12
|
|
* Kill 180 lines of code by removing duplicate *::Render() functions and
giving a default value to the renderMode parameter.
|
|
68738f93
|
2008-05-09T10:02:46
|
|
* Put a few wrapper functions into extern "C++" braces because they return
references to C++ objects.
|
|
17f84259
|
2008-05-09T10:01:49
|
|
* Minor cosmetic fix (remove tab).
|
|
65ba4d60
|
2008-05-08T23:12:47
|
|
and more fun with float/double consistency
|
|
d33c1e50
|
2008-05-08T23:12:29
|
|
more fun with size_t consistency
|
|
e9260bbf
|
2008-05-08T22:35:57
|
|
* Implement C bindings for FTGlyph and FTFont subclassing.
* Add subclassing to the simple C demo to show how to do similar stuff as
in the C++ demo.
|
|
d5adb85b
|
2008-05-08T17:07:07
|
|
* When a glyph is created, check that all its contours have the proper
clockwise/counterclockwise orientation. This fixes a nasty display bug
with some badly encoded fonts.
|
|
dccd536a
|
2008-05-08T17:06:24
|
|
* During contour creation, compute whether the contour is clockwise or
anti-clockwise. This will be needed later to correct fonts that do not
abide to the even-odd and non-zero winding number conventions, thus
breaking our nice outset glyphs.
|
|
2ecbe452
|
2008-05-08T17:05:26
|
|
* Add scalar product to the FTPoint operators.
|
|
f2348fe5
|
2008-05-08T17:04:07
|
|
* Cosmetic fixes in the FTLayout C bindings.
|
|
55bf1ff0
|
2008-05-08T17:03:07
|
|
* Small optimisation in FTContour::ComputeOutsetPoint().
|
|
92b95cde
|
2008-05-08T17:01:45
|
|
* Made most FTFont, FTGlyph and FTLayout function virtual. It's true that
most of them use private members of the pImpl class and thus are not
easily replaced, but intercepting the information may be useful in
subclassing, too.
|
|
45c2269f
|
2008-05-07T16:10:28
|
|
* Some code cleanup here and there, mostly in FTGlyphContainer.
|
|
1deacbc3
|
2008-05-07T15:07:38
|
|
* Documentation updates.
|
|
48b68f55
|
2008-05-07T15:06:19
|
|
* Replace FTBBox::Move() with the += operator, to make it clearer that the
object is modified in the process.
|
|
8863eeeb
|
2008-05-07T15:03:48
|
|
* Change the += operator for bounding boxes to |=, which better represents
what is happening, and avoids future confusion with "FTBBox + FTPoint"
constructs.
|
|
4f44ec81
|
2008-05-07T15:01:47
|
|
* Make all BBox functions return an FTBBox object instead of doing
countless conversions to floats or arrays of floats.
|
|
f58ddca2
|
2008-05-07T14:59:03
|
|
* Fix FTBBox::SetDepth() behaviour with negative depth values (as done in
the FTExtrudeGlyph class).
|
|
28cc198b
|
2008-05-07T14:58:09
|
|
* Reimplement all FTFont::BBox() variants using the same FTFontImpl::BBox()
common method.
|
|
3823a30a
|
2008-05-07T14:56:57
|
|
* Add an overload of FTFont::BBox that returns an FTBBox object. It will
save us a lot of code later.
|
|
10cdd9a4
|
2008-05-07T14:55:41
|
|
* Allow to create an FTBBox using two FTPoint objects.
* Allow the operands to FTPoint's "+" and "-" operators to be const.
|
|
a065f004
|
2008-05-06T21:19:42
|
|
* Refactor FTContour::ComputeOutsetPoint so that it's twice as short, even
with the additional comments.
|
|
134711d7
|
2008-05-06T21:19:29
|
|
* Make FTContour:FTContour comply with the FreeType specification and
remove duplicate points in the Bézier curves. Fixes weird rendering
errors with some fonts.
|
|
4ed52c55
|
2008-05-06T10:00:48
|
|
* Fix an unsigned int / size_t mismatch in FTVectoriser.
|
|
15012d0f
|
2008-05-06T07:08:55
|
|
* Fix indentation by replacing a few tabs with spaces.
|
|
948e3629
|
2008-05-06T06:54:51
|
|
l != 1, depending on your font of course
|
|
eb45c699
|
2008-05-06T06:38:37
|
|
VC build fixes from bzflag revs 17848-17852.
* size_t consistency
* avoid coercing from int to bool
* make casts from double to float explicit rather than implicit, mostly by way of a few new getter functions in FTPoint, or avoid if possible.
|
|
f7b79437
|
2008-05-05T14:55:11
|
|
* Refactor FTGlyph, FTFont and FTLayout so that client applications can
hopefully subclass them.
|
|
68bcaf26
|
2008-05-05T14:52:48
|
|
* Rename FTTextureFontImpl::MakeGlyph to FTTextureFontImpl::MakeGlyphImpl to
avoid confusion.
|
|
7d3852f9
|
2008-05-05T14:52:17
|
|
* Rename FTFontImpl::base to FTFontImpl::intf.
|
|
4a459132
|
2008-05-05T13:22:30
|
|
quell warnings, reorder initializations
|
|
0a28e5d3
|
2008-05-04T19:39:34
|
|
* Put MakeGlyph back into FT*Font classes instead of FT*FontImpl, and make
it use as few FT*FontImpl members as possible so that external application
may actually have a chance to properly subclass us.
|