|
c2f44c16
|
2001-03-10T19:02:51
|
|
Added implementation of three new functions: FT_RoundFix, FT_CeilFix,
and FT_FloorFix.
|
|
e274cfd3
|
2001-03-04T21:53:08
|
|
* src/autohint/ahtypes.h (AH_Hinter): Add elements
`disable_horz_edges', `disable_vert_edges'.
* src/autohint/ahhint.c (ah_hint_edges_3, ah_hinter_hint_edges): Use
them (and remove static variables with the same names).
* src/pcf/pcfutil.c (BitOrderInvert): Add `const'.
* docs/glnames.py: Updated to latest pstables.h changes.
* src/psnames/pstables.h: Add more `const'.
* src/pcf/pcfutil.c: Ditto.
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Fixing typo
(FT_Glyph_Done -> FT_Done_Glyph).
* include/freetype/ttnameid.h: Added some new Microsoft language
codes and LCIDs as found in Office Xp.
* builds/hurd/detect.mk: New file. Added support to detect the GNU
Hurd operating system as Unix-like. Fix submitted by Anthony Fok
<foka@debian.org>.
* src/type1/t1gload.c (T1_Load_Glyph): Set glyph control data to the
the Type 1 glyph charstring (used by conversion programs).
Submitted by Ha Shao <hashao@chinese.com>.
* src/base/ftgrays.c (grays_sweep): The function didn't exit
immediately if `num_cells' was 0 as it should. Thanks to Boris for
finding this out.
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Fixed memory leak when
bitmap rendering fails (thanks to Graham Asher).
* docs/docmaker.py, include/freetype/*.h: Updated the DocMaker
script to support chapters and section block ordering. Updated the
public header files accordingly.
* src/base/ftglyph.c (FT_Glyph_Copy): Advance width and glyph format
were not correctly copied.
|
|
5aeaad6c
|
2001-02-23T17:47:41
|
|
fixed a bug reported by Graham Asher
|
|
8fe916ca
|
2001-02-16T16:27:35
|
|
fixed a small bug (the advance and format were not copied in
FT_Glyph_Copy)
|
|
c3e987e2
|
2001-01-03T06:47:10
|
|
* builds/vms: Support files for VMS architecture added.
* descrip.mms, src/*/descrip.mms: VMS makefiles added.
* README.VMS: New file.
* LICENSE.TXT: Added info about PCF driver license.
|
|
63408a12
|
2000-12-13T23:44:37
|
|
include/freetype/internal/internal.h: Fixed header inclusion macros
to use direct definitions. This is the only way to do these things
in a portable way :-( The rest of the code should follow shortly
though everything compiles now.
* builds/compiler/intelc.mk, builds/compiler/watcom.mk: New files.
* builds/win32/detect.mk: Added support for the Intel C/C++
compiler, as well as _preliminary_ (read: doesn't work!) support for
Watcom. Also added a new setup target. Type "make setup list" for
a list of supported command-line compilers on Win32.
* src/base/ftdebug.c: Added dummy symbol to avoid empty file if
conditionals are off.
|
|
170c0d4c
|
2000-12-13T19:55:11
|
|
* include/freetype/config/ft2build.h,
include/freetype/internal/internal.h: fixed header inclusion macros
to use direct definitions. This is the only way to do these things
in a portable way :-( The rest of the code should follow shortly
though everything compiles now..
* builds/compiler/intelc.mk, builds/compiler/watcom.mk,
builds/win32/detect.mk: added support for the Intel C/C++ compiler,
as well as _preliminary_ (read: doesn't work !!) support for Watcom.
Also added a new setup target. Type "make setup list" for a list
of supported command-line compilers on Win32..
|
|
d5c1b27d
|
2000-12-12T22:28:12
|
|
* include/freetype/config/ft2build.h (FT2_ROOT, FT2_CONFIG_ROOT):
Removed. ANSI C doesn't (explicitly) allow macro expansion in
arguments using `##'.
(FT2_PUBLIC_FILE, FT2_CONFIG_FILE, FT2_INTERNAL_FILE): Use directory
names directly. Make them configurable. Use `##' to strip leading
and trailing spaces from arguments.
* builds/unix/ft2unix.h: Adapted.
* src/base/ftsystem.c (ft_alloc, ft_realloc, ft_free, ft_io_stream,
ft_close_stream): Use FT_CALLBACK_DEF.
* builds/unix/ftsystem.c: Use new header scheme.
(FT_Done_Memory): Use free() from FT_Memory structure.
* src/base/ftinit.c, src/base/ftmac.c: Header scheme fixes.
* include/freetype/config/ft2build.h (FT2_CONFIG_ROOT,
FT2_PUBLIC_FILE, FT2_CONFIG_FILE, FT2_INTERNAL_FILE,
FT_SOURCE_FILE): Use `##' operator to be really ANSI C compliant.
|
|
cc069beb
|
2000-12-08T16:17:16
|
|
cleanups
|
|
19ed8afe
|
2000-12-08T02:42:29
|
|
- updated all source files to adhere to the new inclusion scheme
- the CFF loader now loads the encodings and charset tables
though doesn't use them for now
|
|
ca8d1cda
|
2000-12-05T21:32:02
|
|
fixed small error in last update of FT_Done_Memory
|
|
e646ff6f
|
2000-12-05T08:39:14
|
|
fixed an obvious bug in FT_Done_Memory. The ANSI "free" function
was called, instead of "memory->free" !!
|
|
d3c8e064
|
2000-12-04T22:53:55
|
|
- updating the header inclusion scheme to use <ft2build.h> by
default..
- created "builds/devel" to hold developer builds options
for both Win32 and Unix
- fixed a bug in the winfonts driver, where the glyph image format
wasn't set correctly..
|
|
ac83e7e0
|
2000-11-29T23:59:08
|
|
fixed a bug in the Conic bezier extrema computation formula..
|
|
ada9503d
|
2000-11-29T17:48:57
|
|
* src/base/ftcalc.c (FT_SqrtFixed), src/base/ftobjs.c
(FT_Set_Renderer): Use FT_EXPORT_DEF.
* src/cache/ftcimage.c (FTC_Image_Cache_Lookup),
src/cache/ftcmanag.c (FTC_Manager_Done, FTC_Manager_Reset,
FTC_Manager_Lookup_Face, FTC_Manager_Lookup_Size,
FTC_Manager_Register_Cache), src/cache/ftcsbits.c
(FTC_SBit_Cache_Lookup): Ditto.
* src/include/freetype/cache/ftcglyph.h (FTC_GlyphNode_Init),
src/include/freetype/ftmac.h (FT_New_Face_From_FOND): Use FT_EXPORT.
|
|
d157fcf0
|
2000-11-29T04:45:26
|
|
* src/truetype/ttobjs.c (TT_Init_Size): Fix #ifdef's to work with
disabled interpreter also.
* src/base/ftnames.c (FT_Get_Sfnt_Name_Count): Fix incorrect
parentheses.
|
|
23a0670b
|
2000-11-08T00:20:25
|
|
removed the file <freetype/internal/ftlist.h> and corrected
files that depended on it.
the ftlist.c function definitions are now FT_EXPORT_DEF
instead of FT_BASE_DEF
|
|
8ec9dfd9
|
2000-11-07T23:56:02
|
|
Moving doc comments for BASE functions from source to header files.
|
|
90a03301
|
2000-11-07T17:21:11
|
|
All function comments are now removed from source files (and moved to the
header files if necessary).
Some minor fixes to have `make multi' run successfully (with gcc and g++).
Fixing compiler warnings.
|
|
4b68007b
|
2000-11-07T06:30:29
|
|
Complementing David's changes with formatting, adding documentation, etc.
More `*'-convention formatting, adding the `a' resp. `an' prefix to
variables.
|
|
8c883fb5
|
2000-11-05T23:41:08
|
|
minor fixes.
Add more gcc warnings for development on UNIX.
|
|
77fb4ced
|
2000-11-04T09:41:45
|
|
removed redundant checks.
|
|
dc72aff4
|
2000-11-04T08:33:38
|
|
Finishing David's latest changes (there were some errors in it).
|
|
54e75749
|
2000-11-04T02:52:02
|
|
defining new types to hold "internal" fields of public
objects:
FT_Face_Internal, FT_Size_Internal, FT_Slot_Internal
these contain some fields that may change between releases
of FreeType, without affecting the size of FT_FaceRec,
FT_SizeRec, FT_GlyphSlotRec, etc.., which means that
drivers wouldn't need to be recompiled if we only add new
fields to an internal structure..
I plan to hack a few things related to the auto-hinter and
I need this move to ensure that we will not break binary
compatibility between 2.0 and 2.1 :-)
- David
|
|
76a5f623
|
2000-11-04T01:55:49
|
|
major reformatting of the sources:
FT_EXPORT_DEF => FT_EXPORT
FT_EXPORT_FUNC => FT_EXPORT_DEF
BASE_DEF => FT_BASE
BASE_FUNC => FT_BASE_DEF
LOCAL_DEF => FT_LOCAL
LOCAL_FUNC => FT_LOCAL_DEF
LOCAL_FUNC_X => FT_CALLBACK_DEF
LOCAL_DEF_X => FT_CALLBACK_TABLE
FT_CPLUSPLUS => FT_CALLBACK_TABLE_DEF
|
|
40911094
|
2000-11-03T07:57:51
|
|
Don't access freed variables...
|
|
7b45c28d
|
2000-11-03T07:34:29
|
|
Remove redundant code; fix computation of `last'.
|
|
e4b32a5d
|
2000-10-31T20:42:18
|
|
Removing trailing whitespace.
|
|
b5084e11
|
2000-10-28T17:10:06
|
|
Renamed z1* files back to t1*; the same transition for Z1_* structures
Removed obsolete raster1/* files.
|
|
47c14b9d
|
2000-10-27T00:53:16
|
|
fixing a small bug in FT_Glyph_To_Bitmap:
the glyph advance wasn't copied to the bitmap !!
|
|
ddbb8e7b
|
2000-10-26T10:04:16
|
|
Some formatting.
Fixed some data types/added header files to remove compiler warnings.
Added trivial input data check to FT_Outline_Get_BBox().
Fixed type1z -> type1 file inclusions.
|
|
3a3ffedc
|
2000-10-26T00:08:15
|
|
adding "ftbbox" to build rules
|
|
54169b35
|
2000-10-26T00:06:35
|
|
- reviving the "ftbbox" component, used to compute exact bounding
box computations
- minor update to docmaker.py, more is coming
|
|
6a425338
|
2000-10-24T05:44:59
|
|
fixes for fixes :-)
formatting; compiles now without warnings on my Linux box
|
|
dc26e7b7
|
2000-10-23T22:46:56
|
|
- minor reformatting of "ftmodule.h"
- added missing "const" statements in the source code in order
to really get rid of writable static variables
|
|
5a96b07c
|
2000-10-17T14:29:48
|
|
Fixed two typos spotted by Ryan Martindale <ryan@qsicorp.com>.
|
|
47a5f41d
|
2000-10-17T03:38:43
|
|
Added copyright messages to all Makefiles.
Added documentation to FT_Get_Sfnt_* stuff (in ftnames.[ch])
minor other doc fixes
|
|
c1635d44
|
2000-10-15T23:32:01
|
|
ftnames.c has been erroneously included twice.
|
|
0bf381f7
|
2000-10-15T21:59:58
|
|
Make ftsynth.c work again.
Renamed FT_*_Outline to FT_Outline_*
|
|
dc268f24
|
2000-10-15T17:59:17
|
|
Fix typo (FT_... -> TT_...)
|
|
e67e349a
|
2000-10-13T21:00:36
|
|
More fixes to the tutorial.
Added artificial Type 1 pid/eid paors to ttnameid.h.
|
|
eddd9909
|
2000-10-12T05:05:40
|
|
formatting
small fixes
|
|
a7096374
|
2000-10-11T23:31:12
|
|
Added new `ft_glyph_bbox_unscaled' enum; fixing documentation of
FT_Glyph_Get_CBox().
ftnames.c has been omitted from the Makefile.
|
|
a0be99f1
|
2000-10-03T18:02:02
|
|
changing the linkage type of
FT_New_GlyphSlot and FT_Done_GlyphSlot to
BASE_DEF instead of FT_EXPORT_DEF
|
|
8bb45ec8
|
2000-09-29T06:41:56
|
|
Fixing comment in unixddef.mk which caused a trailing blank.
Adding a new error, FT_Err_Invalid_Pixel_Size (used in winfnt.c)
Fixing FT_Read_Fields() which failed for ft_frame_{bytes,skip}. This bug
disabled the Winfont driver.
Minor formatting issues.
|
|
c9ce9e4e
|
2000-09-15T17:16:49
|
|
small bug-fix
|
|
f9b03750
|
2000-09-11T22:50:13
|
|
small formatting issues.
|
|
a8194a97
|
2000-09-02T00:20:42
|
|
- added a new function called FT_SqrtFixed to compute the
16.16 square root of a 16.16 number (this could come handy
in a later version of the auto-hinter)
- small fixes to the smooth renderer. It used to use way too
much line segments when drawing beziers !!
|
|
e12e313a
|
2000-08-29T16:03:28
|
|
a small optimisation that should speed things a bit.
I'm surprised I didn't do it before..
|
|
d1b7475b
|
2000-08-24T16:29:15
|
|
Formatting, small fixes.
Adding basic input parameter checking for exported functions.
|
|
35db7322
|
2000-08-24T12:39:40
|
|
- fixed an horrible FT_LOAD_RENDER bug that returned empty
bitmaps !!
- tested and fixed the image cache object. I'm performing a
few more checks though, and we'll call the cache sub-system
completed !!
|
|
8728f294
|
2000-08-23T17:32:42
|
|
Formatting, small fixes.
Adding copyright notices etc.
|
|
d8b4514d
|
2000-08-22T22:53:03
|
|
added preliminary emboldening code.. still _very_
experimental
|
|
97488074
|
2000-08-22T22:36:33
|
|
the psaux module is now nearly completed
the "type1z" driver uses it to parse Type 1 charstrings
(not to parse the Type 1 token stream yet though)..
|
|
c38ddff8
|
2000-08-21T04:43:01
|
|
fixed a _serious_ bug in FT_Glyph_Get_CBox
|
|
b1c8bf06
|
2000-08-17T07:18:04
|
|
Minor formatting.
Adding copyright/C++ guards to psaux files.
|
|
24d7024c
|
2000-08-17T01:09:06
|
|
added draft "psaux" code
the t1 driver now reads the complete font matrix
and applies it (some fonts do not work properly without
hinting though...)
|
|
710354b8
|
2000-08-16T17:04:22
|
|
fixed the bug that prevented bitmap formats to be loaded
correctly when the auto-hinter is used (symptom: "winfonts"
driver didn't load bitmaps correctly).
|
|
3a89c2a4
|
2000-08-01T17:05:20
|
|
Removing FT_MAKE_OPTION_SINGLE_LIBRARY_OBJECT. It has never worked.
Instead, define BASE_DEF() and BASE_FUNC() similarly to FT_EXPORT_DEF() and
FT_EXPORT_FUNC(), respectively, allowing the programmer to define proper
types and/or export lists for multiple DLLs if necessary (e.g. ftbase.dll --
standalone, fttype1.dll -- needs ftbase.dll, etc.).
The library is finally compiling and linking natively with a C++ compiler!
|
|
e72c9fec
|
2000-07-31T18:59:02
|
|
Simplifying the FIELD_* and FRAME_* macros. Before calling these macros,
you should #define FT_STRUCTURE to the structure which will be filled.
Replaced FT_FIELD_REF with FT_FIELD_SIZE, FT_FIELD_SIZE_DELTA, and
FT_FIELD_OFFSET to make the code more readable; additionally, it should be
more portable because we no longer cast a pointer to an FT_UShort (which
e.g. fails with Sun's C++ compiler) but computes the difference between two
pointers which is guaranteed to work.
Fixing warnings (and C++ errors) while using Sun's latest cc and CC
incarnations. Most of them are related to variable shadowing.
|
|
05c21b8f
|
2000-07-29T20:38:19
|
|
Formatting.
|
|
e97cb912
|
2000-07-28T03:13:31
|
|
FT_Done_Stream(): do stream->close = 0 after calling stream->close(); this makes it safe to call FT_Done_Stream() more than once.
David: please review this; I hope you agree with this minor change.
|
|
5fe94ff6
|
2000-07-28T02:25:23
|
|
Adapted to new external stream semantics.
|
|
9e830c5d
|
2000-07-28T01:12:34
|
|
Put FT_New_Face() in an #ifndef macintosh switch; ftmac.c provides an extended implementation.
|
|
6012037b
|
2000-07-28T01:11:20
|
|
Removed Mac fond driver #ifdefs
|
|
ae4bceef
|
2000-07-28T01:10:35
|
|
Brand new Mac support -- no more muching with changing drivers and reinitializing streams, but a clean layer on top of FT_Open_Face(): an extended version of FT_New_Face().
|
|
58b17f96
|
2000-07-27T23:29:08
|
|
Formatting.
|
|
c5cdf8bc
|
2000-07-27T21:40:22
|
|
re-adding a "unix-dev.mk". Debugging libtool output
is just too much of a pain for me, I prefer a good old
static lib without optimizations :-)
"make devel" is back on Unix then..
|
|
d1ab7f5a
|
2000-07-23T16:23:12
|
|
Hardcode loading the Mac FOND driver here, as config/ftmodule.h sometimes gets regenerated.
|
|
d060a75b
|
2000-07-20T06:57:41
|
|
Formatting.
Rudimentary support for autoconf (still using GNU make)
Say `make unix'.
|
|
c49f69cb
|
2000-07-20T03:44:50
|
|
some welcome fixes related to the auto-hinter:
- removed a stupid memory leak
- fixed the weird metrics hinting (the horizontal edges were used,
instead of the vertical one, to compute the metrics adjustments,
silly, silly, silly).
there is still some bugs that I'm looking at though, but we're
very near the release..
|
|
6930b45f
|
2000-07-19T17:13:03
|
|
- introduced FT_Get_Glyph_Name (see freetype.h)
to access individual glyph names. Changed some
drivers to support it through a new interface named
"glyph_name".
- introduced FT_Get_Sfnt_Name (see ftnames.h)
to access the SFNT name table in a TrueType/OpenType
file..
|
|
5aa646c5
|
2000-07-14T06:16:47
|
|
Formatting.
Fixing a bug in FT_Get_Kerning().
Moving FT_Get_Module_Interface() to ftoutln.c.
|
|
2405d14f
|
2000-07-11T06:12:20
|
|
Formatting/Synchronizing.
Updating OS/2 bits in ttnameid.h to latest version (as posted on the
opentype@ list).
|
|
93ac3e39
|
2000-07-10T21:41:32
|
|
Formatting.
Synchronizing docs.
|
|
97b2de58
|
2000-07-10T00:06:22
|
|
More formatting.
Synchronizing docu in include/freetype with src/base.
|
|
b48a6094
|
2000-07-09T19:15:30
|
|
Formatting.
Moving some internal structures and constants from freetype.h to ftobjs.h.
Finally removing FT_LOAD_ANTI_ALIAS.
Cleaning up all error codes. Only the used ones have survived :-)
Removed unused FT_MAX_GLYPH_FORMATS constant.
T2 error codes are now in the range 0x500-0x5FF (instead of `TrueDoc').
Some minor improvements of error return values.
Finally fixing error code values in ftraster and ftgrays to be compliant
with all other FT error codes.
|
|
7fa51b55
|
2000-07-08T19:51:42
|
|
Formatting.
Adding some trivial error checking.
Adding/Fixing tracing levels.
|
|
a90663f5
|
2000-07-08T00:41:13
|
|
vast clean-up of the sources in order to allow flat
directory compilation (by defining the FT_FLAT_COMPILE
macro at compile time..)
moved "freetype2/BUILD" to "freetype2/docs/BUILD"
|
|
9b3d1c75
|
2000-07-07T19:47:34
|
|
- fixed a leak in the Type 1 driver
- updated the CFF driver to support flex opcodes
|
|
bd5ae400
|
2000-07-05T04:32:02
|
|
Run g++ on the FreeType library. This should make the use of code in
C++ programs easier:
Renamed FT_WordXX to FT_UIntXX.
Changed a lot of void* to FT_Byte* if related to i/o streams -- FreeType
always accesses streams byte-wise, so this makes sense IMHO.
Added a lot of #ifdef __cplusplus to header files (and removed a few).
Other minor syntax fixes (mostly casts).
Replaced the variable `private' with `private_dict' -- `private' is
reserved in C++.
|
|
c6a92202
|
2000-07-04T18:12:13
|
|
various clean-ups:
- using FT_UNUSED instead of UNUSED
- using FT_LONG64 and FT_INT64 instead of LONG64 & INT64
- using FT_SIZEOF_INT & FT_SIZEOF_LONG instead of...
- removed the #ifdefs that used SIZEOF_INT, instead we now
use FT_Int32 and FT_UInt32 when needed to support
32-bits quantity correctly on 64-bits systems..
|
|
aa8c7da0
|
2000-07-04T03:37:18
|
|
Don't use -lefence in the demo Makefile.
Added C++ guards in ftmodule.h
Fix error check in ftglyph.c
Formatting; adding copyrights; fixing documentation
|
|
d18388e4
|
2000-07-03T15:00:49
|
|
fixed a few 64-bit related bugs in "sfnt/ttload.c" and
"base/ftstream.c"
Note that "TT_PCLT" was incorrectly defined in
<freetype/tttables.h>
|
|
5811c7c3
|
2000-07-02T13:53:16
|
|
Formatting.
Fixed some errors which prevented compiling.
|
|
fbeb41d9
|
2000-07-02T00:27:53
|
|
Formatting.
Adding copyright notices.
Removing an unnecessary file (smooth.h).
|
|
a8bbc267
|
2000-07-01T14:06:46
|
|
Formatting as usual...
Adding trivial argument checking to some functions.
Added dynamic driver interface to cidriver.
Minor `version' fixes for macfont and psnames modules.
Removed unnecessary files
|
|
f9ca2bb5
|
2000-06-30T23:12:55
|
|
managed to re-design entirely the API in <freetype/ftglyph.h>
It is now really the "glyph factory" that Stefan was probably
dreaming about..
fixed some recent formatting errors from Werner ;-)
cleaned up the demonstration programs from most of the
rust that they had, though I'm sure someone is going to
re-format them really soon !!
"ftstring" now uses the new ftglyph.h API, and is now
faster and smaller.. yep..
|
|
cc9fc49c
|
2000-06-30T06:21:26
|
|
Formatting...
Applying some fixes from Tom.
|
|
5ae831c1
|
2000-06-30T01:31:22
|
|
changes used to implement the auto-hinting support
|
|
60402683
|
2000-06-29T06:19:07
|
|
small fix in the definition of the convenience functions
|
|
deb4e983
|
2000-06-29T03:14:25
|
|
Formatting...
Preprocessor lines now always start the line.
Improved error handling in `base' module.
Fixed a out-of-bounds error in ttgload.
|
|
81bb4ad9
|
2000-06-28T04:19:49
|
|
latest clean-ups..
The code compiles with NO WARNINGS with GCC and
Visual C++ (also with LCC minus debugging options)
|
|
74abee8e
|
2000-06-27T23:31:53
|
|
various cleanups to reduce compiler warnings
|
|
dcd2e14c
|
2000-06-25T07:43:15
|
|
forgotten fixes.
|
|
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
|