History log of /external/freetype/src/type1/t1objs.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0a0c22569deab933df21127e75db5c81f724f292 02-Jan-2018 Werner Lemberg <wl@gnu.org> Update copyright year.
/external/freetype/src/type1/t1objs.h
d23affe1ef8646ce51aa8d94fddccb7c89ba9a13 25-Sep-2017 Ewald Hew <ewaldhew@gmail.com> Reorganize object fields.

Make some fields more generic, so that we can access them the same
way regardless of Type 1 or CFF.

* include/freetype/internal/psaux.h (PS_Builder): Change `TT_Face'
to `FT_Face'.
Remove unused fields.

* src/psaux/psft.c: Update all accesses of `PS_Builder.face'.
Add some asserts to guard against casting `T1_Face' as `TT_Face'.

* src/type1/t1objs.h (T1_GlyphSlot): Reorder fields to follow
`CFF_GlyphSlot', so that we can pretend they are the same in the
interpreter.

* src/psaux/psobjs.c (ps_builder_init, ps_builder_add_point):
Updated with above changes.
/external/freetype/src/type1/t1objs.h
563ae780229aef5b6f6ae361211d5fb733de8321 04-Jan-2017 Werner Lemberg <wl@gnu.org> Update copyright year.
/external/freetype/src/type1/t1objs.h
9adeab6452a220270c311f756d55acd734fd52ea 13-Jan-2016 Werner Lemberg <wl@gnu.org> Update copyright year.
/external/freetype/src/type1/t1objs.h
37412ff9f42212bcf4dd29d9762f3c35b5735768 12-Jan-2016 Werner Lemberg <wl@gnu.org> Don't use macro names that contain `__' [1/2].

Such macro names are reserved for both C and C++.

*/*: Replace macros of the form `__XXX_H__' with `XXX_H_'.
/external/freetype/src/type1/t1objs.h
f57fc59e016217687362b6fbbc4842fab932175c 17-Jan-2015 Werner Lemberg <wl@gnu.org> Run `src/tools/update-copyright'.
/external/freetype/src/type1/t1objs.h
910b544aafdf533613839468950ceb377fea5a9b 30-Nov-2011 Werner Lemberg <wl@gnu.org> [type1] Remove casts.

* src/type1/t1driver.c (t1_driver_class): Remove all casts and
update affected functions.

* src/type1/t1gload.c, src/type1/t1gload.h, src/type1/t1objs.c:
Updated for t1driver changes.
src/type1/t1objs.h (T1_Driver): Remove unused typedef.
Updated for t1driver changes.
/external/freetype/src/type1/t1objs.h
9b774e282277f3f880e95928fb7bc82ebc26aea5 16-Jan-2007 Werner Lemberg <wl@gnu.org> Remove trailing whitespace. From Alexei.
/external/freetype/src/type1/t1objs.h
bcc438b15ef0b22055ae6f4ed55e0981794f483a 23-Jan-2006 Wu, Chia-I (吳佳一) <olvaffe@gmail.com> * include/freetype/freetype.h (FT_Select_Size): Rename the second
argument from `idx' to `strike_index'.
(FT_Size_Request_Type): Add FT_SIZE_REQUEST_TYPE_MAX to the end of
this enum.

* include/freetype/internal/ftobjs.h (FT_REQUEST_WIDTH,
FT_REQUEST_HEIGHT): New macros to get the width and height of a
request, in fractional pixels.

* include/freetype/internal/ftobjs.h (FT_Select_Metrics,
FT_Request_Metrics), src/base/ftobjs.c (FT_Select_Metrics,
FT_Request_Metrics): New base functions to set the font metrics. They
were part of FT_Select_Size/FT_Request_Size and are made independent
functions so that metrics are not set again and again.

* src/base/ftobjs.c (FT_Select_Size, FT_Request_Size): Metrics are set
only when driver's size_select/size_request is NULL. That is, drivers
should set the metrics themselves.
(FT_Match_Size): Round before matching. This was what we did and it
does cause some problems without rounding.

* src/cff/cffobjs.c (cff_size_select), src/truetype/ttdriver.c
(tt_size_select): Set the font metrics.
s/index/strike_index/.
The scaled metrics are always preferred over strikes' metrics, even
when some strike is selected. This is done because the strikes'
metrics are not reliable, e.g., the sign of the descender is wrong for
some fonts.

* src/cff/cffobjs.c (cff_size_request), src/truetype/ttdriver.c
(tt_size_request): Set the font metrics.
Call cff_size_select/tt_size_select when some strike is matched.

* src/bdf/bdfdrivr.c, src/cff/cffobjs.c, src/cid/cidobjs.c,
src/pcf/pcfdrivr.c, src/truetype/ttdriver.c, src/type1/t1objs.c,
src/type1/t1objs.h, src/type42/t42objs.c, src/winfonts/winfnt.c:
Set the font metrics.
s/index/strike_index/.

* src/tools/test_afm.c, src/psaux/psconv.c: Older versions of these
files were committed. Just a catch-up.
(PS_Conv_ToFixed): Remove the `goto'.
(PS_Conv_ASCIIHexDecode, PS_Conv_EexecDecode): Speed up a little.

* src/sfnt/ttsbit.c (tt_face_load_sbit_strikes,
tt_face_load_strike_metrics), src/sfnt/ttsbit0.c
(tt_face_load_sbit_strikes, tt_face_load_strike_metrics): The
advertised metrics in `available_sizes' are different from those
actually used.
/external/freetype/src/type1/t1objs.h
f1c2b91e149dd24cb7ad54bcc6210ece8b076aa0 13-Jan-2006 Werner Lemberg <wl@gnu.org> Formatting, copyright year updates.
Decorate long constants with `L' and `UL' where appropriate.
/external/freetype/src/type1/t1objs.h
fa7d6ab2171c9cfa8b9b45a2a6f6a0fdd2e4a190 13-Jan-2006 Wu, Chia-I (吳佳一) <olvaffe@gmail.com> * include/freetype/internal/sfnt.h (SFNT_Interface): New method
`load_strike_metrics' used to load the strike's metrics.

* src/sfnt/sfdriver.c, src/sfnt/ttsbit.c, src/sfnt/ttsbit.h,
src/sfnt/ttsbit0.c: New function `tt_face_load_strike_metrics'.

* src/pfr/pfrobjs.c (pfr_face_init): Set FT_Bitmap_Size correctly.

* src/winfonts/winfnt.c (FNT_Face_Init): Use `nominal_point_size' for
nominal size unless it is obviously incorrect.

* include/freetype/freetype.h (FT_Bitmap_Size): Update the comments on
FNT driver.


Introduce new size selection interface.

* include/freetype/internal/ftdriver.h (struct FT_Driver_ClassRec_):
Replace `set_char_sizes' and `set_pixel_sizes' by `request_size' and
`select_size'.

* include/freetype/freetype.h (FT_Select_Size, FT_Size_Request_Type,
FT_Size_Request, FT_Request_Size, FT_Select_Size), src/base/ftobjs.c
(FT_Select_Size, FT_Request_Size): API additions to export the new
size selection interface.

* src/base/ftobjs.c (FT_Set_Char_Size, FT_Set_Pixel_Sizes): Use
`FT_Request_Size'.

* include/freetype/internal/ftobjs.h (FT_Match_Size),
src/base/ftobjs.c (FT_Match_Size): New function to match a size
request against `available_sizes'. Drivers supporting bitmap strikes
can use this function to implement `request_size'.

* src/bdf/bdfdrivr.c, src/cid/cidobjs.c, src/cid/cidobjs.h,
src/cid/cidriver.c, src/pcf/pcfdrivr.c, src/type1/t1driver.c,
src/type1/t1objs.c, src/type1/t1objs.h, src/type42/t42drivr.c,
src/type42/t42objs.c, src/type42/t42objs.h, src/winfonts/winfnt.c:
Update to new size selection interface.

* src/cff/cffdrivr.c, src/cff/cffgload.c, src/cff/cffobjs.c,
src/cff/cffobjs.h, src/truetype/ttdriver.c, src/truetype/ttgload.c,
src/truetype/ttobjs.c, src/truetype/ttobjs.h: Update to new size
selection interface.
Make `strike_index' FT_ULong and always defined.
Use `load_strike_metrics' provided by SFNT interface.
/external/freetype/src/type1/t1objs.h
efa996155e80366bec17421d8777a2564db97d0e 02-Apr-2002 Werner Lemberg <wl@gnu.org> * src/type1/t1driver.c, src/type1/t1parse.c: 16bit fixes.

formatting, copyright updates
/external/freetype/src/type1/t1objs.h
bc82f1bbefa90c649a9ad2c28938d55b4acbf380 01-Mar-2002 David Turner <david@freetype.org> * include/freetype/ftconfig.h: changed FT_LOCAL xxxx to FT_LOCAL( xxxx )
everywhere in the source. Sames goes for FT_LOCAL_DEF xxxx translated
into FT_LOCAL_DEF( xxxxx )
/external/freetype/src/type1/t1objs.h
c3b21608699a72698d382ad44c5f9fd6946ce43c 05-Dec-2001 Werner Lemberg <wl@gnu.org> Formatting.

Cleaning up of ChangeLog.

* docs/license.txt: s/X Windows/X Window System/.

* src/raster/ftraster.c: Fix definition condition of MEM_Set().
* src/smooth/ftgrays.c (M_Y): Change value to 192.
* src/base/ftdbgmem.c (ft_mem_table_destroy): Fix printf() parameter.
Remove unused variable.
* src/cache/ftcimage.c (ftc_image_node_init,
ftc_image_node_compare): Remove unused variables.
* src/cache/ftcsbits.c (ftc_sbit_node_weight): Remove unused
variable.
* src/raster/ftraster.c (MEM_Set): Move definition down to avoid
compiler warning.
* src/autohint/ahhint.c (ah_hinter_hint_edges): Use UNUSED() to
avoid compiler warnings.
* src/pcf/pcfread.c (tableNames): Use `const'.
(pcf_read_TOC): Change counter name to avoid compiler warning.
Use `const'.
* src/pshinter/pshrec.c (ps_hints_close): Remove redundant
declaration.
* src/pshinter/pshalgo1.c (psh1_hint_table_init): Rename variables
to avoid shadowing.
* src/pshinter/pshalgo2.c (psh2_hint_table_activate_mask): Ditto.
* src/type1/t1objs.h: Remove double declarations of `T1_Size_Init()'
and `T1_Size_Done()'.
/external/freetype/src/type1/t1objs.h
5893c1bb2a9e682ac39107cdce8c7d413c4fe0f9 18-Oct-2001 David Turner <david@freetype.org> add support for new postscript hinter
/external/freetype/src/type1/t1objs.h
415235df1b955940ce85401a076f882e8717ef7b 28-Jun-2001 Werner Lemberg <wl@gnu.org> finishing function header formatting

updating copyrights
/external/freetype/src/type1/t1objs.h
4a2305cf0c686d58273e264780b48b159e42f604 28-Jun-2001 Werner Lemberg <wl@gnu.org> formatting
/external/freetype/src/type1/t1objs.h
1f7f0e87e58168b2e739e2622db0ee06e0c9accc 06-Jun-2001 Werner Lemberg <wl@gnu.org> Complete redesign of error codes. Please check ftmoderr.h for more
details.

* include/freetype/internal/cfferrs.h,
include/freetype/internal/tterrors.h,
include/freetype/internal/t1errors.h: Removed. Replaced with files
local to the module. All extra error codes have been moved to
`fterrors.h'.

* src/sfnt/ttpost.h: Move error codes to `fterrors.h'.

* src/autohint/aherrors.h, src/cache/ftcerror.h, src/cff/cfferrs.h,
src/cid/ciderrs.h, src/pcf/pcferror.h, src/psaux/psauxerr.h,
src/psnames/psnamerr.h, src/raster/rasterrs.h, src/sfnt/sferrors.h,
src/smooth/ftsmerrs.h, src/truetype/tterrors.h,
src/type1/t1errors.h, src/winfonts/fnterrs.h: New files defining the
error names for the module it belongs to.

* include/freetype/ftmoderr.h: New file, defining the module error
offsets. Its structure is similar to `fterrors.h'.

* include/freetype/fterrors.h (FT_NOERRORDEF): New macro.
(FT_ERRORDEF): Redefined to use module error offsets.
All internal error codes are now public; unused error codes have
been removed, some are new.

* include/freetype/config/ftheader.h (FT_MODULE_ERRORS_H): New
macro.
* include/freetype/config/ftoption.h
(FT_CONFIG_OPTION_USE_MODULE_ERRORS): New macro.

All other source files have been updated to use the new error codes;
some already existing (internal) error codes local to a module have
been renamed to give them the same name as in the base module.

All make files have been updated to include the local error files.


* src/cid/cidtokens.h: Replaced with...
* src/cid/cidtoken.h: This file for 8+3 consistency.

* src/raster/ftraster.c: Use macros for header file names.
/external/freetype/src/type1/t1objs.h
90d9964ec9c6537a69dedbc29f0a6d277707dbcc 09-Dec-2000 Werner Lemberg <wl@gnu.org> * */*.h: Changed body inclusion macro names to start and end with
`__' (those which haven't converted yet). Fixed minor conversion
issues.

* src/winfonts/winfnt.c: Updated to new header inclusion scheme.

* */*.[ch]: Changed source files to adhere to the new
* src/cff/cff.c, src/cff/rules.mk: Updated.

* */*.[ch]: Now using <ft2build.h> as the default build and setup
/external/freetype/src/type1/t1objs.h
cc069beb2d2b6b1cb9f9b9f2af2a7ea12780f634 08-Dec-2000 Werner Lemberg <wl@gnu.org> cleanups
/external/freetype/src/type1/t1objs.h
19ed8afe60bbc5becf0fbbe3987a91b35a36aad4 08-Dec-2000 David Turner <david@freetype.org> - 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
/external/freetype/src/type1/t1objs.h
76a5f62323d4fe3319d3d5410ded0ff9cab1f8c5 04-Nov-2000 David Turner <david@freetype.org> 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
/external/freetype/src/type1/t1objs.h
b5084e11f7d2d73e0687dee6314c560b8fe6d4cb 28-Oct-2000 Werner Lemberg <wl@gnu.org> Renamed z1* files back to t1*; the same transition for Z1_* structures

Removed obsolete raster1/* files.
/external/freetype/src/type1/t1objs.h
888706a317b930cb94314d7803a61426c0fbf46c 24-Aug-2000 David Turner <david@freetype.org> removing obsolete files
/external/freetype/src/type1/t1objs.h
d0c36e3b5a1087eff8b88b3bac1106e3cd46844c 03-Jul-2000 Werner Lemberg <wl@gnu.org> Formatting; fixing documentation.
/external/freetype/src/type1/t1objs.h
f0df85ba2a573c6c5c602667e9f91ef3b00c1d20 22-Jun-2000 David Turner <david@freetype.org> - 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.
/external/freetype/src/type1/t1objs.h
f9b8dec437dd84060bcd82a555c92fecff848aa7 16-Jun-2000 David Turner <david@freetype.org> 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
/external/freetype/src/type1/t1objs.h
e1d5dd78f4a75697a2584deac4af71dd21939f6a 07-Jun-2000 Werner Lemberg <wl@gnu.org> Moved all *errors.h header files to include/freetype/internal for
consistency.

Removed unused error message.
/external/freetype/src/type1/t1objs.h
e49ab25c0822e1043be29e836944c7886f4e8990 17-May-2000 David Turner <david@freetype.org> formatting - removed trailing spaces
/external/freetype/src/type1/t1objs.h
4f2c5544bbbe663483544da8d15675dfce9c0f89 12-May-2000 David Turner <david@freetype.org> additional changes, this time in order to pass extra parameters
to font drivers when creating a new face object.

The FT_Open_Args structure has been changed to simplify
its use and allow generic parameters too..
/external/freetype/src/type1/t1objs.h
efce08d67c1c2a8bf0d0d58463e754c746433d23 11-May-2000 David Turner <david@freetype.org> major re-organisation of the FreeType 2 directory hierarchy
/external/freetype/src/type1/t1objs.h
7f7aadf4f7edfd29e0b9879791f897464d1d9e9f 13-Mar-2000 David Turner <david@freetype.org> finished moving all configuration macros to
"config/ftoption.h"
/external/freetype/src/type1/t1objs.h
d2b1f357049f6b5e6766af9f3dfa134d2527feec 17-Dec-1999 David Turner <david@freetype.org> Initial revision
/external/freetype/src/type1/t1objs.h