Werner Lemberg
f8ba2005ab
* include/freetype/t1tables.h (t1_blend_max): Fix typo.
...
* src/base/ftstream.c: Simplify FT_ERROR calls.
formatting, copyright update
2002-03-30 13:16:35 +00:00
David Turner
e459d742e6
* include/freetype/internal/ftmemory.h, and a lot of other files !!:
...
changed the names of memory macros. Examples:
MEM_Set => FT_MEM_SET
MEM_Copy => FT_MEM_COPY
MEM_Move => FT_MEM_MOVE
ALLOC => FT_ALLOC
FREE => FT_FREE
REALLOC = >FT_REALLOC
FT_NEW was introduced to allocate a new object from a _typed_
pointer..
note that ALLOC_ARRAY and REALLOC_ARRAY have been replaced
by FT_NEW_ARRAY and FT_RENEW_ARRAY which take _typed_ pointer
arguments.
This results in _lots_ of sources being changed, but makes the
code more generic and less error-prone..
2002-03-22 13:52:37 +00:00
David Turner
a890c29cb0
* include/freetype/internal/ftstream.h,
...
src/base/ftstream.c, src/cff/cffload.c, src/pcf/pcfread.c,
src/sfnt/ttcmap.c, src/sfnt/ttcmap0.c, src/sfnt/ttload.c,
src/sfnt/ttpost.c, src/sfnt/ttsbit.c,
src/truetype/ttgload.c, src/truetype/ttpload.c,
src/winfonts/winfnt.c:
changed the definitions of stream macros. Examples:
NEXT_Byte => FT_NEXT_BYTE
NEXT_Short => FT_NEXT_SHORT
NEXT_UShortLE => FT_NEXT_USHORT_LE
READ_Short => FT_READ_SHORT
GET_Long => FT_GET_LONG
etc..
also introduced the FT_PEEK_XXXX functions..
2002-03-22 12:55:23 +00:00
David Turner
7d3a26425b
* renaming stream macros. Examples:
...
FILE_Skip => FT_STREAM_SKIP
FILE_Read => FT_STREAM_READ
ACCESS_Frame => FT_FRAME_ENTER
FORGET_Frame => FT_FRAME_EXIT
etc...
2002-03-20 10:49:31 +00:00
Werner Lemberg
0d9165e1d6
* src/base/ftdbgmem.c (ft_mem_table_resize, ft_mem_table_new,
...
ft_mem_table_set, ft_mem_debug_alloc, ft_mem_debug_free,
ft_mem_debug_realloc, ft_mem_debug_done, FT_Alloc_Debug,
FT_Realloc_Debug, FT_Free_Debug): Fix compiler warnings.
* src/base/ftcalc.c (FT_MulFix): Ditto.
* src/cff/cffdrivr.c (cff_get_name_index): Ditto.
* src/cff/cffobjs.c (CFF_Size_Get_Global_Funcs, CFF_Size_Init,
CFF_GlyphSlot_Init): Ditto.
* src/cid/cidobjs.c (CID_GlyphSlot_Init,
CID_Size_Get_Globals_Funcs): Ditto.
* src/type1/t1objs.c (T1_Size_Get_Globals_Funcs, T1_GlyphSlot_Init):
Ditto.
* src/pshinter/pshmod.c (pshinter_interface): Use `static const'.
* src/winfonts/winfnt.c (FNT_Get_Next_Char): Remove unused
variables.
* include/freetype/internal/psaux.h (T1_Builder_Funcs): Renamed
to...
(T1_Builder_FuncsRec): This.
(T1_Builder_Funcs): New typedef.
(PSAux_Interface): Remove compiler warnings.
* src/psaux/psauxmod.c (t1_builder_funcs), src/psaux/psobjs.h
(t1_builder_funcs): Updated.
* src/pshinter/pshglob.h (PSH_Blue_Align): Replaced with ...
(PSH_BLUE_ALIGN_{NONE,TOP,BOT}): New defines.
(PSH_AlignmentRec): Updated.
* include/freetype/internal/ftstream.h (GET_Char, GET_Byte): Fix
typo.
* include/freetype/internal/ftgloadr.h (FT_SubGlyph): Ditto.
* src/base/ftstream (FT_Get_Char): Rename to...
(FT_Stream_Get_Char): This.
* src/base/ftnames.c (FT_Get_Sfnt_Name): s/index/idx/ -- `index' is
a built-in function in gcc, causing warning messages with gcc 3.0.
* src/autohint/ahglyph.c (ah_outline_load): Ditto.
* src/autohint/ahglobal.c (ah_hinter_compute_blues): Ditto.
* src/cache/ftcmanag.c (ftc_family_table_alloc,
ftc_family_table_free, FTC_Manager_Done, FTC_Manager_Register_Cache):
Ditto.
* src/cff/cffload.c (cff_new_index, cff_done_index,
cff_explicit_index, CFF_Access_Element, CFF_Forget_Element,
CFF_Get_Name, CFF_Get_String, CFF_Load_SubFont, CFF_Load_Font,
CFF_Done_Font): Ditto.
* src/psaux/psobjs.c (PS_Table_Add, PS_Parser_LoadField): Ditto.
* src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Ditto.
* src/pshinter/pshrec.c (ps_mask_test_bit, ps_mask_clear_bit,
ps_mask_set_bit, ps_dimension_add_t1stem, ps_hints_t1stem3,
* src/pshinter/pshalgo1.c (psh1_hint_table_record,
psh1_hint_table_record_mask, psh1_hint_table_activate_mask): Ditto.
* src/pshinter/pshalgo2.c (psh2_hint_table_record,
psh2_hint_table_record_mask, psh2_hint_table_activate_mask): Ditto.
* src/sfnt/ttpost.c (Load_Format_20, Load_Format_25,
TT_Get_PS_Name): Ditto.
* src/truetype/ttgload.c (TT_Get_Metrics, Get_HMetrics,
load_truetype_glyph): Ditto.
* src/type1/t1load.c (parse_subrs, T1_Open_Face): Ditto.
* src/type1/t1afm.c (T1_Get_Kerning): Ditto.
* include/freetype/cache/ftcmanag.h (ftc_family_table_free): Ditto.
2002-03-07 21:59:59 +00:00
David Turner
53b3fa1da5
* renaming stream functions to the FT_Subject_Action scheme:
...
FT_Seek_Stream => FT_Stream_Seek
FT_Skip_Stream => FT_Stream_Skip
FT_Read_Stream => FT_Stream_Read
FT_Read_Stream_At => FT_Stream_Read_At
FT_Access_Frame => FT_Stream_Enter_Frame
FT_Forget_Frame => FT_Stream_Exit_Frame
FT_Extract_Frame => FT_Stream_Extract_Frame
FT_Release_Frame => FT_Stream_Release_Frame
FT_Get_XXXX => FT_Stream_Get_XXXX
FT_Read_XXXX => FT_Stream_Read_XXXX
note also that:
FT_New_Stream( filename, stream ) =>
FT_Stream_Open( stream, filename )
(the function doesn't create the FT_Stream structure, it simply
initializes it for reading)
FT_New_Memory_Stream( library, FT_Byte* base, size, stream ) =>
FT_Stream_Open_Memory( stream, const FT_Byte* base, size )
FT_Done_Stream => FT_Stream_Close
note that the name of the stream methods, defined in
"include/freetype/ftsystem.h" have also been changed without
problems:
FT_Stream_IO => FT_Stream_IOFunc
FT_Stream_Close => FT_Stream_CloseFunc
2002-02-24 05:26:57 +00:00
David Turner
222cec8c20
* include/freetype/internal/ftdebug.h, src/base/ftdebug.c: modified
...
the debug sub-system initialization. trace levels can now be specified
within the "FT2_DEBUG" environment variable. See the comments within
"ftdebug.c" for more details
* include/freetype/internal/fttrace.h: new file to define the trace
levels used for debugging. it is used both to define enums and
toggle names for FT2_DEBUG
* src/base/ftobjs.c, src/base/ftstream.c: FT_Assert renamed to
FT_ASSERT
* include/freetype/internal/ftextend.h, src/base/ftextend.c,
src/base/Jamfile, src/base/rules.mk: removing "ftextend" from the
library, since it is now completely obsolete..
2002-02-21 11:48:48 +00:00
Werner Lemberg
415235df1b
finishing function header formatting
...
updating copyrights
2001-06-28 17:49:10 +00:00
Werner Lemberg
f814d0fafe
First round in converting
...
type foo ( ... )
to
type
foo ( ... )
Other minor formatting issues.
2001-06-27 16:18:10 +00:00
Werner Lemberg
8eb0353fec
Formatting.
2001-06-19 23:03:41 +00:00
David Turner
8edbcabce1
- updated doc for FT_New_Memory_Face
...
- removed lots of compiler warnings in lint-style
warning modes (/W4 with Visual C++)
2001-06-19 08:28:24 +00:00
Werner Lemberg
cc069beb2d
cleanups
2000-12-08 16:17:16 +00:00
David Turner
19ed8afe60
- 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
2000-12-08 02:42:29 +00:00
Werner Lemberg
8ec9dfd991
Moving doc comments for BASE functions from source to header files.
2000-11-07 23:56:02 +00:00
Werner Lemberg
dc72aff43d
Finishing David's latest changes (there were some errors in it).
2000-11-04 08:33:38 +00:00
David Turner
76a5f62323
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
2000-11-04 01:55:49 +00:00
Werner Lemberg
8bb45ec8fb
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.
2000-09-29 06:41:56 +00:00
David Turner
e12e313a04
a small optimisation that should speed things a bit.
...
I'm surprised I didn't do it before..
2000-08-29 16:03:28 +00:00
Werner Lemberg
e72c9fec17
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.
2000-07-31 18:59:02 +00:00
Werner Lemberg
7fa51b5535
Formatting.
...
Adding some trivial error checking.
Adding/Fixing tracing levels.
2000-07-08 19:51:42 +00:00
David Turner
9b3d1c75ad
- fixed a leak in the Type 1 driver
...
- updated the CFF driver to support flex opcodes
2000-07-07 19:47:34 +00:00
Werner Lemberg
bd5ae40006
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++.
2000-07-05 04:32:02 +00:00
David Turner
c6a92202c2
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..
2000-07-04 18:12:13 +00:00
Werner Lemberg
aa8c7da0bf
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
2000-07-04 03:37:18 +00:00
David Turner
d18388e44b
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>
2000-07-03 15:00:49 +00:00
Werner Lemberg
deb4e98396
Formatting...
...
Preprocessor lines now always start the line.
Improved error handling in `base' module.
Fixed a out-of-bounds error in ttgload.
2000-06-29 03:14:25 +00:00
David Turner
81bb4ad937
latest clean-ups..
...
The code compiles with NO WARNINGS with GCC and
Visual C++ (also with LCC minus debugging options)
2000-06-28 04:19:49 +00:00
Werner Lemberg
61bd4b9dd1
Added FT_FRAME_SKIP_xxx to skip fields.
...
More use of READ_Fields() in ttsbit.c
Other minor fixes.
2000-06-07 00:00:08 +00:00
Werner Lemberg
1c0d4acb25
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
2000-06-06 20:41:48 +00:00
Werner Lemberg
4e6dd8587e
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.
2000-06-05 05:26:15 +00:00
Werner Lemberg
eb81e37825
More preparation for tracing. Formatting.
2000-06-03 06:03:11 +00:00
Werner Lemberg
9a754ce32b
Formatting; adding some tracing code.
2000-06-02 21:31:32 +00:00
Werner Lemberg
91e52d416a
Finishing first formatting/documenting etc. of the `base' dir. Some modules
...
are still badly documented, though...
2000-06-02 14:30:38 +00:00
David Turner
2e421319fc
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..
2000-05-26 22:13:17 +00:00
David Turner
e49ab25c08
formatting - removed trailing spaces
2000-05-16 23:44:38 +00:00
David Turner
bfe2f98f1f
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..
2000-05-12 12:17:15 +00:00
David Turner
efce08d67c
major re-organisation of the FreeType 2 directory hierarchy
2000-05-11 18:23:52 +00:00
David Turner
33ec7d473b
removed an over-zealous assertation that halted the engine
...
with a few weird fonts.
2000-05-02 10:51:04 +00:00
Just van Rossum
59d8ac4615
formatting: some tabs replaced by spaces
2000-03-05 15:59:09 +00:00
David Turner
818336fdf4
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 :-)
2000-02-13 13:36:53 +00:00
David Turner
fdc225b153
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)
2000-01-17 11:21:49 +00:00
Werner Lemberg
7880dd6630
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.
2000-01-10 17:19:45 +00:00
David Turner
d2b1f35704
Initial revision
1999-12-16 23:11:37 +00:00