|
a929ba9b
|
2000-06-25T06:47:11
|
|
applying formatting again
|
|
2a98b3c4
|
2000-06-23T13:47:55
|
|
reduced some nasty memory leaks
|
|
f0df85ba
|
2000-06-22T00:17:42
|
|
- MAJOR INTERNAL REDESIGN:
A lot of internal modifications have been performed lately on the
source in order to provide the following enhancements:
- more generic module support:
The FT_Module type is now defined to represent a handle to a given
module. The file <freetype/ftmodule.h> contains the FT_Module_Class
definition, as well as the module-loading public API
The FT_Driver type is still defined, and still represents a pointer
to a font driver. Note that FT_Add_Driver is replaced by FT_Add_Module,
FT_Get_Driver by FT_Get_Module, etc..
- support for generic glyph image types:
The FT_Renderer type is a pointer to a module used to perform various
operations on glyph image.
Each renderer is capable of handling images in a single format
(e.g. ft_glyph_format_outline). Its functions are used to:
- transform an glyph image
- render a glyph image into a bitmap
- return the control box (dimensions) of a given glyph image
The scan converters "ftraster.c" and "ftgrays.c" have been moved
to the new directory "src/renderer", and are used to provide two
default renderer modules.
One corresponds to the "standard" scan-converter, the other to the
"smooth" one.
The current renderer can be set through the new function
FT_Set_Renderer.
The old raster-related function FT_Set_Raster, FT_Get_Raster and
FT_Set_Raster_Mode have now disappeared, in favor of the new:
FT_Get_Renderer
FT_Set_Renderer
see the file <freetype/ftrender.h> for more details..
These changes were necessary to properly support different scalable
formats in the future, like bi-color glyphs, etc..
- glyph loader object:
A new internal object, called a 'glyph loader' has been introduced
in the base layer. It is used by all scalable format font drivers
to load glyphs and composites.
This object has been created to reduce the code size of each driver,
as each one of them basically re-implemented its functionality.
See <freetype/internal/ftobjs.h> and the FT_GlyphLoader type for
more information..
- FT_GlyphSlot had new fields:
In order to support extended features (see below), the FT_GlyphSlot
structure has a few new fields:
linearHoriAdvance: this field gives the linearly scaled (i.e.
scaled but unhinted) advance width for the glyph,
expressed as a 16.16 fixed pixel value. This
is useful to perform WYSIWYG text.
linearVertAdvance: this field gives the linearly scaled advance
height for the glyph (relevant in vertical glyph
layouts only). This is useful to perform
WYSIWYG text.
Note that the two above field replace the removed "metrics2" field
in the glyph slot.
advance: this field is a vector that gives the transformed
advance for the glyph. By default, it corresponds
to the advance width, unless FT_LOAD_VERTICAL_LAYOUT
was specified when calling FT_Load_Glyph or FT_Load_Char
bitmap_left: this field gives the distance in integer pixels from
the current pen position to the left-most pixel of
a glyph image WHEN IT IS A BITMAP. It is only valid
when the "format" field is set to
"ft_glyph_format_bitmap", for example, after calling
the new function FT_Render_Glyph.
bitmap_top: this field gives the distance in integer pixels from
the current pen position (located on the baseline) to
the top-most pixel of the glyph image WHEN IT IS A
BITMAP. Positive values correspond to upwards Y.
loader: this is a new private field for the glyph slot. Client
applications should not touch it..
- support for transforms and direct rendering in FT_Load_Glyph:
Most of the functionality found in <freetype/ftglyph.h> has been
moved to the core library. Hence, the following:
- a transform can be specified for a face through FT_Set_Transform.
this transform is applied by FT_Load_Glyph to scalable glyph images
(i.e. NOT TO BITMAPS) before the function returns, unless the
bit flag FT_LOAD_IGNORE_TRANSFORM was set in the load flags..
- once a glyph image has been loaded, it can be directly converted to
a bitmap by using the new FT_Render_Glyph function. Note that this
function takes the glyph image from the glyph slot, and converts
it to a bitmap whose properties are returned in "face.glyph.bitmap",
"face.glyph.bitmap_left" and "face.glyph.bitmap_top". The original
native image might be lost after the conversion.
- when using the new bit flag FT_LOAD_RENDER, the FT_Load_Glyph
and FT_Load_Char functions will call FT_Render_Glyph automatically
when needed.
|
|
9ca2af38
|
2000-06-21T03:03:28
|
|
A new formatting orgy.
Added some `#if 0' to completely disable the CID AFM stuff. In case this is
not correct please fix.
|
|
f9b8dec4
|
2000-06-16T19:34:52
|
|
major reformatting of the modules source code in order to get
rid of most of the basic types redefinitions (i.e. FT_Int instead
of "FT_Int", etc..)
The format-specific prefixs like "TT_", "T1_", "T2_" & 'CID_"
are now only used in relevant structures..
fixed Werner's fix to t2gload.c :-)
other small bug fixes
|
|
e3c11d7f
|
2000-06-16T06:49:56
|
|
A new round of formatting, adding/fixing documentation etc.
|
|
67d301f3
|
2000-06-14T04:13:59
|
|
Fixed the PACK() macro.
|
|
78575dc0
|
2000-06-12T19:36:41
|
|
A lot of formatting.
Added more tracing levels.
More Makefile fixes.
Minor other changes.
|
|
e35cac66
|
2000-06-11T03:46:57
|
|
A complete revision of FreeType 2's GNU makefiles (of the library):
Tons of unnecessary stuff have been removed; only the essential rules
have been retained.
The source files now depend on all header files in include/freetype,
include/freetype/config, and include/freetype/internal. This is not
optimal, I know, and I'll try to improve this, but it is better than
before (namely no dependencies on `internal').
FTDEBUG_SRC has been added (similar to FTSYS_SRC) -- I don't know
exactly whether this is really useful, but it doesn't harm.
There is now more documentation in the makefiles itself.
io-frames.html: Use of <th>, <code>, and <var> for better tagging.
Reactivating of FT_DEBUG_LEVEL_xxx macros.
Added a lot of #include directives to make `multi' builds possible -- note
that currently the modules cid, t1, and t1z have clashing structures and
functions which means that you can only use one of these three modules for a
multi build.
Added some missing function declarations to (local) header files.
Renamed some T1_Open_Face() to CID_Open_Face() in the cid module -- a lot
of other functions should be renamed also...
Replaced many FT_xxx stuff with T1_xxx in t1z driver -- this isn't finished
yet...
Fixed FT_Free() to allow a NULL pointer without an assertion (this has
always been a valid assumption in FreeType, at least in FT 1.x).
A lot of other, minor fixes (mostly documentation).
|
|
61bd4b9d
|
2000-06-07T00:00:08
|
|
Added FT_FRAME_SKIP_xxx to skip fields.
More use of READ_Fields() in ttsbit.c
Other minor fixes.
|
|
1c0d4acb
|
2000-06-06T20:41:48
|
|
Fine-tuned a lot of tracing levels to make them more functional with ftview.
Added a lot of \n to tracing messages.
Fixed a serious bug in loading SBit offsets (missing parentheses around a
xxx ? yyy : zzz construct).
Replaced most GET_xxx() functions with calls to READ_Frame() in ttsbit.c
|
|
4e6dd858
|
2000-06-05T05:26:15
|
|
freetype.h: Adding ft_encoding_xxx values for some CJK encodings.
Fixing copyright notice on many files.
Changed some tracing levels.
A lot of formatting, fixing documentation etc. as usual.
|
|
56177261
|
2000-06-03T21:59:44
|
|
ftview now has two new options: -d activates debugging, and -l sets the
trace level.
Since FT2 is still beta, I've activated the FT_DEBUG_xxx macros by default.
To make reasonable output, I've changed some TRACEx macros to other levels.
|
|
eb81e378
|
2000-06-03T06:03:11
|
|
More preparation for tracing. Formatting.
|
|
9a754ce3
|
2000-06-02T21:31:32
|
|
Formatting; adding some tracing code.
|
|
91e52d41
|
2000-06-02T14:30:38
|
|
Finishing first formatting/documenting etc. of the `base' dir. Some modules
are still badly documented, though...
|
|
08edde58
|
2000-06-02T00:11:57
|
|
Correct wrong fix.
|
|
2fbf7e43
|
2000-06-02T00:01:14
|
|
Added a lot of error checking code to the exported functions in the `base'
subdir (not complete yet).
|
|
d66ea312
|
2000-06-01T15:49:28
|
|
FT_Outline_Decompose() now returns FT_Error.
Minor bug fixes.
More formatting, adding/fixing documentation.
|
|
6b0bf346
|
2000-06-01T05:01:01
|
|
slight change to the smooth renderer to make it compile
stand alone with the _STANDALONE_ macro defined..
See comments inside it "src/base/ftgrays.c"
|
|
04aa800c
|
2000-06-01T03:27:48
|
|
added a CID-keyed font driver in "src/cid"
fixed two bugs in the smooth renderer
|
|
a3b6c6c2
|
2000-05-31T06:55:12
|
|
Formatting, fixing and adding documentation.
|
|
0c8cde2e
|
2000-05-30T20:10:06
|
|
ftgrays.c: Formatting. It seems to me that _STANDALONE_ doesn't work yet...
Will it ever work? If not, the unused code should be removed.
ftconfig.h, ftobjs.h: Fix my last fix of the UNUSED() macro.
|
|
f13e6333
|
2000-05-30T16:49:14
|
|
Formatting; minor improvements.
|
|
026bd17b
|
2000-05-30T05:13:30
|
|
ftmulti.c: Will now accept any filename. It will no longer append `.ttf'
or `.ttc'. Reformatted.
ftcalc.c, ftdebug.c: Minor formatting stuff.
|
|
c3c344c7
|
2000-05-29T22:40:57
|
|
Fixing the fixes :-) More formatting.
|
|
4f99c3c4
|
2000-05-29T20:55:13
|
|
fixed divide by zero bug
added CFF/OpenType driver source (not working for now)
|
|
a519b3b7
|
2000-05-29T20:46:12
|
|
Formatting, fixing descriptions.
|
|
2e421319
|
2000-05-26T22:13:17
|
|
moved a lot of things from the TrueType driver to the SFNT
module (whose interface has changed, by the way)
This allows even more code re-use between TrueType and
OpenType formats..
|
|
11187206
|
2000-05-26T17:13:23
|
|
finalised the multiple masters support
fixed some nasty little bugs too
|
|
fea68c68
|
2000-05-26T06:40:49
|
|
fixed two minor bugs:
- the glyph index was not checked in FT_Load_Glyph
- the "type1" driver didn't read the FontBBox and FontMatrix
correctly..
|
|
1fb6eea7
|
2000-05-24T00:31:14
|
|
EXPORT_DEF renamed to FT_EXPORT_DEF +
reformating/spacing
|
|
51179f0a
|
2000-05-18T16:18:05
|
|
some fixes for 64-bit systems. Mainly changed some
FT_TRACE calls to use %p instead of %lx when dumping
a pointer address
|
|
3475e7fb
|
2000-05-17T20:56:01
|
|
removed TT_MAX_SUBGLYPHS macro, there is no static
limit on the number of subglyphs in a TrueType font..
changed the default number of gray levels used by the
smooth renderer to 256 (instead of 128). Of course, the
human eye can't tell a difference ;-)
|
|
e49ab25c
|
2000-05-16T23:44:38
|
|
formatting - removed trailing spaces
|
|
ea44d5ec
|
2000-05-16T23:22:41
|
|
formatting
|
|
701d7546
|
2000-05-16T23:21:59
|
|
removed obsolete header file
|
|
414f38c5
|
2000-05-16T22:37:30
|
|
at last, fixed the bug, and re-enabled 5-gray levels support
for backwards compatibility..
|
|
0a29c697
|
2000-05-12T17:09:38
|
|
implemented FT_Select_Charmap and FT_Set_Charmap
(at last :-)
|
|
c30aea98
|
2000-05-12T15:01:18
|
|
another massive changes in order to completely avoid
compiler warnings with GCC + "-ansi -pedantic -Wall -W"
and LCC.
Also fixed the compilation of "type1z" with Win32-LCC
(its pre-processor is broken !!)
Updated the BUILD document too
|
|
bfe2f98f
|
2000-05-12T12:17:15
|
|
a new massive grunt work. Redefined the EXPORT_DEF,
EXPORT_FUNC, BASE_DEF and BASE_FUNC macros to
let them take an argument..
This is needed to compile the library as a DLL on some platforms
that have different compiler conventions..
|
|
4f2c5544
|
2000-05-12T10:19:41
|
|
additional changes, this time in order to pass extra parameters
to font drivers when creating a new face object.
The FT_Open_Args structure has been changed to simplify
its use and allow generic parameters too..
|
|
2561b245
|
2000-05-11T18:47:39
|
|
I knew the first CVS commit wouldn't be good :o)
Here, the build system seems to be cured now..
(I'll need to try it on Unix too though..)
|
|
efce08d6
|
2000-05-11T18:23:52
|
|
major re-organisation of the FreeType 2 directory hierarchy
|
|
f3823281
|
2000-05-05T13:11:36
|
|
added experimental emboldening/outlining code. This
is incomplete and will not compile so turned off
|
|
c1205799
|
2000-05-05T01:38:46
|
|
changes the type of the "mode" parameter in FT_Set_Raster_Mode
to unsigned long (easier than string to compare)
|
|
c136b409
|
2000-05-04T17:24:54
|
|
an update to FT_Outline_Funcs used to improve
the accuracy of outline decomposition
|
|
d186a361
|
2000-05-02T17:41:41
|
|
various updates to reduce the compilation warnings
|
|
e608a3e0
|
2000-05-02T10:53:11
|
|
moved the smooth renderer to the base layer directory
it is compiled as a separate object, and its interface is
available in "include/ftgrays.h"
|
|
27110613
|
2000-05-02T10:52:28
|
|
added FT_Sqrt64 to ensure that all bytecode operations are
strictly equivalent to the ones in FT 1.4 when compiling with
the configuration macro FT_CONFIG_OPTION_OLD_CALCS
defined..
|
|
a8bcdf8e
|
2000-05-02T10:51:41
|
|
added FT_Done_Stream
|
|
68ebd1be
|
2000-05-02T10:51:22
|
|
typo
|
|
33ec7d47
|
2000-05-02T10:51:04
|
|
removed an over-zealous assertation that halted the engine
with a few weird fonts.
|
|
61492029
|
2000-05-02T10:50:18
|
|
added macros to read little endian words from a byte stream
(e.g. NEXT_ShortLE(buffer))
|
|
99a4d93b
|
2000-04-25T16:10:50
|
|
added FT_Get_Sfnt_Table from "include/tttables.h"
|
|
2dbc54dd
|
2000-04-25T16:10:14
|
|
typo
|
|
37379e21
|
2000-03-28T11:22:31
|
|
major changes to the library:
- there is now a "convenience" API to manage glyphs in
"include/ftglyph.h". See the demo program "ftstring" for
an example..
- the raster interface has been changed in order to allow
direct composition through user-provided callbacks. This
has been tested but isn't demonstrated for now in "demos"
- the FT_LOAD_NO_RECURSE flag is supported, as this is
required by some new code in the auto-hinting engine
- some bug fixed in FT_MulFix which made FT_xxx_Transform
return incorrect results..
|
|
7024ca1a
|
2000-03-28T11:18:39
|
|
ftoutln.c is now mandatory. The optional parts of this
component can be disabled with the config macro
FT_CONFIG_OPTION_NO_CONVENIENCE_FUNCS
|
|
e01a41d5
|
2000-03-28T11:17:58
|
|
fixed a stupid bug in FT_MulFix
|
|
c3c7e7fb
|
2000-03-13T14:19:31
|
|
updated CHANGES
added BUILD & INSTALL
|
|
757429fd
|
2000-03-13T13:02:57
|
|
fix to get rid of compile warning
|
|
7f7aadf4
|
2000-03-13T12:57:27
|
|
finished moving all configuration macros to
"config/ftoption.h"
|
|
06d508c1
|
2000-03-13T11:52:44
|
|
removed the unused/obsolete "ftbbox.c"
|
|
7f615aef
|
2000-03-13T11:49:20
|
|
renamed all outlines functions to the
FT_Outline_<action> syntax..
|
|
41dbcbf6
|
2000-03-09T11:46:25
|
|
reformatting, changing the FT_Outline structure:
- "flags" have been renamed to "tags"
- "outline_flags" have been renamed to "flags"
Look for more re-formatting today..
|
|
0f99ddda
|
2000-03-06T13:23:32
|
|
changed the structure of FT_Outline in order to pack
all outline flags in a single integer..
Changed the rest of the library and demo programs
accordingly..
|
|
7eef5364
|
2000-03-05T16:07:58
|
|
- ft_new_input_stream: don't make a new copy of the pathname
- ft_done_stream: remove the FREE(pathname) call, which wasn't
kosher
- FT_Open_Face: after calling open_face, don't assume driver is
the same as face->driver, use face->driver instead
|
|
59d8ac46
|
2000-03-05T15:59:09
|
|
formatting: some tabs replaced by spaces
|
|
febe3fbe
|
2000-03-05T01:14:19
|
|
A first check of FT2's Make system. Many smaller and larger bugs have been
fixed:
. Removing unused variables.
. detect.mk files now must provide $(CONFIG_FILE) and not $(CONFIG_RULE).
. ansi.mk will now be really used as a fallback if the detect mechanism
fails.
. ANSIFLAGS will now be really used (fixing a typo).
. `make clean' now works (again two typos).
. Detection of gcc on Unix has been fixed (using the `-v' option instead of
`--version').
. `make devel' now works (on Unix).
. Fixing *again* a bug in demos/graph/x11/rules.mk to allow multiple use
of `-L' compiler options.
. $(BASE_H) now contains a few more header files.
As usual, a lot of formatting (not finished yet).
|
|
1e5754f2
|
2000-03-02T10:52:57
|
|
added missing "else": without it FT_Open_Face() would still scan the list of drivers when specifying an explicit driver
|
|
d35aea70
|
2000-03-02T01:07:50
|
|
ft_new_input_stream(): set the pathname field of the stream to args->pathname. Needed for the Mac fond driver.
ft_done_stream(): free the pathname field, if not null
|
|
e755002d
|
2000-02-29T17:11:53
|
|
moved the ANSI "ftsystem.c" to src/base
|
|
cbfaedce
|
2000-02-21T16:00:36
|
|
added glyph zone objects
|
|
547a252a
|
2000-02-16T08:23:58
|
|
Formatting. Adding/Fixing documentation.
|
|
861ba624
|
2000-02-15T12:54:51
|
|
small fix (reduce compiler warnings)
|
|
24ea09fc
|
2000-02-15T12:54:06
|
|
small fix
|
|
7663f222
|
2000-02-13T13:37:38
|
|
Added support for the "attach_file" format-specific driver
interface, used to implement FT_Attach_File.
Note, this is currently very lightly tested..
|
|
818336fd
|
2000-02-13T13:36:53
|
|
Added the function FT_Read_Fields, it acts as a
finite-state automata to load large TrueType tables
in object structures.
This is experimental, don't mess too much with it,
thanks :-)
|
|
cda32b71
|
2000-02-10T16:14:35
|
|
added the FT_Attach_File function to enable AFM
parsing.
Also, changed the API for FT_Open_Face to allow
broader stream descriptions..
|
|
d42c68e8
|
2000-01-27T13:56:02
|
|
many new small, but important, changes there:
- modified the interface of the "sfnt" module. There is now a function
called "load_format_tag", and another called "load_directory".
The first one is in charge of returning the 4-byte tag located at
the beginning of a given font file. It understand TrueType collections
and parses them automatically
The second loads the table directory that is located just after
the format tag.
This is useful, because the "SFNT" storage scheme can be used by
several distinct formats, each with its own format tag.
The TrueType driver now checks the format tag in "src/truetype/ttobjs.c"
- made some changes to "src/shared/t1types.h" to clearly separate the
Type 1 font content from the rest of the T1_Face structure. This
will be useful when adding the CFF/Type2 driver that will be able
to reuse the "T1_Font" structure within a "TT_Font" one (which
really describes a SFNT-based font file).
Some changes in "src/type1" were thus performed to reflect this.
Note that the current type1 driver will be discontinued in a
distant future. More on this later..
|
|
3ba47068
|
2000-01-17T11:25:57
|
|
some updates to the "rules.mk" files. Basically, we now
use "$(FT_COMPILE)" instead of "$(FT_CC)" in order to
compile the library.
$(FT_COMPILE) uses the $(ANSI_FLAGS) variable used to
define ANSI-compliance flags for the current compiler. It is used
to compile the library exclusively (some demo programs will _not_
compile properly with these flags set).
|
|
fdc225b1
|
2000-01-17T11:21:49
|
|
fixed another small bug in the FT_Read_xxxx functions
(they didn't updated the stream position in the case of
disk-based streams. This went un-noticed under Linux
which uses memory-mapped files by default)
|
|
8cd9575c
|
2000-01-17T11:21:00
|
|
fixed small bug
|
|
7dff772e
|
2000-01-17T08:24:22
|
|
Added ftraster.h for better support of standalone mode.
Fixed cleaning rules for the demo programs.
|
|
9ab7c3c3
|
2000-01-15T12:43:27
|
|
Fixed compilation bug for standalone mode.
|
|
cef95a09
|
2000-01-14T15:36:00
|
|
Yet another improvements to the scan-converter. Some macros were
introduced to use a constant precision and dynamic bezier decomposition
thresholding, leading some performance improvements.
Note that by now, the "high_precision" field of a FT_Outline
is ignored by the raster..
|
|
4f2d5b9a
|
2000-01-13T18:20:28
|
|
fixed a bug which prevented the raster from correctly
performing horizontal dropout control..
|
|
7880dd66
|
2000-01-10T17:19:45
|
|
ftcalc.c, ftextend.c, ftoutln.c, ftraster.c, ftstream.c:
Removing trailing spaces.
ftlist.h:
Removing duplicated documentation (which is in ftlist.c also).
ftinit.c, ftlist.c, ftobjs.c:
Formatting, adding documentation.
|
|
0db8d1ab
|
2000-01-09T17:54:56
|
|
Formatting.
|
|
f993b6a0
|
2000-01-08T17:10:33
|
|
demos/config/x11/rules.mk:
support for multiple X11R6 entries in $(PATH) added.
ftxbbox.c, ftcalc.c, ftdebug.c, ftdriver.h:
doc fixes.
ftdebug.c:
formatting.
ftdebug.h:
making makros `;'-safe (i.e., they can now be used within if-else clauses
without side effects resp. don't produce a single `;').
|
|
2b94ffad
|
2000-01-07T15:02:05
|
|
More docs added.
|
|
17ae985d
|
2000-01-02T09:41:30
|
|
ftbbox.h: FT_Get_Outline_BBox() must be called FT_Raster_GetBBox().
ftcalc.c: Added a missing closing paranthesis in 64bit version of
FT_MulFix().
Some formatting; updating copyright.
|
|
433bc53f
|
1999-12-30T12:28:03
|
|
Additional improvements to make the anti-aliasing even faster :-)
As previously, this is only noticable for sizes over 64 pixels.
|
|
5951ce9f
|
1999-12-29T00:53:44
|
|
updated the CHANGES file
+ some basic formatting cleaning
|
|
10effdf6
|
1999-12-29T00:22:24
|
|
Added the rules files `module.mk' to "sfnt", "truetype" and "type1" to
reflect the new modules/drivers list management performed through the
file `freetype2/config/modules.mk'
Changed the driver header files to reflect the new modules/drivers
list management. We get rid, at last, of the infamous pre-processor
tricks used to build the list at compile time.
`src/base/ftinit.c' is also modified to reflect the changes..
|
|
34b30320
|
1999-12-28T18:36:10
|
|
Some improvements to make the new anti-alias algorithm faster when
large glyph images are generated (e.g. ` fttimer -g' runs 20% faster).
For small pixel sizes (i.e. typically less than 64 pixels), rendering
speed is unaffected.
|
|
d2b1f357
|
1999-12-16T23:11:37
|
|
Initial revision
|