suzuki toshiya
cf37b538d8
pcf: Improve PCF_PropertyRec.value names on LP64 platforms.
16 years ago
suzuki toshiya
902cff743d
pcf: Fix some data types mismatching with their sources.
16 years ago
suzuki toshiya
2d7050ec80
bdf: Improve bdf_property_t.value names for LP64 platforms.
16 years ago
suzuki toshiya
436db93a58
bdf: Fix some data types mismatching with their sources.
16 years ago
suzuki toshiya
20be5c0b58
autofit: Improve Unicode range definitions.
16 years ago
suzuki toshiya
bdf8399ef7
smooth: Fix a data type mismatching with its source.
16 years ago
suzuki toshiya
d03e2f981f
smooth: Fix a data type mismatching with its source.
16 years ago
suzuki toshiya
0102bb6fe6
cache: Disable the legacy compatibility if 16-bit system.
16 years ago
suzuki toshiya
b9d2a0e2ad
cache: Check 32-bit glyph index on 16-bit systems.
16 years ago
suzuki toshiya
d7c0e4bef1
cache: Fix some data types mismatching with their sources.
16 years ago
suzuki toshiya
12742fd35a
cache: Fix some data types mismatching with their sources.
16 years ago
suzuki toshiya
6867d87ca8
cache: Cast NULL to a required function type explicitly.
16 years ago
suzuki toshiya
9f8e1eff87
psnames: Handle Unicode codepoints by FT_UInt32 variables.
16 years ago
suzuki toshiya
2cd993da4d
psaux: Use size_t variable to pass the buffer size.
16 years ago
suzuki toshiya
da874016eb
type1: Use size_t variable to pass the string length.
16 years ago
suzuki toshiya
3fb76769ed
cid: Fix some data types mismatching with their sources.
16 years ago
suzuki toshiya
8f357a2e2e
cff: Fix for unused variable `rest'.
16 years ago
suzuki toshiya
c1608d1257
cff: Fix some data types mismatching with their sources.
16 years ago
suzuki toshiya
328a0cc745
bdf: Fix some data types mismatching with their sources.
16 years ago
suzuki toshiya
b06e906ec2
sfnt: Count the size of the memory object by ptrdiff_t.
16 years ago
suzuki toshiya
2680780884
lzw: Count the size of the memory object by ptrdiff_t.
16 years ago
suzuki toshiya
351d3c9682
otvalid: Count the table size on memory by ptrdiff_t.
16 years ago
suzuki toshiya
d5337b8965
otvalid: Prevent an overflow by GPOS/GSUB 32b-bit offset.
16 years ago
suzuki toshiya
4053559b19
ftobjs.c: Prevent an overflow in glyph index handling.
16 years ago
suzuki toshiya
4b431ddca8
Improve the variable types in raccess_make_file_name().
16 years ago
suzuki toshiya
ab888c9c87
ftpatent.c: Fix for unused variable `error'.
16 years ago
suzuki toshiya
f23aef3f09
type1: Check invalid string longer than PostScript limit.
16 years ago
suzuki toshiya
848dbd9840
gzip: Use FT2 zcalloc() & zfree() in ftgzip.c by default.
16 years ago
suzuki toshiya
4f9802468e
gzip: Distinguish PureC from TurboC on MSDOS.
16 years ago
suzuki toshiya
db4a2afc5f
gxvalid: Pass the union by the pointer instead of the value.
16 years ago
suzuki toshiya
ad289d139f
ftpatent: Fix a bug by wrong usage of service->table_info().
16 years ago
Werner Lemberg
24370d67f5
Uff, another thinko.
16 years ago
Werner Lemberg
e7389a4405
[psaux, cff] Protect against nested `seac' calls.
...
* include/freetype/internal/psaux.h (T1_Decoder), src/cff/cffgload.h
(CFF_Decoder): Add `seac' boolean variable.
* src/cff/cffgload.c (cff_operator_seac,
cff_decoder_parse_charstrings), src/psaux/t1decode.c
(t1operator_seac, t1_decoder_parse_charstrings): Use it.
16 years ago
Werner Lemberg
6bb34880e8
Thinko.
...
* src/psaux/t1decode.c (t1operator_seac)
[FT_CONFIG_OPTION_INCREMENTAL]: Test for existence of incremental
interface.
16 years ago
Werner Lemberg
610cddcac4
[truetype] Remove TT_SubGlyphRec.
...
* src/truetype/ttobjs.h (TT_SubGlyphRec): Removed, unused.
16 years ago
Werner Lemberg
858abbedc0
For warning messages, replace FT_ERROR with FT_TRACE0.
...
FT_ERROR is now used only if a function produces a non-zero `error'
value.
Formatting, improving and harmonizing debug strings.
16 years ago
Werner Lemberg
e15d9c52bc
Formatting etc.
16 years ago
Werner Lemberg
777d6d59ed
Provide version information better.
...
* src/base/ftinit.c (FT_Init_FreeType): Don't set version here
but...
* src/base/ftobjs.c (FT_New_Library): Here.
16 years ago
Werner Lemberg
1e8bf5831a
Thinko.
16 years ago
Werner Lemberg
11cb8c36ed
Use 16.16 format while parsing Type 1 charstrings.
...
This fixes Savannah bug #26867 .
Previously, only integers have been used which can lead to serious
rounding errors.
However, fractional values are only used internally; after the
charstrings (of either Type 1 or 2) have been processed, the
resulting coordinates get rounded to integers currently -- before
applying scaling. This should be fixed; at the same time a new load
flag should be introduced, to be used in combination with
FT_LOAD_NO_SCALE, which indicates that font units are returned in
16.16 format. Similarly, the incremental interface should be
extended to allow fractional values for metrics.
* include/freetype/internal/psaux.h (T1_BuilderRec): Remove `shift'
field.
* include/freetype/internal/pshints.h (T1_Hints_SetStemFunc,
T1_Hints_SetStem3Func): Use FT_Fixed for coordinates.
* src/psaux/psobjs.c: Include FT_INTERNAL_CALC_H.
(t1_build_add_point): Always convert fixed to integer.
* src/psaux/t1decode.c (t1_decoder_parse_charstrings):
Use 16.16 format everywhere (except for large integers followed by a
`div').
[CAN_HANDLE_NON_INTEGRAL_T1_OPERANDS]: Remove #ifdef and activate
code uncoditionally.
Add support for random numbers and update remaining code
accordingly; this should work now.
(t1_operator_seac): Updated.
* src/psaux/pshrec.c: Include FT_INTERNAL_CALC_H.
(ps_hints_t1stem3, t1_hints_stem): Updated.
* src/cid/cidgload.c: Include FT_INTERNAL_CALC_H.
(cid_load_glyph) [FT_CONFIG_OPTION_INCREMENTAL],
(cid_face_compute_max_advance, cid_slot_load_glyph): Updated.
* src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String)
[FT_CONFIG_OPTION_INCREMENTAL], (T1_Get_Advances, T1_Load_Glyph):
Updated.
* src/type1/t1load.c: Include FT_INTERNAL_CALC_H.
* src/type1/t1objs.c (T1_Face_Init): Updated.
16 years ago
Werner Lemberg
df9cd975d3
src/pshinter/pshrec.c: Use PSH_Err_Ok.
16 years ago
Werner Lemberg
f79df78a53
Code beautification.
...
* src/type1/t1load.c (FT_INT_TO_FIXED): Removed.
Replace everywhere with INT_TO_FIXED.
(FT_FIXED_TO_INT): Move to ...
* include/freetype/internal/ftcalc.h (FIXED_TO_INT): Here.
Update all users.
16 years ago
Werner Lemberg
96d389835a
Remove useless code.
16 years ago
Werner Lemberg
1f540eff0b
Remove unused variables.
...
* include/freetype/internal/psaux.h (T1_BuilderRec),
src/cff/cffgload.h (CFF_Builder): Remove `last'.
Update all users.
16 years ago
Werner Lemberg
41821f8a8a
[psaux] Check large integers while parsing charstrings.
...
* src/psaux/t1decode.c (t1_decoder_parse_charstrings): Large
integers must be followed by a `div' operator.
16 years ago
Werner Lemberg
541ab5adda
[cff] Revert last change.
...
* src/cff/cffgload.c (cff_decoder_parse_charstrings): Do it.
Next time, don't confuse Type 2 charstring opcodes with TOP DICT
values...
16 years ago
Werner Lemberg
b34c9b49cc
aflatin.c: Fix compiler warning.
16 years ago
Werner Lemberg
f1631f2db0
[cff] Fix handling of reserved byte 0xFF.
...
* src/cff/cffgload.c (cff_decoder_parse_charstrings): Abort if byte
0xFF is encountered.
16 years ago
Werner Lemberg
86fa2ebc1f
Improve debug messages for Type1 charstrings.
...
* src/psaux/t1decode.c (t1_decoder_parse_charstrings): Emit newlines
after instructions.
Prettify output.
16 years ago
Werner Lemberg
d1862d227c
More ftgray fixes for FT_STATIC_RASTER.
...
Problems reported by suyu@cooee.cn .
* src/smooth/ftgrays.c (gray_move_to, gray_raster_render): Use
RAS_VAR.
16 years ago