25 #ifndef INCLUDED_VCL_SOURCE_FONTSUBSET_TTCR_HXX
26 #define INCLUDED_VCL_SOURCE_FONTSUBSET_TTCR_HXX
32 struct TrueTypeCreator;
66 void AddTable(TrueTypeCreator *_this, TrueTypeTable *table);
122 sal_uInt16 unitsPerEm,
125 sal_uInt16 lowestRecPPEM,
126 sal_Int16 fontDirectionHint);
135 sal_Int16 caretSlopeRise,
136 sal_Int16 caretSlopeRun);
175 sal_Int32 italicAngle,
176 sal_Int16 underlinePosition,
177 sal_Int16 underlineThickness,
178 sal_uInt32 isFixedPitch);
185 void cmapAdd(TrueTypeTable *, sal_uInt32
id, sal_uInt32 c, sal_uInt32 g);
195 sal_uInt32
glyfAdd(TrueTypeTable *, GlyphData *glyphdata, AbstractTrueTypeFont *fnt);
201 sal_uInt32
glyfCount(
const TrueTypeTable *);
218 #endif // INCLUDED_VCL_SOURCE_FONTSUBSET_TTCR_HXX
TrueTypeTable * TrueTypeTableNew_loca()
Creates a new empty 'loca' table for a TrueType font.
'name' table is too long (string data > 64K)
SFErrCodes
Return value of OpenTTFont() and CreateT3FromTTGlyphs()
TrueTypeTable * TrueTypeTableNew_cmap()
Creates a new empty 'cmap' table.
TrueTypeTable * TrueTypeTableNew_glyf()
Creates a new empty 'glyf' table.
TrueTypeTable * TrueTypeTableNew(sal_uInt32 tag, sal_uInt32 nbytes, const sal_uInt8 *ptr)
Creates a new raw TrueType table.
TrueTypeTable * TrueTypeTableNew_maxp(const sal_uInt8 *maxp, int size)
Creates a new 'maxp' table based on an existing maxp table.
'name' table does not contain any names
TrueTypeTable * TrueTypeTableNew_head(sal_uInt32 fontRevision, sal_uInt16 flags, sal_uInt16 unitsPerEm, const sal_uInt8 *created, sal_uInt16 macStyle, sal_uInt16 lowestRecPPEM, sal_Int16 fontDirectionHint)
Creates a new 'head' table for a TrueType font.
At least one glyph should be defined.
SFErrCodes StreamToFile(TrueTypeCreator *_this, const char *fname)
Writes a TrueType font generated by the TrueTypeCreator to a file.
TrueTypeTable * TrueTypeTableNew_hhea(sal_Int16 ascender, sal_Int16 descender, sal_Int16 linegap, sal_Int16 caretSlopeRise, sal_Int16 caretSlopeRun)
Creates a new 'hhea' table for a TrueType font.
TrueTypeTable * TrueTypeTableNew_post(sal_Int32 format, sal_Int32 italicAngle, sal_Int16 underlinePosition, sal_Int16 underlineThickness, sal_uInt32 isFixedPitch)
Creates a new 'post' table of one of the supported formats.
void RemoveTable(TrueTypeCreator *_this, sal_uInt32 tag)
Removes a TrueType table from the TrueType creator if it is stored there.
sal_uInt32 glyfAdd(TrueTypeTable *table, GlyphData *glyphdata, AbstractTrueTypeFont *fnt)
Add a glyph to a glyf table.
void TrueTypeCreatorNewEmpty(sal_uInt32 tag, TrueTypeCreator **_this)
TrueTypeCreator constructor.
int GetRawData(TrueTypeTable *_this, sal_uInt8 **ptr, sal_uInt32 *len, sal_uInt32 *tag)
This function converts the data of a TrueType table to a raw array of bytes.
SFErrCodes StreamToMemory(TrueTypeCreator *_this, sal_uInt8 **ptr, sal_uInt32 *length)
Writes a TrueType font generated by the TrueTypeCreator to a segment of memory that this method alloc...
unsupported format of a 'post' table
void cmapAdd(TrueTypeTable *table, sal_uInt32 id, sal_uInt32 c, sal_uInt32 g)
Add a character/glyph pair to a cmap table.
void TrueTypeTableDispose(void *)
Destructor for the TrueTypeTable object.
void AddTable(TrueTypeCreator *_this, TrueTypeTable *table)
Adds a TrueType table to the TrueType creator.
TrueTypeTable * TrueTypeTableNew_name(int n, NameRecord const *nr)
Creates a new 'name' table.
sal_uInt32 glyfCount(const TrueTypeTable *table)
Query the number of glyphs currently stored in the 'glyf' table.
TTCRErrCodes
Error codes for most functions.
void TrueTypeCreatorDispose(vcl::TrueTypeCreator *_this)
TrueTypeCreator destructor.