|
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.
|
|
316a7285
|
2008-05-04T19:38:55
|
|
* The FTFont<->FTFontImpl bridge is now complete.
|
|
89585b8a
|
2008-05-04T19:38:41
|
|
* Put my name and Sean's in the public headers so that people know who to
contact.
|
|
54c815bb
|
2008-05-04T19:38:07
|
|
* Cast strings to unsigned char * before handling them to our internal
methods, because the chars may be cast directly to int, causing crashes
with 8-bit strings.
|
|
02817b9c
|
2008-05-04T06:23:04
|
|
quell compilation warnings about the last enum having a comma
|
|
b7c7e131
|
2008-05-04T02:58:40
|
|
refer to local/private headers with local path inclusion, otherwise the search include paths are wrong
|
|
1b658504
|
2008-05-04T02:57:13
|
|
list the libs as libs instead of flags so they get passed through as dependencies in the libtool archive
|
|
552366af
|
2008-05-02T14:52:54
|
|
* Add a virtual destructor to FTLayoutImpl to make sure derived classes
have their destructors called.
* Make all FTLayoutImpl members protected. Only its derived classes and
FTLayout need to access them.
|
|
e0e8e479
|
2008-05-02T13:27:11
|
|
* Add an implicit cast to FTGL::TextAlignment in the FTLayout::SetAlignment
C wrapper.
|
|
9b3a3a8a
|
2008-05-02T13:18:09
|
|
* Started documenting the FTLayout C bindings.
|
|
c33efa0d
|
2008-05-02T12:45:21
|
|
* Use a smaller logo on the User Guide's front page.
|
|
7f2bb3f1
|
2008-05-02T12:43:57
|
|
* Document the C bindings for FTGlyph.
|
|
d30f9095
|
2008-05-02T12:43:22
|
|
* Fix a potential memory leak in the FTGlyph C bindings error handler.
|
|
92238082
|
2008-05-02T09:15:38
|
|
* Change a few function names in the FTFont C bindings to avoid confusion
with other classes.
* Document the C bindings. Since it's almost copypasta from the C++
documentation, I put the constructors back in their original files.
|
|
d9cdef45
|
2008-05-02T09:13:14
|
|
* Add RENDER_ALL to the enum used in Font::Render() so that client
applications need not worry about future extensions.
|
|
66e53f95
|
2008-05-02T07:21:57
|
|
* Fix a memory leak in ~FTExtrudeGlyph: only one of the three display lists
was being freed.
|
|
80e809f1
|
2008-05-02T07:21:09
|
|
* Fix brown-paper-bag bug in the vector product computation: the indices
were completely messed up. Thanks to valgrind for spotting it for me.
|
|
dfa07fc3
|
2008-05-02T07:20:51
|
|
* Fix a small memory leak in the C bindings destructors.
|
|
e8c876bc
|
2008-05-01T19:31:06
|
|
* Make our base classes' destructors public. We want to prevent accidental
instantiation, but direct destruction is perfectly legal.
|
|
54e3e0a6
|
2008-05-01T18:46:22
|
|
* Proper FTFace member initialisation to prevent destructor-time crashes.
|
|
fbcf2a88
|
2008-05-01T18:33:44
|
|
* Optimise FTFace::KernAdvance() so that kerning for font indices < 128 is
precomputed during FTFace() instantiation to avoid calling FT_Get_Kerning()
too often. Patch by Sean Morrison, taken from bzflag commit r14652,
reworked for safety and performance by me.
|
|
b9df86a4
|
2008-05-01T18:31:35
|
|
* Optimize FTCharmap::FontIndex() so that font indices < 128 are precomputed
during FTCharmap() instantiation to avoid repeated tt_cmap4_char_index()
calls. Performance patch by Sean Morrison, taken from bzflag commit r14644.
|
|
822d0f8f
|
2008-05-01T18:30:29
|
|
* Avoid crashing when the texture size is so small that its integer size
becomes zero. At the same time, round many floats instead of simply
flooring them to int. First part by Sean Morrison from bzflag commit
r14590.
|
|
40644e3b
|
2008-05-01T14:19:34
|
|
* Patches by Sean Morrison, from BzFlag commits r15755 and r14843:
+ Only delete textures if there is at least one of them.
+ Ensure that the FTTextureFont data members get set for all cases.
* Added Sean to the AUTHORS file.
|
|
129a4733
|
2008-05-01T13:42:49
|
|
* Store FTPoints in the BBox object instead of floats. This was a todo
from Henry.
|
|
f0705dc2
|
2008-05-01T10:54:28
|
|
* Inline most FTPoint methods and operators. This will probably make the
code smaller instead of bigger, because most of what they do will be
optimised out by the compiler.
* Get rid of the weird GetNormal() method and reimplement it using the ^
operator (vector product) and Normalise() method instead.
|
|
9fa3bb52
|
2008-05-01T10:04:14
|
|
* Moved C constructor bindings to FTFont.h and FTLayout.h so that
they appear in the same file in the generated documentation.
* Various minor documentation updates.
|
|
fa7d0739
|
2008-05-01T09:31:27
|
|
* Mass consistency renaming: the fonts' "FTGL" prefix is dropped in favour
of "FT" because all other types use only the latter.
* Rename "Extrd" types to "Extrude" because the former doesn't really make
much sense.
* Added appropriate #defines so that legacy applications still build.
|
|
8f4cefb2
|
2008-04-30T16:35:23
|
|
* Remove FTGL_EXPORT specification from classes that are not actually
exported.
|
|
2aa2aeb5
|
2008-04-30T16:27:34
|
|
* Move include/* to src/FTGL/* so the files in there can directly be
referred to as "FTGL/*.h". This is convenient because they will be
installed in a similar location.
* Put a warning in each legacy public header to advise users to only include
the generic <FTGL/ftgl.h> header instead.
|
|
1d9265ad
|
2008-04-30T14:10:08
|
|
* Improve constructor code in the FTFont and FTLayout C bindings. Shorter
(40 lines) and more consistend code.
|
|
24656f3c
|
2008-04-30T14:07:52
|
|
* Fix Makefile to add missing header files in "make dist".
|
|
8c654f07
|
2008-04-30T14:02:25
|
|
* Implement FTLayout::Error(). Nothing uses it yet and it's always zero,
but it may come in handy later and we want a stable API.
|
|
0c84f1f3
|
2008-04-29T22:59:41
|
|
* Wrote C bindings for the FTGlyph class.
|
|
7f4fcafa
|
2008-04-29T21:35:16
|
|
* End of the pImpl refactoring task started in [972]. FTGlyph was the last
class needing the change. As a consequence, FTGlyph is now also exported
in the library API, and so are FTBBox and FTPoint.
|
|
fa063816
|
2008-04-29T20:42:15
|
|
* Simplified FTFont's constructor. Since the class is kind of abstract,
there is no need to export the constructor interface: only derived classes
need to advertise how they are instantiated.
|
|
387dec48
|
2008-04-29T17:11:57
|
|
* Move FTGlyph, FTFont and FTLayout classes and their derivatives into
separate subdirectories of src/ to avoid cluttering src/ with too many
files. The Visual Studio solution still needs an update.
|
|
ff3228e6
|
2008-04-29T16:47:26
|
|
* More cleanup following the private pointer refactoring:
+ Removed private type enums from the public ftgl.h header.
+ Protected all private implementation ctors and dtors.
+ Prevent accidental initialisation of the base classes by protecting
their constructors. Derived classes can still be properly instantiated.
|
|
b81733e4
|
2008-04-29T15:44:42
|
|
* Clean up the C bindings by splitting FTGlue.cpp into FTLayoutGlue.cpp,
FTGlyphGlue.cpp (unused yet) and FTFontGlue.cpp. C methods previously
scattered all around are now located in one of these 3 files.
* Hide extern "C" and namespace C constructs in a single FTGL_BEGIN_C_DECLS
macro.
* Use namespace FTGL all around instead of a mix of C and FTGL namespaces.
|
|
8886dced
|
2008-04-29T14:57:06
|
|
* Fix the ftglLayoutRenderSpace C binding's prototype, which wasn't in sync
with its implementation in FTGlue.cpp.
|
|
1f4a94f8
|
2008-04-29T14:39:28
|
|
* Since the MIT license is LGPL-compatible, there is no real point in
shipping FTGL under a dual license. Consequently removing LGPL references
from the code, in agreement with Sean.
|
|
4db4b05d
|
2008-04-29T11:30:15
|
|
* Remove dead code: FTGLBufferFont and FTBufferGlyph are the same as
FTGLPixmapFont and FTPixmapGLyph, except the latter are actually used
and do work.
|
|
001ebbdd
|
2008-04-29T11:18:48
|
|
* Remove useless overriden methods in FTGLBitmapFont that reimplemented
the same thing as in FTFont.
|
|
c96146ed
|
2008-04-29T06:44:51
|
|
* Moved header files that are not required by library clients into src/
so that they do not get installed.
* Created an ftgl.h header that allows clients to #include <FTGL/ftgl.h> and
be done with it.
|
|
9caaa891
|
2008-04-28T21:48:44
|
|
* Split Font and Layout headers into Foo.h and FooImpl.h, and taking the
latter out of the include/ directory.
|
|
573770b5
|
2008-04-28T21:12:36
|
|
* Beginning of a new refactoring task. Classes inheriting FTFont or FTLayout
now hide their private members behind a pImpl pointer. This will make the
public headers smaller, and we will not break the ABI by changing private
members of our public classes. This first step just splits classes but
does not reorganise files.
|
|
3674c4d1
|
2008-04-28T17:31:42
|
|
specify minimum versions, make ac be 2.58 and am be 1.6 (needed in order to support os x 10.4 out-of-the-box). PKG_CHECK_MODULES doesn't seem to wrap the args properly so you can't embed AC_MSG_RESULT, make a zip and bzip2 when we make a dist, and provide NULL to make am happy
|
|
da303bb8
|
2008-04-28T15:24:05
|
|
* Remove all method implementations from the main FTFont.h, FTLayout.h and
FTGlyph.h headers. Since they use private members, they belong to their
respective .cpp files.
|
|
09fbf8ac
|
2008-04-28T11:17:05
|
|
* Cosmetic: remove trailing spaces, fix unbalanced parenthesis/space
constructs, remove tab/space mixes, wrap a lot of long source lines.
|
|
46ae3db6
|
2008-04-28T09:10:37
|
|
* Crash fix: do not try to delete FTFont::glyphList if the constructor
failed.
|
|
c2ebad6c
|
2008-04-27T19:55:30
|
|
* Use libtool' versioning features to call the library libftgl.2.1.3. This
is not the recommended way to do, but it's nice to synchronise the
package's version and the library's soname.
|
|
8816c73c
|
2008-04-27T10:22:55
|
|
* Fix erroneous warnings in the C bindings for destructors, by Eric Beets.
|
|
4489aa96
|
2008-04-25T12:24:52
|
|
* *sigh*, another bug fix for a problem I introduced in [941].
|
|
06dd5949
|
2008-04-25T10:01:29
|
|
* Implement Render() for all Font types. Patch by Eric Beets.
|
|
9f52ec90
|
2008-04-25T10:01:07
|
|
* Align FTPixmapGlyph and FTTextureGlyph objects at round pixel coordinates
to reduce bleeding. Patch by Ton Roosendaal, from Blender commit r4411.
|
|
f6445414
|
2008-04-25T10:00:44
|
|
* Disable the use of the font's internal bitmap in FTGLTextureFont and
FTGLPixmapFont. Patch by Shizu, from Blender commit r4569.
|
|
d92dc2db
|
2008-04-25T10:00:07
|
|
* Turn off the color buffer bit in the TextureFont renderer to increase
performance. Patch by Ton Roosendaal, from Blender commit r5362.
|
|
0608bbfe
|
2008-04-25T09:59:48
|
|
* Synchronise FTCharmap::GlyphListIndex and FTCharmap::FontIndex prototypes
declarations with their definitions. Patch by Vladimir Marek, taken from
Blender commit r8915.
|
|
d72e669b
|
2008-04-25T09:59:35
|
|
* OS X Leopard build fix. Starting from this version, GLUTesselatorFunction
has a standard prototype again. Patch by Kent Mein, taken from Blender
commit r11864.
|
|
d0651fb6
|
2008-04-25T09:59:11
|
|
* Fix random bugs introduced in [941] and [943].
|
|
170cddfc
|
2008-04-24T13:20:17
|
|
* Updated Visual Studio build, by Eric Beets. We decided to switch the
solution file to Visual Studio 2005 because no one was able to get an
older version. Sorry.
|
|
75c73099
|
2008-04-23T21:23:59
|
|
* Fix most compilation warnings. Most frequent causes: shadow declarations
and const qualifier disappearances.
|
|
92094112
|
2008-04-23T15:56:47
|
|
* Only build outset contours when really needed. This spares quite a few
operations and removes now useless parameters from several methods.
Patch by Eric Beets, reworked by me.
|
|
a5781ca3
|
2008-04-23T09:50:17
|
|
* Assume unknown operating systems share the GLUTesselatorFunction prototype
with other standard Linux/Unix systems. It's a pretty safe bet and spares
us from patching the code each time a new system such as GNU/kFreeBSD
appears.
|
|
52e30602
|
2008-04-23T09:49:07
|
|
* In outline mode, do not render the original outline if an outset value
was specified: only render the modified one. Patch by Eric Beets.
|
|
9ae936f3
|
2008-04-22T23:47:24
|
|
* C bindings for the FTLayout interface. Code by Eric Beets.
|
|
15d3cad5
|
2008-04-22T17:06:49
|
|
* Fix FTTextureGlyph rendering offset so that it works with layouts.
|
|
bf878876
|
2008-04-22T16:21:37
|
|
* Fix displaylist usage in FTExtrdGlyph. Closes SourceForge ticket #1945392.
|
|
ef85a014
|
2008-04-22T16:21:04
|
|
* Allow to selectively display parts of the glyph/font/layout. This is
currently only used in FTExtrdGlyph: it lets the user render the front
surface in a different color than the extruded side surface. Code written
by Eric Beets.
|
|
cb8ae5d9
|
2008-04-22T16:18:07
|
|
* Fix displaylist usage in FTOutlineGlyph and FTPolyGlyph. FTExtrdGlyph
still needs to be fixed, but that will be after pending Render() changes.
Partially addresses SourceForge ticket #1945392.
|
|
7e74380f
|
2008-04-21T21:48:03
|
|
* Inset/outset contour support for fonts, by Eric Beets. For now, only
contours with exactly the same number of points are generated.
|
|
f300fc49
|
2008-04-21T16:09:46
|
|
* Fix the FTLayout rendering: line feeds were not properly handled. Patch
by Eric Beets.
|