Werner Lemberg
ceed93e328
[psaux] Fix handling of track kerning.
...
* src/psaux/afmparse.c (afm_parse_track_kern): Don't inverse sign
for `min_kern'. It is indeed quite common that track kerning
*increases* spacing for very small sizes.
13 years ago
Werner Lemberg
0fc8debeb6
[truetype] Fix Savannah bug #35689 .
...
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Check first outline
point.
13 years ago
Werner Lemberg
6ac022dc75
[bdf] Fix Savannah bug #35656 .
...
* src/bdf/bdflib.c (_bdf_parse_glyphs) <_BDF_BITMAP>: Check validity
of nibble characters instead of accessing `a2i' array.
13 years ago
Werner Lemberg
7d35a7dc7c
[winfonts] Fix Savannah bug #35659 .
...
* src/winfonts/winfnt.c (FNT_Face_Init): Check number of glyphs.
13 years ago
Werner Lemberg
d9c1659610
[bdf] Fix Savannah bug #35658 .
...
* src/bdf/bdflib.c (_bdf_list_split): Initialize `field' elements
properly.
13 years ago
Werner Lemberg
292144b44a
[psaux] Fix Savannah bug #35657 .
...
If in function `skip_spaces' the routine `skip_comment' comes to the
end of buffer, `cur' is still increased by one, so we need to check
for `p >= limit' and not `p == limit'.
* src/psaux/psconv.c (PS_Conv_Strtol, PS_Conv_ToFixed,
PS_Conv_ASCIIHexDecode, PS_Conv_EexecDecode): Fix boundary checking.
13 years ago
Werner Lemberg
a33c013fe2
[truetype] Fix Savannah bug #35646 .
...
* src/truetype/ttinterp.c (Ins_MIRP): Typo, present since ages. The
code is now in sync with the other operators (e.g. MSIRP) which
modify twilight points.
13 years ago
Werner Lemberg
cee5d59358
[bdf] Fix Savannah bug #35643 .
...
* src/bdf/bdflib.c (_bdf_list_ensure): Bring code in sync with
comment before `_bdf_list_split', this is, really allocate at least
five `field' elements.
13 years ago
Werner Lemberg
4086fb7caf
[bdf] Fix Savannah bug #35641 .
...
* src/bdf/bdflib.c (_bdf_parse_glyphs) <DWIDTH, BBX>: Abort if
_BDF_ENCODING isn't set. We need this because access to the `glyph'
variable might be undefined otherwise.
13 years ago
Werner Lemberg
5dddcc45a0
[truetype] Fix Savannah bug #35640 .
...
* src/truetype/ttinterp.c (SkipCode, TT_RunIns): Fix boundary check
for NPUSHB and NPUSHW instructions.
13 years ago
Werner Lemberg
96cddb8d1d
[truetype] Fix Savannah bug #35601 .
...
* src/truetype/ttinterp.c (Ins_SHZ): Use number of points instead of
last point for loop.
Also remove redundant boundary check.
13 years ago
Werner Lemberg
9290fa9022
[truetype] Remove redundant check.
...
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Remove reduntant
second check for ordered contour start points.
13 years ago
Werner Lemberg
9eacbb81bd
[truetype] Make SHC instruction behave similar to MS rasterizer.
...
* src/truetype/ttinterp.c (Ins_SHC): Handle virtual contour in
twilight zone.
13 years ago
Werner Lemberg
d74285d1dc
[truetype] Improve comments.
13 years ago
Alexei Podtelezhnikov
b25265c5e4
Avoid modulo operators against a power-of-two denominator.
...
* src/afcjk.c (af_hint_normal_stem), src/base/ftoutln.c
(ft_contour_has), src/cff/cffgload.c (cff_decoder_parse_charstrings)
<cff_op_vvcurveto, cff_op_hhcurveto, cff_op_hvcurveto>,
src/gxvalid/gxvcommn.c (GXV_32BIT_ALIGNMENT_VALIDATE),
src/gxvalid/gxvfeat.c (gxv_feat_setting_validate): Replace `%' with
`&' operator.
13 years ago
Werner Lemberg
5621fdd412
[autofit] Don't synchronize digit widths for light rendering mode.
...
We don't hint horizontally in this mode.
* src/autofit/afloader.c (af_loader_load_g) <Hint_Metrics>:
Implement it.
13 years ago
Alexei Podtelezhnikov
c18c1882c2
[type42] Minor code optimization (again).
...
* src/type42/t42parse.c (t42_parse_sfnts): Simplify previous change.
13 years ago
Werner Lemberg
fcbc82e69e
[smooth] Fix Savannah bug #35604 .
...
* src/smooth/ftsmooth.c (ft_smooth_render_generic): Use `FT_Pos'
instead of `FT_UInt' for some variables and update comparisons
accordingly. A detailed analysis can be found in the bug report.
13 years ago
Werner Lemberg
c42848e6d9
[type42] Minor code optimization.
...
* src/type42/t42parse.c (t42_parse_sfnts): Use bitmask instead of
modulo operator.
13 years ago
Werner Lemberg
22fff25385
Whitespace.
13 years ago
Werner Lemberg
bd63334ee7
* docs/CHANGES: Updated.
13 years ago
Werner Lemberg
d9577add64
[type1] Fix Savannah bug #35608 .
...
* src/type1/t1parse.c (T1_Get_Private_Dict): Reject too short
dictionaries.
13 years ago
Werner Lemberg
03242f58c4
[bdf] Support `ENCODING -1 <n>' format.
...
* src/bdf/bdflib.c (_bdf_parse_glyphs) <ENCODING>: Implement it.
13 years ago
Werner Lemberg
28dd2c4595
[bdf] Fix Savannah bug #35607 .
...
* src/bdf/bdflib.c (_bdf_parse_glyphs) <ENCODING>: Normalize
negative encoding values.
13 years ago
Werner Lemberg
58cbc465d2
[type1] Fix Savannah bug #35606 .
...
* src/type1/t1load.c (parse_subrs): Add proper guards for `strncmp'.
* src/psaux/psobjs.c (ps_parser_skip_PS_token): Emit error message
only if cur < limit.
13 years ago
Werner Lemberg
c776fc17bf
[pcf] Fix Savannah bug #35603 .
...
* src/pcf/pcfread.c (pcf_get_properties): Assure final zero byte in
`strings' array.
13 years ago
Werner Lemberg
82365c0dea
[type42] Fix Savannah bug #35602 .
...
* src/type42/t42parse.c (t42_parse_sfnts): Check `string_size' more
thoroughly.
13 years ago
Werner Lemberg
0b1c0c6b20
[bdf] Fix Savannah bugs #35599 and #35600 .
...
* src/bdf/bdflib.c (ACMSG16): New warning message.
(_bdf_parse_glyphs) <_BDF_BITMAP>: Check line length.
13 years ago
Werner Lemberg
320d4976d1
[bdf] Fix Savannah bugs #35597 and #35598 .
...
* src/bdf/bdflib.c (_bdf_is_atom): Fix handling of property value.
13 years ago
Werner Lemberg
6b5b6f39e7
Prepare source code for amalgamation (6/6).
...
* src/cff/cffdrivr.c: s/Load_Glyph/cff_glyph_load/.
* src/cid/cidload.c: s/parse_font_matrix/cid_parse_font_matrix/.
s/t1_init_loader/cid_init_loader/.
s/t1_done_loader/cid_done_loader/.
* src/pxaux/t1cmap.c: s/t1_get_glyph_name/psaux_get_glyph_name/.
* src/truetype/ttdriver.c: s/Load_Glyph/tt_glyph_load/.
* src/type1/t1load.c: s/parse_font_matrix/t1_parse_font_matrix/.
13 years ago
Werner Lemberg
1b99d0a01c
Prepare source code for amalgamation (5/6).
...
* include/freetype/fterrors.h: Undefine FT_KEEP_ERR_PREFIX after
using it.
13 years ago
Vinnie Falco
9511143385
Prepare source code for amalgamation (4/6).
...
* src/smooth/ftgrays.c, src/raster/ftraster.c: Undefine RAS_ARG,
RAS_ARGS, RAS_VAR, and RAS_VARS before defining it.
* src/smooth/ftgrays.c: s/TRaster/black_TRaster/,
s/PRaster/black_PRaster/.
* src/raster/ftraster.c: s/TRaster/gray_TRaster/,
s/PRaster/gray_PRaster/.
13 years ago
Vinnie Falco
d55f16df11
Prepare source code for amalgamation (3/6).
...
* src/smooth/ftgrays.c: s/TWorker/black_TWorker/,
s/PWorker/black_PWorker/.
* src/raster/ftraster.c: s/TWorker/gray_TWorker/,
s/PWorker/gray_PWorker/
13 years ago
Vinnie Falco
5ccebc4e1e
Prepare source code for amalgamation (2/6).
...
* src/smooth/ftgrays.c, src/raster/ftraster.c: Undefine FLOOR,
CEILING, TRUNC, and SCALED before defining it.
13 years ago
Vinnie Falco
126405adde
Prepare source code for amalgamation (1/6).
...
See discussion starting at
http://lists.gnu.org/archive/html/freetype-devel/2012-01/msg00037.html
* src/smooth/ftgrays.c: s/TBand/gray_TBand/.
* src/raster/ftraster.c: s/TBand/black_TBand/.
13 years ago
Werner Lemberg
634867898b
[autofit] Fix outline flags.
...
* src/autofit/afloader.c (af_loader_load_g): Don't reassign
`outline.flags' so that this information is preserved. See
discussion starting at
http://lists.gnu.org/archive/html/freetype-devel/2012-02/msg00046.html
13 years ago
Werner Lemberg
2536862d41
Improve description of FT_LOAD_PEDANTIC.
13 years ago
Werner Lemberg
b4e06818ed
[truetype] Fix Savannah bug #35466 .
...
Jump instructions are now bound to the current function. The MS
Windows rasterizer behaves the same, as confirmed by Greg Hitchcock.
* src/truetype/ttinterp.h (TT_CallRec): Add `Cur_End' element.
* src/truetype/ttobjs.h (TT_DefRecord): Add `end' element.
* src/truetype/ttinterp.c (DO_JROT, DO_JMPR, DO_JROF): Check upper
bound of jump address.
(Ins_FDEF, Ins_CALL, Ins_LOOPCALL, Ins_UNKNOWN, TT_RunIns): Updated.
13 years ago
Werner Lemberg
185606a64d
We don't use `extensions'.
...
* include/freetype/internal/ftobjs.h (FT_DriverRec): Remove
`extensions' field.
13 years ago
Werner Lemberg
f24d0793f1
Clean up `generic' fields.
...
* include/freetype/internal/ftobjs.h (FT_ModuleRec, FT_LibraryRec):
Remove `generic' field since users can't access it.
* src/base/ftobjs.c (FT_Done_GlyphSlot): Call `generic.finalizer' as
advertised in the documentation of FT_Generic.
(Destroy_Module, FT_Done_Library): Updated to changes in `ftobjs.h'.
13 years ago
Werner Lemberg
02c0e526b2
Formatting.
13 years ago
Werner Lemberg
e343e87d4f
[autofit] Harmonize function arguments.
...
* src/autofit/afloader.c, src/autofit/afloader.h: Use `FT_Int32' for
`load_flags'.
13 years ago
Werner Lemberg
0b7daff031
* src/cff/cffobjs.c (cff_face_init): Remove unnecessary casts.
13 years ago
Werner Lemberg
3933334039
Formatting, whitespace.
13 years ago
Werner Lemberg
0ef4b83749
Formatting.
13 years ago
Werner Lemberg
25a3f56f58
Fix copyright year.
13 years ago
Werner Lemberg
12291284e4
Whitespace.
13 years ago
Werner Lemberg
b178b6f8d7
Formatting.
13 years ago
Werner Lemberg
3e0be75b4b
Cosmetics.
13 years ago
Werner Lemberg
8c1724d675
[configure] Fix minor grammar nits.
13 years ago