src


Log

Author Commit Date CI Message
sammy cc4f28ba 2010-05-23T00:34:49 Set GL_TEXTURE_ENV_MODE to GL_MODULATE whenever necessary, to avoid rendering an empty rectangle. Addresses SF bug #2253040.
sammy d10af39f 2010-05-23T00:24:14 Properly handle Render's position argument in FTTextureFont and FTBufferFont. Addresses SF bug #2883801.
sammy 5d34f02f 2010-05-22T23:53:41 Fix a crash in FTCharToGlyphIndexMap::find(). Addresses SF bug #2471550.
sammy eae0686d 2010-05-22T23:02:34 Fix ftglRenderLayout() implementation. Fix courtesy of Tobias Gunkel. Addresses SF bug #2122839.
sammy 536f271b 2010-05-22T23:02:16 Export ftglSetFontGlyphLoadFlags() in FTFont.h. Addresses SF bug #2122849.
sammy 8157485d 2010-05-22T22:49:21 Fix texture height computation in FTTextureFont. Patch courtesy of Simone Contini. Addresses SF bug #2827618.
sammy 0e7b8c55 2010-05-22T22:28:55 Fix ftglGetLayoutAlignment spelling. Addresses SF bug #2120985.
sammy 2723c7d3 2010-05-22T22:17:27 Fix a division by zero in FTTextureFont.cpp. Addresses SF bug #2692128.
sammy deffdbba 2010-05-22T18:48:27 Support bitmap (1 bpp) fonts. Patch courtesy of Jaakko Hyvätti.
sammy 309590c0 2010-05-22T17:47:46 Fix padding usage in FTBufferFont, patch courtesy of Benlitz. Addresses sourceforge bug #2023590.
brlcad 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().
brlcad 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.
brlcad 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.
brlcad 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)
brlcad 394ceb32 2010-05-06T20:36:04 apply sf patch # 2121813 from Tobias Gunkel ( tobigun ) for Typo in FTLayoutGlue ftglGetLayoutBBox(). fixes the transposed letters.
sammy 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.
sammy 0fd32b61 2009-07-20T09:02:24 Add missing FTCleanup files required for commit 1218.
sammy 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.
sammy a45d89a5 2009-07-19T15:59:01 Remove dead code.
sammy 989d224e 2009-07-19T15:56:38 Document FTFont::renderMode usage, courtesy of Christopher Sean Morrison.
sammy ec01ea3b 2009-07-19T15:37:10 Don't display more than 8 soft assertions, and improve the FTASSERT_FAIL definition.
sammy 29603ae3 2009-07-19T15:28:59 Remove GL_BLEND tampering. It's the caller application's responsibility to enable or disable blending.
sammy 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.
sammy b7036d0c 2009-07-19T14:26:13 Fix coding style and remove tabs here and there.
sammy cab1fafd 2009-07-19T13:05:50 Update my e-mail address everywhere.
sammy abaf40a5 2009-04-01T16:22:45 Remove trailing spaces and tabs to ease syncs bzflag needs to do.
sammy 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#).
brlcad 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).
jwmelto 2766703a 2008-09-08T03:16:59 Eliminate some double->float conversions for performance
dtremenak 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.
sammy 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.
sammy ebd805d1 2008-06-12T14:13:05 * Prevent issues when strndup is defined as a macro.
dtremenak 4388dc7a 2008-06-11T23:23:05 provide for us poor sobs who don't have a native strndup implementation
sammy 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.
sammy 4a3dd0f5 2008-06-09T11:47:42 * Code simplifications in FTContour.
sammy 291c70ed 2008-06-09T11:47:14 * Add "const" qualifier to FTPoint's scalar multiplication operator.
sammy a132a5e4 2008-06-09T11:45:52 * Document and reorganise FTBuffer. It is now clean enough.
sammy d7c9fc14 2008-06-09T10:13:09 * Document missing function parameters.
sammy 0b40c371 2008-06-09T10:12:21 * Better FTContour::ComputeOutsetPoint() documentation.
sammy 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.
sammy 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.
sammy 632c866d 2008-06-08T15:55:19 * Add a comment to FTBufferFont to not forget about bugs in it.
sammy b173cbee 2008-06-03T12:24:37 * Fix a crash in FTExtrudeGlyph caused by uninitialised members.
sammy 7e2d6252 2008-06-03T12:23:25 * FTBufferFont: use strndup() and, when available, wcsdup().
sammy cdc9b560 2008-06-03T12:23:07 * Coding style: remove tabs and trailing spaces, wrap long lines.
dtremenak 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.
dtremenak 6e4ad4cf 2008-05-23T16:45:20 Copyright notices as requested by sam
dtremenak e1e19b26 2008-05-23T00:56:25 include wctype.h to make gcc happy
dtremenak 484a90e1 2008-05-23T00:53:23 no need to shadow variables
dtremenak 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.
sammy 95183df2 2008-05-23T00:16:54 * Start protecting FTBuffer members using getters and setters.
sammy 5de43fe6 2008-05-22T15:31:32 * Empty the FTBufferFont cache when changing the face size.
sammy d1bea035 2008-05-22T15:31:07 * Fix a visual bug in FTBufferFont caused by overlapping glyphs.
sammy 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.
sammy 865b9043 2008-05-22T12:39:12 * Fix an off-by-one error in FTBufferGlyph::Render.
sammy 3d018d80 2008-05-21T16:37:54 * Fix the quad vertex order in FTBufferFont.
sammy 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.
sammy 901ee76c 2008-05-21T15:45:11 * Fix a texture coordinate bug caused by our next-power-of-two ceiling.
sammy fa5631df 2008-05-21T15:43:52 * Add proper glPushAttrib() and glPushClientAttrib() calls to the rendering methods that need them.
sammy 68a99036 2008-05-21T11:39:31 * Enable GL_TEXTURE_2D in FTFont::Render variations that need it.
dtremenak f2011b55 2008-05-21T00:39:04 quell warning
sammy ca7c7a81 2008-05-20T23:49:25 * First try at the FTBufferFont/FTBufferGlyph implementation.
sammy 8932eba0 2008-05-20T23:48:56 * Rename FTTextureGlyphImpl::pos to FTTextureGlyphImpl::corner because pos was misleading.
sammy f7d00178 2008-05-19T15:45:47 * Starting the buffer font class revival. For now, it just consists in empty FTBuffer, FTBufferGlyph and FTBufferFont classes.
sammy 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
sammy 9b33da91 2008-05-19T10:06:25 * Simplified contour parity check routine, formula courtesy of Guillaume Bittoun.
sammy 13adc2c1 2008-05-19T10:06:07 * Add parentheses around && within || to please gcc.
sammy 612c3756 2008-05-11T21:43:57 * Simplify the C bindings. 70 lines gained.
sammy 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.
sammy 55dc91e0 2008-05-11T21:43:10 * Added optional position and string length to the Layout methods.
sammy 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.
sammy 32ef6d1e 2008-05-11T11:29:17 * Get rid of FTFontImpl::DoRender(), one of the oldest TODOs.
sammy 47e20607 2008-05-11T11:28:53 * Re-add FTFont::BBox() implementations with the old prototype, in case old projects use them.
sammy 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).
sammy 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.
sammy 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.
sammy 68738f93 2008-05-09T10:02:46 * Put a few wrapper functions into extern "C++" braces because they return references to C++ objects.
sammy 17f84259 2008-05-09T10:01:49 * Minor cosmetic fix (remove tab).
dtremenak 65ba4d60 2008-05-08T23:12:47 and more fun with float/double consistency
dtremenak d33c1e50 2008-05-08T23:12:29 more fun with size_t consistency
sammy 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.
sammy 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.
sammy 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.
sammy 2ecbe452 2008-05-08T17:05:26 * Add scalar product to the FTPoint operators.
sammy f2348fe5 2008-05-08T17:04:07 * Cosmetic fixes in the FTLayout C bindings.
sammy 55bf1ff0 2008-05-08T17:03:07 * Small optimisation in FTContour::ComputeOutsetPoint().
sammy 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.
sammy 45c2269f 2008-05-07T16:10:28 * Some code cleanup here and there, mostly in FTGlyphContainer.
sammy 1deacbc3 2008-05-07T15:07:38 * Documentation updates.
sammy 48b68f55 2008-05-07T15:06:19 * Replace FTBBox::Move() with the += operator, to make it clearer that the object is modified in the process.
sammy 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.
sammy 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.
sammy f58ddca2 2008-05-07T14:59:03 * Fix FTBBox::SetDepth() behaviour with negative depth values (as done in the FTExtrudeGlyph class).
sammy 28cc198b 2008-05-07T14:58:09 * Reimplement all FTFont::BBox() variants using the same FTFontImpl::BBox() common method.
sammy 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.
sammy 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.
sammy a065f004 2008-05-06T21:19:42 * Refactor FTContour::ComputeOutsetPoint so that it's twice as short, even with the additional comments.
sammy 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.
sammy 4ed52c55 2008-05-06T10:00:48 * Fix an unsigned int / size_t mismatch in FTVectoriser.
sammy 15012d0f 2008-05-06T07:08:55 * Fix indentation by replacing a few tabs with spaces.