summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* * include/freetype/ftimage.h (FT_Outline_MoveToFunc,Werner Lemberg2005-06-044-25/+34
| | | | | | | | FT_Outline_LineToFunc, FT_Outline_ConicToFunc, FT_Outline_CubicToFunc, FT_Raster_RenderFunc), include/freetype/ftrender.h (FT_Glyph_TransformFunc, FT_Renderer_RenderFunc, FT_Renderer_TransformFunc): Don't use `const' to stay compatible with FreeType 2.1.9.
* typos.Werner Lemberg2005-06-021-3/+3
|
* Mention that the otvalid module might be moved to another library.Werner Lemberg2005-06-022-1/+16
|
* * src/base/ftstroke.c (ft_stroker_inside): Revert `sigma' patch fromWerner Lemberg2005-06-012-3/+10
| | | | | 2004-07-11; this gives much better results under normal circumstances.
* * include/freetype/ftbitmap.h (FT_Bitmap_Embolden): MinorWerner Lemberg2005-05-304-13/+50
| | | | | | | | | | | documentation improvements. * include/freetype/ftoutln.h (FT_Outline_Embolden): Fix typos. * src/base/ftbitmap.c (FT_Bitmap_Embolden): Add support for bitmap of pixel_mode FT_PIXEL_MODE_GRAY2 or FT_PIXEL_MODE_GRAY4. If xstr is larger than 8 and bitmap is of pixel_mode FT_PIXEL_MODE_MONO, set xstr to 8 instead of returning error.
* * src/base/ftbitmap.c (FT_Bitmap_Embolden): Fix emboldening bitmapWerner Lemberg2005-05-302-11/+47
| | | | | | | | | | | | of mode FT_PIXEL_MODE_GRAY. Also add support for mode FT_PIXEL_MODE_LCD and FT_PIXEL_MODE_LCD_V. (ft_bitmap_assure_buffer): FT_PIXEL_MODE_LCD and FT_PIXEL_MODE_LCD_V should have ppb (pixel per byte) 1. Zero the padding when there's no need to allocate memory. * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Handle slot->advance too. More suited emboldening strength.
* *** empty log message ***Werner Lemberg2005-05-301-0/+13
|
* * src/base/ftbitmap.c (FT_Bitmap_Embolden): Handle negative pitch.Werner Lemberg2005-05-282-3/+27
| | | | | | | Handle FT_PIXEL_MODE_GRAY with num_gray != 256. Improve speed for FT_PIXEL_MODE_GRAY. (ft_bitmap_assure_buffer): Accept FT_PIXEL_MODE_LCD and FT_PIXEL_MODE_LCD_V.
* * src/base/ftobjs.c (ft_cmap_done_internal): New function.Werner Lemberg2005-05-274-11/+65
| | | | | | (FT_CMap_Done): Remove cmap from cmap list. (destroy_charmaps, FT_CMap_New): Don't call FT_CMap_Done but ft_cmap_done_internal.
* * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Initialize `error'.Werner Lemberg2005-05-272-2/+6
|
* * docs/GPL.txt: Update postal address of FSF.Werner Lemberg2005-05-264-17/+48
| | | | | | | | | * include/freetype/ftbitmap.h (FT_Bitmap_Embolden): Improve documentation. * src/base/ftsynth.c (FT_BOLD_THRESHOLD): Removed. (FT_GlyphSlot_Embolden): Check whether slot is bitmap owner. Always modify the metrics.
* * docs/CHANGES: Updated.Werner Lemberg2005-05-257-80/+398
| | | | | | | | | | | | | | | | | * include/freetype/ftbitmap.h (FT_Bitmap_Embolden): New declaration. * include/freetype/ftoutln.h (FT_Outline_Embolden): New declaration. * src/base/ftbitmap.c (ft_bitmap_assure_buffer): New auxiliary function. (FT_Bitmap_Embolden): New function. * src/base/ftoutln.c (FT_Outline_Embolden): New function. * src/base/ftsynth.c: Don't include FT_INTERNAL_CALC_H and FT_TRIGONOMETRY_H but FT_BITMAP_H. (FT_GlyphSlot_Embolden): Use FT_Outline_Embolden or FT_Bitmap_Embolden.
* * README.CVS: Mention file permissions.Werner Lemberg2005-05-242-4/+11
|
* * configure: Always remove config.mk, builds/unix/unix-def.mk, andWerner Lemberg2005-05-242-6/+9
| | | | | builds/unix/unix-cc.mk. This fixes repeated calls of the script. Reported by Nelson Beebe and Behdad Esfahbod.
* *** empty log message ***Werner Lemberg2005-05-231-3/+3
|
* * builds/amiga/makefile.os4 (WARNINGS), builds/compiler/gcc-dev.mkWerner Lemberg2005-05-2313-158/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (CFLAGS), builds/compiler/gcc.mk (CFLAGS): Remove -fno-strict-aliasing. Say you have `(Foo*)x' and want to assign, pass, or return it as `(Bar*)'. If you simply say `x' or `(Bar*)x', then the C compiler would warn you that type casting incompatible pointer types breaks strict-aliasing. The solution is to cast to `(void*)' instead which is the generic pointer type, so the compiler knows that it should make no strict-aliasing assumption on `x'. But the problem with `(void*)x' is that seems like in C++, unlike C, `void*' is not a generic pointer type and assigning `void*' to `Bar*' without a cast causes an error. The solution is to cast to `Bar*' too, with `(Bar*)(void*)x' as the result -- this is what the patch does. * include/freetype/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP), include/freetype/cache/ftcmru.h (FTC_MRULIST_LOOKUP_CMP): Remove cast on lvalue, use a temporary pointer instead. Cast temporarily to (void*) to not break strict aliasing. * include/freetype/internal/ftmemory.h (FT_MEM_ALLOC, FT_MEM_REALLOC, FT_MEM_QALLOC, FT_MEM_QREALLOC, FT_MEM_FREE), src/base/ftglyph.c (FT_Glyph_To_Bitmap): Cast temporarily to (void*) to not break strict aliasing. * src/base/ftinit.c (FT_USE_MODULE): Fix wrong type information. * builds/unix/configure.ac (XX_CFLAGS): Remove -fno-strict-aliasing. * src/sfnt/rules.mk (SFNT_DRV_SRC): Don't include ttsbit0.c -- it is currently loaded from ttsbit.c. Other formatting.
* * include/freetype/cache/ftcache.h, src/cache/ftccache.c,David Turner2005-05-234-59/+120
| | | | | src/cache/ftcsbits.c: fixing bug #12213 (incorrect behaviour of the cache sub-system in low-memory conditions).
* * src/base/rules.mk (BASE_SRC): Don't add ftsynth.c here but...Werner Lemberg2005-05-232-2/+7
| | | | (BASE_EXT_SRC): Here.
* * src/base/rules.mk (BASE_SRC): Add ftsynth.c.Werner Lemberg2005-05-222-0/+3
|
* *** empty log message ***Werner Lemberg2005-05-221-2/+19
|
* * src/base/ftrfork.c (raccess_guess_apple_generic): MarkWerner Lemberg2005-05-225-25/+24
| | | | | | | | | | | | | | | `version_number' and `entry_length' as unused. (raccess_guess_linux_double_from_file_name): Remove `memory'. (raccess_make_file_name): Mark `error' as unused. * src/bdf/bdflib.c (_bdf_parse_properties): Remove `memory'. * src/cid/cidobjs.c (cid_face_init): Remove `psnames'. * src/sfnt/sfobjs.c (sfnt_load_face): Remove `memory'. * src/truetype/ttgxvar.c (ft_var_readpackedpoints, ft_var_readpackeddeltas, ft_var_load_avar): Mark `error' as unused.
* * src/base/ftsynth.c (FT_GlyphSlot_Embolden): fixing a bug that producedDavid Turner2005-05-212-8/+12
| | | | unpleasant artefacts when trying to embolden very sharp corners.
* * docs/CHANGES: Updated.Werner Lemberg2005-05-208-97/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/base/ftbitmap.c: Don't include FT_FREETYPE_H and FT_IMAGE_H but FT_BITMAP_H. (FT_Bitmap_Copy): New function (from ftglyph.c). * include/freetype/ftbitmap.h (FT_Bitmap_Copy): New public definition. * src/base/ftglyph.c: Include FT_BITMAP_H. (ft_bitmap_copy): Move to ftbitmap.c. (ft_bitmap_glyph_init): Remove `memory' variable. Create new bitmap object if FT_GLYPH_OWN_BITMAP isn't set. (ft_bitmap_glyph_copy): Use FT_Bitmap_Copy. (ft_bitmap_glyph_done): Use FT_Bitmap_Done. (ft_outline_glyph_init): Use FT_Outline_Copy. * src/base/ftoutln.c (FT_Outline_Copy): Handle source == target. (FT_Outline_Done_Internal): Check for valid `memory' pointer. (FT_Outline_Translate, FT_Outline_Reverse, FT_Outline_Render, FT_Outline_Transform): Check for valid `outline' pointer. * src/base/ftobjs.c (FT_New_GlyphSlot): Prepend glyph slot to face->glyph, otherwise a new second glyph slot cannot be created. (FT_Done_GlyphSlot): Fix memory leak. (FT_Open_Face): Updated -- face->glyph is already managed by FT_New_GlyphSlot. * src/type42/t42objs.c (T42_GlyphSlot_Done): Updated.
* * include/freetype/ftimage.h (FT_Raster_Params),Werner Lemberg2005-05-206-17/+29
| | | | | | | | | | | include/freetype/ftoutln.h (FT_Outline_Translate, FT_Outline_Transform), src/base/ftoutln.c (FT_Outline_Translate, FT_Outline_Transform): Decorate parameters with `const' where appropriate. Update all callers. * src/raster/ftraster.c (ft_black_reset), src/smooth/ftgrays.c (gray_raster_reset): Remove `const' from `pool_base' argument.
* typoWerner Lemberg2005-05-191-1/+1
|
* * src/raster/ftmisc.h: New file. Only needed if ftraster.c isWerner Lemberg2005-05-194-30/+178
| | | | | | | | | | | | | | | | | | | | | | compiled as stand-alone. * src/raster/ftraster.c: Add comment how to compile as stand-alone. s/FT_CONFIG_OPTION_STATIC_RASTER/FT_STATIC_RASTER/. s/TT_STATIC_RASTER/FT_STATIC_RASTER/. [_STANDALONE_]: Include ftimage.h and ftmisc.h. (FT_TRACE1, FT_TRACE6, ft_memset, FT_MEM_ZERO): Define conditionally. (Render_Glyph, Render_Gray_Glyph): Return Raster_Err_None (or Raster_Err_Unsupported). (ft_black_new) [_STANDALONE_]: Fix type of `the_raster'. (ft_black_init, ft_black_reset, ft_black_set_mode, ft_black_render): Use `ras', not `raster'. (ft_black_done): Use FT_UNUSED_RASTER. (Horizontal_Sweep_Init, Horizontal_Sweep_Step, Horizontal_Gray_Sweep_Span): Use FT_UNUSED_RASTER. * docs/CHANGES: Updated.
* * docs/announce: Start updating.Werner Lemberg2005-05-183-3/+14
|
* *** empty log message ***Werner Lemberg2005-05-171-0/+20
|
* * builds/win32/visualc/freetype.vcproj: Updated.Werner Lemberg2005-05-177-820/+776
| | | | | | | | | | | | | | | | | Exclude debug info for `Release' versions to reduce library size. * src/base/ftobjs.c (FT_Open_Face): Make it work as documented, this is, ignore `aface' completely if face_index < 0. Reported by David Osborn <spam@habitualhiatus.com>. * include/freetype/ftimage.h (FT_Outline_MoveToFunc, FT_Outline_LineTo_Func, FT_Outline_ConicToFunc, FT_Outline_CubicToFunc), src/smooth/ftgrays.c (gray_render_conic, gray_render_cubic, gray_move_to, gray_line_to, gray_conic_to, gray_cubic_to, gray_render_span, gray_sweep): Decorate parameters with `const' where appropriate.
* * include/freetype/ftimage.h (FT_Raster_RenderFunc),Werner Lemberg2005-05-119-61/+81
| | | | | | | | | | | | | | | | | | | | | include/freetype/ftrender.h (FT_Glyph_TransformFunc, FT_Renderer_Render_Func, FT_Renderer_TransformFunc), src/base/ftglyph.c (ft_outline_glyph_transform), src/raster/ftrend1.c (ft_raster1_transform, ft_raster1_render), src/smooth/ftgrays.c (FT_Outline_Decompose, gray_raster_render), src/smooth/ftsmooth.c (ft_smooth_transform, ft_smooth_render_generic, ft_smooth_render, ft_smooth_render_lcd, ft_smooth_render_lcd_v): Decorate parameters with `const' where appropriate. * src/raster/ftraster.c (RASTER_RENDER_POOL): Removed. Obsolete. (ft_black_render): Decorate parameters with `const' where appropriate. * src/sfnt/ttcmap.c (tt_cmap4_set_range): Fix typo (FT_PEEK_SHORT -> FT_PEEK_USHORT) which caused crashes. Reported by Ismail Donmez <ismail@kde.org.tr>.
* * include/freetype/internal/ftserv.h (FT_FACE_FIND_GLOBAL_SERVICE)Werner Lemberg2005-05-092-3/+8
| | | | [__cplusplus]: Fix typo.
* Handle unsorted SFNT type 4 cmaps correctly (reported by DirckWerner Lemberg2005-05-0916-199/+237
| | | | | | | | | | | | | | | | | | | Blaskey). * src/sfnt/ttcmap.h (TT_CMap): Add member `unsorted'. * src/sfnt/ttcmac.c: Use SFNT_Err_Ok where appropriate. (tt_cmap0_validate, tt_cmap2_validate, tt_cmap6_validate, tt_cmap8_validate, tt_cmap10_validate, tt_cmap12_validate): Use `FT_Error' as return type. (tt_cmap4_validate): Use `FT_Error' as return type. Return error code for unsorted cmap. (tt_cmap4_char_index, tt_cmap4_char_next): Use old code for unsorted cmaps. (tt_face_build_cmaps): Set `unsorted' variable in cmap. Minor formatting.
* * src/truetype/ttpload.c (tt_face_get_location): Fix typo.Werner Lemberg2005-05-072-2/+6
|
* * src/cff/cffobjs.c (cff_face_init): Set ppem value in topWerner Lemberg2005-05-062-0/+10
| | | | dictionary for SFNT-based CFF.
* Handle malformed `loca' table entries.Werner Lemberg2005-05-053-11/+64
| | | | | | | | | | | | * docs/TODO: Add some bugs which should be fixed. * include/freetype/internal/tttypes.h (TT_FaceRec): Add `glyf_len' element. * src/truetype/ttpload.c (tt_face_load_loca): Get length of `glyf' table. (tt_face_get_location): Fix computation of `asize' for malformed `loca' entries.
* * Jamfile: removing otvalid from the list of compiled modulesDavid Turner2005-05-0117-49/+73
| | | | | | | | | | | * include/freetype/internal/ftserv.h: added compiler pragmas to get rid of annoying warnings with Visual C++ compiler in maximum warning mode * src/autofit/afhints.c, src/autofit/aflatin.c, src/base/ftstroke.c, src/bdf/bdfdrivr.c, src/cache/ftcbasic.c, src/cache/ftccmap.c, src/cache/ftcmanag.c, src/cff/cffload.c, src/cid/cidload.c, src/lzw/zopen.c, src/otvalid/otvgdef.c, src/pcf/pcfread.c, src/sfnt/sfobjs.c, src/truetype/ttgxvar.c: removing compiler warnings
* * docs/TODO: Updated.Werner Lemberg2005-04-282-2/+21
|
* * src/otvalid/otvcommn.cWerner Lemberg2005-04-242-1/+9
| | | | (otv_GSUBGPOS_have_MarkAttachmentType_flag): Handle table == 0.
* * src/cff/cffobjs.c (cff_face_init): Set default upem value in topWerner Lemberg2005-04-184-12/+61
| | | | | | | | | | font dict also. Handle font matrix settings in subfonts. * src/cff/cffgload.c (cff_slot_load): Use the correct font matrix for CID-keyed fonts with subfonts. * docs/formats.txt: Updated.
* * include/freetype/freetype.h (FT_Vector_Transform),Werner Lemberg2005-04-148-32/+45
| | | | | | | | | | | | include/freetype/ftimage.h (FT_Raster_Params), include/freetype/ftoutln.h, src/base/ftoutln.c (FT_Outline_Get_CBox, FT_Outline_Copy, FT_Outline_Transform, FT_Vector_Transform, FT_Outline_Get_Bitmap), src/raster/ftraster.c (ft_black_render), src/smooth/ftgrays.c (gray_raster_render): Decorate parameters with `const' where appropriate. * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): Fix arguments to call of tt_sbit_decoder_load_bitmap.
* * src/type1/t1load.c (parse_charstrings): Catch this non-standardWerner Lemberg2005-04-142-1/+23
| | | | | | | | beginning of the /CharStrings dictionary: /CharStrings 118 dict def Private begin CharStrings begin
* * docs/TODO: Updated.Werner Lemberg2005-04-133-6/+10
| | | | * autogen.sh: Use `--force' for all commands.
* src/pshinter/pshalgo.c (ps_hints_apply): Change scaling values onlyWerner Lemberg2005-04-092-2/+8
| | | | if `fitted' is not zero.
* * src/truetype/ttgload.c (tt_face_get_metrics) [FT_OPTIMIZE_MEMORY]:Werner Lemberg2005-04-062-2/+7
| | | | Fix typo which sometimes causes wrong metrics for the last glyph.
* *** empty log message ***Werner Lemberg2005-04-041-5/+7
|
* * include/freetype/config/ftoption.h: commenting the definition ofDavid Turner2005-04-034-42/+12
| | | | | | | FT_OPTIMIZE_MEMORY for the upcoming 2.1.10 release * src/autofit/afhints.c: small tweak to use a bit less heap memory within the auto-fitter
* * src/type1/t1parse.c (T1_New_Parser): Relax the check for a validWerner Lemberg2005-04-032-1/+6
| | | | first line in the font.
* * docs/CHANGES, include/freetype/freetype.h: Improve documentationWerner Lemberg2005-04-033-2/+20
| | | | of FT_Set_Pixel_Sizes and FT_Set_Char_Size.
* Add comment about hard-coded dropout mode.Werner Lemberg2005-04-011-1/+7
|
* * builds/amiga/src/base/ftsystem.c (ft_amiga_stream_io): Fix bufferWerner Lemberg2005-03-262-2/+7
| | | | offsets after a large read.