Documentation ¶
Overview ¶
Package freetype provides API definitions for accessing freetype6.dll.
Index ¶
- Constants
- Variables
- type AllocFunc
- type Angle
- type BBox
- type BDFProperty
- type BDFPropertyType
- type Bitmap
- type BitmapSize
- type Bool
- type CMapCache
- type Char
- type CharMap
- type DebugHookFunc
- type Driver
- type Encoding
- type Enum
- type Error
- type F26Dot6
- type Face
- func (f *Face) AttachFile(filepathname string) Error
- func (f *Face) AttachStream(parameters *OpenArgs) Error
- func (f *Face) CheckTrueTypePatents() Bool
- func (f *Face) ClassicKernFree(table *byte)
- func (f *Face) ClassicKernValidate(validation_flags uint, ckernTable **byte) Error
- func (f *Face) DoneFace() Error
- func (f *Face) GetAdvance(gindex uint, loadFlags Int32, padvance *Fixed) Error
- func (f *Face) GetAdvances(start, count uint, loadFlags Int32, padvances *Fixed) Error
- func (f *Face) GetBDFCharsetID(acharsetEncoding, acharset_registry **T.Char) Error
- func (f *Face) GetBDFProperty(propName string, aproperty *BDFProperty) Error
- func (f *Face) GetCIDFromGlyphIndex(glyphIndex uint, cid *uint) Error
- func (f *Face) GetCIDIsInternallyCIDKeyed(isCid *Bool) Error
- func (f *Face) GetCIDRegistryOrderingSupplement(registry, ordering **T.Char, supplement *int) Error
- func (f *Face) GetCharIndex(charcode ULong) uint
- func (f *Face) GetCharVariantIndex(charcode, variantSelector ULong) uint
- func (f *Face) GetCharVariantIsDefault(charcode, variantSelector ULong) int
- func (f *Face) GetCharsOfVariant(variantSelector ULong) *UInt32
- func (f *Face) GetFSTypeFlags() uint16
- func (f *Face) GetFirstChar(agindex *uint) ULong
- func (f *Face) GetGasp(ppem uint) int
- func (f *Face) GetGlyphName(glyphIndex uint, buffer *Void, bufferMax uint) Error
- func (f *Face) GetKerning(leftGlyph, rightGlyph, kernMode uint, akerning *Vector) Error
- func (f *Face) GetMMVar(amaster **MMVar) Error
- func (f *Face) GetMultiMaster(amaster *MultiMaster) Error
- func (f *Face) GetNameIndex(glyphName *String) uint
- func (f *Face) GetNextChar(charCode ULong, agindex *uint) ULong
- func (f *Face) GetPFRAdvance(gindex uint, aadvance *Pos) Error
- func (f *Face) GetPFRKerning(left, right uint, avector *Vector) Error
- func (f *Face) GetPFRMetrics(aoutline_resolution, ametrics_resolution *uint, ...) Error
- func (f *Face) GetPSFontInfo(afontInfo *PSFontInfo) Error
- func (f *Face) GetPSFontPrivate(afontPrivate *PSPrivate) Error
- func (f *Face) GetPostscriptName() string
- func (f *Face) GetSfntName(idx uint, aname *SfntName) Error
- func (f *Face) GetSfntNameCount() uint
- func (f *Face) GetSfntTable(tag SfntTag) *T.Void
- func (f *Face) GetTrackKerning(pointSize Fixed, degree int, akerning *Fixed) Error
- func (f *Face) GetVariantSelectors() *UInt32
- func (f *Face) GetVariantsOfChar(charcode ULong) *UInt32
- func (f *Face) GetWinFNTHeader(aheader *WinFNTHeaderRec) Error
- func (f *Face) GetX11FontFormat() string
- func (f *Face) HasPSGlyphNames() int
- func (f *Face) LoadChar(charCode ULong, loadFlags Int32) Error
- func (f *Face) LoadGlyph(glyphIndex, loadFlags Int32) Error
- func (f *Face) LoadSfntTable(tag ULong, offset Long, buffer *byte, length *ULong) Error
- func (f *Face) NewSize(size **Size) Error
- func (f *Face) OpenTypeFree(table *byte)
- func (f *Face) OpenTypeValidate(validation_flags uint, ...) Error
- func (f *Face) ReferenceFace() Error
- func (f *Face) RequestSize(req *SizeRequest) Error
- func (f *Face) SelectCharmap(encoding Encoding) Error
- func (f *Face) SelectSize(strikeIndex int) Error
- func (f *Face) SetCharSize(charWidth, charHeight F26Dot6, horzResolution, vertResolution uint) Error
- func (f *Face) SetCharmap(charmap *CharMap) Error
- func (f *Face) SetMMBlendCoordinates(numCoords uint, coords *Fixed) Error
- func (f *Face) SetMMDesignCoordinates(numCoords uint, coords *Long) Error
- func (f *Face) SetPixelSizes(pixelWidth, pixelHeight uint) Error
- func (f *Face) SetTransform(matrix *Matrix, delta *Vector)
- func (f *Face) SetUnpatentedHinting(value Bool) Bool
- func (f *Face) SetVarBlendCoordinates(numCoords uint, coords *Fixed) Error
- func (f *Face) SetVarDesignCoordinates(numCoords uint, coords *Fixed) Error
- func (f *Face) SfntTableInfo(tableIndex uint, tag, length *ULong) Error
- func (f *Face) TrueTypeGXFree(table *byte)
- func (f *Face) TrueTypeGXValidate(validationFlags uint, tables [VALIDATE_GX_LENGTH]*byte, tableLength uint) Error
- type FaceID
- type FaceInternal
- type FaceRequester
- type Fixed
- type FreeFunc
- type Generic
- type GenericFinalizer
- type Glyph
- type GlyphClass
- type GlyphCopyFunc
- type GlyphDone
- type GlyphFormat
- type GlyphGetBBox
- type GlyphInit
- type GlyphMetrics
- type GlyphPrepare
- type GlyphSlot
- func (g *GlyphSlot) Embolden()
- func (g *GlyphSlot) Get(aglyph **Glyph) Error
- func (g *GlyphSlot) Info(subIndex uint, index *int, flags *uint, arg1, arg2 *int, transform *Matrix) Error
- func (g *GlyphSlot) Oblique()
- func (g *GlyphSlot) OwnBitmap() Error
- func (s *GlyphSlot) RenderGlyph(renderMode RenderMode) Error
- type GlyphTransformFunc
- type ImageCache
- type ImageType
- type Int32
- type LcdFilter
- type Library
- func (l *Library) AddDefaultModules()
- func (l *Library) AddModule(clazz *ModuleClass) Error
- func (l *Library) DoneFreeType() Error
- func (l *Library) DoneLibrary() Error
- func (l *Library) ManagerNew(maxFaces, maxSizes uint, maxBytes ULong, requester FaceRequester, ...) Error
- func (l *Library) Module(moduleName string) *Module
- func (l *Library) NewFace(filepathname string, faceIndex Long, aface **Face) Error
- func (l *Library) NewMemoryFace(fileBase *byte, fileSize, faceIndex Long, aface **Face) Error
- func (l *Library) OpenFace(args *OpenArgs, faceIndex Long, aface **Face) Error
- func (l *Library) OutlineNew(numPoints uint, numContours int, anoutline **Outline) Error
- func (l *Library) ReferenceLibrary() Error
- func (l *Library) RemoveModule(module *Module) Error
- func (l *Library) Renderer(format GlyphFormat) *Renderer
- func (l *Library) SetDebugHook(hookIndex uint, debugHook DebugHookFunc)
- func (l *Library) SetLcdFilter(filter LcdFilter) Error
- func (l *Library) SetLcdFilterWeights(weights *T.UnsignedChar) Error
- func (l *Library) SetRenderer(renderer *Renderer, numParams uint, parameters *Parameter) Error
- func (l *Library) StrokerNew(astroker **Stroker) Error
- func (l *Library) TrueTypeEngineType() TrueTypeEngineType
- func (l *Library) Version(amajor, aminor, apatch *int)
- type List
- func (l *List) Add(node *ListNode)
- func (l *List) Finalize(destroy ListDestructor, memory *Memory, user *T.Void)
- func (l *List) Find(data *T.Void) *ListNode
- func (l *List) Insert(node *ListNode)
- func (l *List) Iterate(iterator ListIterator, user *T.Void) Error
- func (l *List) Remove(node *ListNode)
- func (l *List) Up(node *ListNode)
- type ListDestructor
- type ListIterator
- type ListNode
- type Long
- type MMAxis
- type MMVar
- type Manager
- func (m *Manager) CMapCacheNew(acache **CMapCache) Error
- func (m *Manager) Done()
- func (m *Manager) ImageCacheNew(acache **ImageCache) Error
- func (m *Manager) LookupFace(faceId FaceID, aface **Face) Error
- func (m *Manager) LookupSize(scaler *Scaler, asize **Size) Error
- func (m *Manager) RemoveFaceID(faceId FaceID)
- func (m *Manager) Reset()
- func (m *Manager) SBitCacheNew(acache **SBitCache) Error
- type Matrix
- type Memory
- type Module
- type ModuleClass
- type ModuleConstructor
- type ModuleDestructor
- type ModuleInterface
- type ModuleRequester
- type MultiMaster
- type Node
- type OpenArgs
- type Orientation
- type Outline
- func (o *Outline) Check() Error
- func (o *Outline) Copy(target *Outline) Error
- func (o *Outline) Decompose(funcInterface *OutlineFuncs, user *T.Void) Error
- func (o *Outline) Done(library *Library) Error
- func (o *Outline) DoneInternal(memory *Memory) Error
- func (o *Outline) Embolden(strength Pos) Error
- func (o *Outline) GetBBox(abbox *BBox) Error
- func (o *Outline) GetBitmap(library *Library, abitmap *Bitmap) Error
- func (o *Outline) GetCBox(acbox *BBox)
- func (o *Outline) GetInsideBorder() StrokerBorder
- func (o *Outline) GetOrientation() Orientation
- func (o *Outline) GetOutsideBorder() StrokerBorder
- func (o *Outline) Render(library *Library, params *RasterParams) Error
- func (o *Outline) Reverse()
- func (o *Outline) Transform(matrix *Matrix)
- func (o *Outline) Translate(xOffset, yOffset Pos)
- type OutlineConicTo
- type OutlineCubicTo
- type OutlineFuncs
- type OutlineLineTo
- type OutlineMoveTo
- type PSFontInfo
- type PSPrivate
- type Parameter
- type Pos
- type RasterBitSet
- type RasterBitTest
- type RasterParams
- type ReallocFunc
- type RenderMode
- type Renderer
- type SBit
- type SBitCache
- type Scaler
- type SfntName
- type SfntTag
- type Size
- type SizeInternal
- type SizeMetrics
- type SizeRequest
- type SizeRequestType
- type SlotInternal
- type Span
- type SpanFunc
- type Stream
- type String
- type Stroker
- func (s *Stroker) BeginSubPath(to *Vector, open Bool) Error
- func (s *Stroker) ConicTo(control, to *Vector) Error
- func (s *Stroker) CubicTo(control1, control2, to *Vector) Error
- func (s *Stroker) Done()
- func (s *Stroker) EndSubPath() Error
- func (s *Stroker) Export(outline *Outline)
- func (s *Stroker) ExportBorder(border StrokerBorder, outline *Outline)
- func (s *Stroker) GetBorderCounts(border StrokerBorder, anumPoints, anum_contours *uint) Error
- func (s *Stroker) GetCounts(anumPoints, anum_contours *uint) Error
- func (s *Stroker) LineTo(to *Vector) Error
- func (s *Stroker) ParseOutline(outline *Outline, opened Bool) Error
- func (s *Stroker) Rewind()
- func (s *Stroker) Set(radius Fixed, lineCap StrokerLineCap, lineJoin StrokerLineJoin, ...)
- type StrokerBorder
- type StrokerLineCap
- type StrokerLineJoin
- type SubGlyph
- type TrueTypeEngineType
- type UInt32
- type ULong
- type VarAxis
- type VarNamedStyle
- type Vector
- type Void
- type WinFNTHeaderRec
Constants ¶
View Source
const ( VALIDATE_lcar_INDEX = 9 VALIDATE_GX_LAST_INDEX = VALIDATE_lcar_INDEX VALIDATE_GX_LENGTH = VALIDATE_GX_LAST_INDEX + 1 )
View Source
const T1_MAX_MM_AXIS = 4
Variables ¶
View Source
var ( MulDiv func(a, b, c Long) Long DivFix func(a, b Long) Long RoundFix func(a Fixed) Fixed CeilFix func(a Fixed) Fixed FloorFix func(a Fixed) Fixed GlyphToBitmap func( theGlyph **Glyph, renderMode RenderMode, origin *Vector, destroy Bool) Error GlyphStroke func( pglyph **Glyph, stroker *Stroker, destroy Bool) Error GlyphStrokeBorder func( pglyph **Glyph, stroker *Stroker, inside, destroy Bool) Error Sin func(angle Angle) Fixed Cos func(angle Angle) Fixed Tan func(angle Angle) Fixed Atan2 func(x, y Fixed) Angle AngleDiff func(angle1, angle2 Angle) Angle MulFix func(a, b Long) Long )
View Source
var ( BitmapNew func(abitmap **Bitmap) BitmapConvert func(library *Library, source, target *Bitmap, alignment int) Error BitmapCopy func(library *Library, source, target *Bitmap) Error BitmapDone func(library *Library, bitmap *Bitmap) Error BitmapEmbolden func(library *Library, bitmap *Bitmap, xStrength, yStrength Pos) Error )
View Source
var ( GetCMapLanguageID func(c *CharMap) ULong GetCMapFormat func(c *CharMap) Long GetCharmapIndex func(c *CharMap) int CMapCacheLookup func(cache *CMapCache, faceId FaceID, cmapIndex int, charCode UInt32) uint )
View Source
var ( FaceCheckTrueTypePatents func(f *Face) Bool FaceGetCharsOfVariant func(f *Face, variantSelector ULong) *UInt32 FaceGetCharVariantIndex func(f *Face, charcode, variantSelector ULong) uint FaceGetCharVariantIsDefault func(f *Face, charcode, variantSelector ULong) int FaceGetVariantSelectors func(f *Face) *UInt32 FaceGetVariantsOfChar func(f *Face, charcode ULong) *UInt32 FaceSetUnpatentedHinting func(f *Face, value Bool) Bool AttachFile func(f *Face, filepathname string) Error AttachStream func(f *Face, parameters *OpenArgs) Error ClassicKernFree func(f *Face, table *byte) ClassicKernValidate func(f *Face, validation_flags uint, ckernTable **byte) Error DoneFace func(f *Face) Error GetAdvance func(f *Face, gindex uint, loadFlags Int32, padvance *Fixed) Error GetAdvances func(f *Face, start, count uint, loadFlags Int32, padvances *Fixed) Error GetBDFCharsetID func(f *Face, acharsetEncoding, acharset_registry **T.Char) Error GetBDFProperty func(f *Face, propName string, aproperty *BDFProperty) Error GetCharIndex func(f *Face, charcode ULong) uint GetCIDFromGlyphIndex func(f *Face, glyphIndex uint, cid *uint) Error GetCIDIsInternallyCIDKeyed func(f *Face, isCid *Bool) Error GetCIDRegistryOrderingSupplement func(f *Face, registry, ordering **T.Char, supplement *int) Error GetFirstChar func(f *Face, agindex *uint) ULong GetFSTypeFlags func(f *Face) uint16 GetGasp func(f *Face, ppem uint) int GetGlyphName func(f *Face, glyphIndex uint, buffer *Void, bufferMax uint) Error GetKerning func(f *Face, leftGlyph, rightGlyph, kernMode uint, akerning *Vector) Error GetMMVar func(f *Face, amaster **MMVar) Error GetMultiMaster func(f *Face, amaster *MultiMaster) Error GetNameIndex func(f *Face, glyphName *String) uint GetNextChar func(f *Face, charCode ULong, agindex *uint) ULong GetPFRAdvance func(f *Face, gindex uint, aadvance *Pos) Error GetPFRKerning func(f *Face, left, right uint, avector *Vector) Error GetPFRMetrics func(f *Face, aoutline_resolution, ametrics_resolution *uint, ametrics_x_scale, ametrics_y_scale *Fixed) Error GetPostscriptName func(f *Face) string GetPSFontInfo func(f *Face, afontInfo *PSFontInfo) Error GetPSFontPrivate func(f *Face, afontPrivate *PSPrivate) Error GetSfntName func(f *Face, idx uint, aname *SfntName) Error GetSfntNameCount func(f *Face) uint GetSfntTable func(f *Face, tag SfntTag) *T.Void GetTrackKerning func(f *Face, pointSize Fixed, degree int, akerning *Fixed) Error GetWinFNTHeader func(f *Face, aheader *WinFNTHeaderRec) Error GetX11FontFormat func(f *Face) string HasPSGlyphNames func(f *Face) int LoadChar func(f *Face, charCode ULong, loadFlags Int32) Error LoadGlyph func(f *Face, glyphIndex, loadFlags Int32) Error LoadSfntTable func(f *Face, tag ULong, offset Long, buffer *byte, length *ULong) Error NewSize func(f *Face, size **Size) Error OpenTypeFree func(f *Face, table *byte) OpenTypeValidate func(f *Face, validation_flags uint, BASETable, GDEF_table, GPOS_table, GSUBTable, JSTF_table **byte) Error ReferenceFace func(f *Face) Error RequestSize func(f *Face, req *SizeRequest) Error SelectCharmap func(f *Face, encoding Encoding) Error SelectSize func(f *Face, strikeIndex int) Error SetCharmap func(f *Face, charmap *CharMap) Error SetCharSize func(f *Face, charWidth, charHeight F26Dot6, horzResolution, vertResolution uint) Error SetMMBlendCoordinates func(f *Face, numCoords uint, coords *Fixed) Error SetMMDesignCoordinates func(f *Face, numCoords uint, coords *Long) Error SetPixelSizes func(f *Face, pixelWidth, pixelHeight uint) Error SetTransform func(f *Face, matrix *Matrix, delta *Vector) SetVarBlendCoordinates func(f *Face, numCoords uint, coords *Fixed) Error SetVarDesignCoordinates func(f *Face, numCoords uint, coords *Fixed) Error SfntTableInfo func(f *Face, tableIndex uint, tag, length *ULong) Error TrueTypeGXFree func(f *Face, table *byte) TrueTypeGXValidate func(f *Face, validationFlags uint, tables [VALIDATE_GX_LENGTH]*byte, tableLength uint) Error )
View Source
var ( GlyphCopy func(g *Glyph, target **Glyph) Error GlyphTransform func(g *Glyph, matrix *Matrix, delta *Vector) Error GlyphGetCBox func(g *Glyph, bboxMode uint, acbox *BBox) DoneGlyph func(g *Glyph) )
View Source
var ( GetGlyph func(g *GlyphSlot, aglyph **Glyph) Error GetSubGlyphInfo func(g *GlyphSlot, subIndex uint, index *int, flags *uint, arg1, arg2 *int, transform *Matrix) Error GlyphSlotEmbolden func(g *GlyphSlot) GlyphSlotOblique func(g *GlyphSlot) GlyphSlotOwnBitmap func(slot *GlyphSlot) Error RenderGlyph func(slot *GlyphSlot, renderMode RenderMode) Error )
View Source
var ( ImageCacheLookup func(i *ImageCache, t *ImageType, gindex uint, aglyph **Glyph, anode **Node) Error ImageCacheLookupScaler func(i *ImageCache, scaler *Scaler, loadFlags ULong, gindex uint, aglyph **Glyph, anode **Node) Error )
View Source
var ( InitFreeType func(alibrary **Library) Error LibrarySetLcdFilter func(l *Library, filter LcdFilter) Error LibrarySetLcdFilterWeights func(l *Library, weights *T.UnsignedChar) Error LibraryVersion func(l *Library, amajor, aminor, apatch *int) AddDefaultModules func(l *Library) AddModule func(l *Library, clazz *ModuleClass) Error DoneFreeType func(l *Library) Error DoneLibrary func(l *Library) Error GetModule func(l *Library, moduleName string) *Module GetRenderer func(l *Library, format GlyphFormat) *Renderer GetTrueTypeEngineType func(l *Library) TrueTypeEngineType NewFace func(l *Library, filepathname string, faceIndex Long, aface **Face) Error NewMemoryFace func(l *Library, fileBase *byte, fileSize, faceIndex Long, aface **Face) Error OpenFace func(l *Library, args *OpenArgs, faceIndex Long, aface **Face) Error ReferenceLibrary func(l *Library) Error RemoveModule func(l *Library, module *Module) Error SetDebugHook func(l *Library, hookIndex uint, debugHook DebugHookFunc) SetRenderer func(l *Library, renderer *Renderer, numParams uint, parameters *Parameter) Error StrokerNew func(l *Library, astroker **Stroker) Error ManagerNew func(l *Library, maxFaces, maxSizes uint, maxBytes ULong, requester FaceRequester, reqData *Void, amanager **Manager) Error OutlineNew func(l *Library, numPoints uint, numContours int, anoutline **Outline) Error )
View Source
var ( ListAdd func(l *List, node *ListNode) ListFinalize func(l *List, destroy ListDestructor, memory *Memory, user *T.Void) ListFind func(l *List, data *T.Void) *ListNode ListInsert func(l *List, node *ListNode) ListIterate func(l *List, iterator ListIterator, user *T.Void) Error ListRemove func(l *List, node *ListNode) ListUp func(l *List, node *ListNode) )
View Source
var ( ManagerDone func(m *Manager) ManagerLookupFace func(m *Manager, faceId FaceID, aface **Face) Error ManagerLookupSize func(m *Manager, scaler *Scaler, asize **Size) Error ManagerRemoveFaceID func(m *Manager, faceId FaceID) ManagerReset func(m *Manager) CMapCacheNew func(m *Manager, acache **CMapCache) Error ImageCacheNew func(m *Manager, acache **ImageCache) Error SBitCacheNew func(m *Manager, acache **SBitCache) Error )
View Source
var ( MatrixMultiply func(a, b *Matrix) MatrixInvert func(matrix *Matrix) Error )
View Source
var ( NewLibrary func(m *Memory, alibrary **Library) Error OutlineNewInternal func(m *Memory, numPoints uint, numContours int, anoutline **Outline) Error )
View Source
var ( OutlineCheck func(o *Outline) Error OutlineCopy func(o *Outline, target *Outline) Error OutlineDecompose func(o *Outline, funcInterface *OutlineFuncs, user *T.Void) Error OutlineEmbolden func(o *Outline, strength Pos) Error OutlineGetBBox func(o *Outline, abbox *BBox) Error OutlineGetCBox func(o *Outline, acbox *BBox) OutlineGetInsideBorder func(o *Outline) StrokerBorder OutlineGetOrientation func(o *Outline) Orientation OutlineGetOutsideBorder func(o *Outline) StrokerBorder OutlineReverse func(o *Outline) OutlineTransform func(o *Outline, matrix *Matrix) OutlineTranslate func(o *Outline, xOffset, yOffset Pos) OutlineDoneInternal func(memory *Memory, outline *Outline) Error OutlineGetBitmap func(library *Library, outline *Outline, abitmap *Bitmap) Error OutlineRender func(library *Library, outline *Outline, params *RasterParams) Error OutlineDone func(library *Library, outline *Outline) Error )
View Source
var ( SBitCacheLookup func(s *SBitCache, t *ImageType, gindex uint, sbit **SBit, anode **Node) Error SBitCacheLookupScaler func(s *SBitCache, scaler *Scaler, loadFlags ULong, gindex uint, sbit **SBit, anode **Node) Error )
View Source
var ( DoneSize func(size *Size) Error ActivateSize func(size *Size) Error )
View Source
var ( StreamOpenGzip func(stream, source *Stream) Error StreamOpenLZW func(stream, source *Stream) Error )
View Source
var ( StrokerBeginSubPath func(s *Stroker, to *Vector, open Bool) Error StrokerConicTo func(s *Stroker, control, to *Vector) Error StrokerCubicTo func(s *Stroker, control1, control2, to *Vector) Error StrokerDone func(s *Stroker) StrokerEndSubPath func(s *Stroker) Error StrokerExport func(s *Stroker, outline *Outline) StrokerExportBorder func(s *Stroker, border StrokerBorder, outline *Outline) StrokerGetBorderCounts func(s *Stroker, border StrokerBorder, anumPoints, anum_contours *uint) Error StrokerGetCounts func(s *Stroker, anumPoints, anum_contours *uint) Error StrokerLineTo func(s *Stroker, to *Vector) Error StrokerParseOutline func(s *Stroker, outline *Outline, opened Bool) Error StrokerRewind func(s *Stroker) StrokerSet func(s *Stroker, radius Fixed, lineCap StrokerLineCap, lineJoin StrokerLineJoin, miterLimit Fixed) )
View Source
var ( VectorFromPolar func(v *Vector, length Fixed, angle Angle) VectorLength func(v *Vector) Fixed VectorPolarize func(v *Vector, length *Fixed, angle *Angle) VectorRotate func(v *Vector, angle Angle) VectorTransform func(v *Vector, matrix *Matrix) VectorUnit func(v *Vector, angle Angle) )
View Source
var NodeUnref func(node *Node, manager *Manager)
Functions ¶
This section is empty.
Types ¶
type BDFProperty ¶
type BDFProperty struct { Type BDFPropertyType // Union Atom *Char }
type BDFPropertyType ¶
type BDFPropertyType Enum
const ( BDF_PROPERTY_TYPE_NONE BDFPropertyType = iota BDF_PROPERTY_TYPE_ATOM BDF_PROPERTY_TYPE_INTEGER BDF_PROPERTY_TYPE_CARDINAL )
type Bitmap ¶
type Bitmap struct { Rows int Width int Pitch int Buffer *uint8 NumGrays int16 PixelMode int8 PaletteMode int8 Palette *Void }
type CharMap ¶
func (*CharMap) LanguageID ¶
type DebugHookFunc ¶
type DebugHookFunc func(arg *Void)
type Encoding ¶
type Encoding uint32 // TODO(t): enum/Size?
const ( ENCODING_NONE Encoding = 0 ENCODING_MS_SYMBOL Encoding = (('s' << 24) | ('y' << 16) | ('m' << 8) | 'b') ENCODING_UNICODE Encoding = (('u' << 24) | ('n' << 16) | ('i' << 8) | 'c') ENCODING_SJIS Encoding = (('s' << 24) | ('j' << 16) | ('i' << 8) | 's') ENCODING_GB2312 Encoding = (('g' << 24) | ('b' << 16) | (' ' << 8) | ' ') ENCODING_BIG5 Encoding = (('b' << 24) | ('i' << 16) | ('g' << 8) | '5') ENCODING_WANSUNG Encoding = (('w' << 24) | ('a' << 16) | ('n' << 8) | 's') ENCODING_JOHAB Encoding = (('j' << 24) | ('o' << 16) | ('h' << 8) | 'a') ENCODING_MS_SJIS = ENCODING_SJIS ENCODING_MS_GB2312 = ENCODING_GB2312 ENCODING_MS_BIG5 = ENCODING_BIG5 ENCODING_MS_WANSUNG = ENCODING_WANSUNG ENCODING_MS_JOHAB = ENCODING_JOHAB ENCODING_ADOBE_STANDARD Encoding = (('A' << 24) | ('D' << 16) | ('O' << 8) | 'B') ENCODING_ADOBE_EXPERT Encoding = (('A' << 24) | ('D' << 16) | ('B' << 8) | 'E') ENCODING_ADOBE_CUSTOM Encoding = (('A' << 24) | ('D' << 16) | ('B' << 8) | 'C') ENCODING_ADOBE_LATIN_1 Encoding = (('l' << 24) | ('a' << 16) | ('t' << 8) | '1') ENCODING_OLD_LATIN_2 Encoding = (('l' << 24) | ('a' << 16) | ('t' << 8) | '2') ENCODING_APPLE_ROMAN Encoding = (('a' << 24) | ('r' << 16) | ('m' << 8) | 'n') )
type Face ¶
type Face struct { NumFaces Long FaceIndex Long FaceFlags Long StyleFlags Long NumGlyphs Long FamilyName *String StyleName *String NumFixedSizes int AvailableSizes *BitmapSize NumCharmaps int Charmaps **CharMap Generic Generic Bbox BBox UnitsPer_EM uint16 Ascender int16 Descender int16 Height int16 MaxAdvanceWidth int16 MaxAdvanceHeight int16 UnderlinePosition int16 UnderlineThickness int16 Glyph *GlyphSlot Size *Size Charmap *CharMap Driver *Driver Memory *Memory Stream *Stream SizesList List Autohint Generic Extensions *Void Internal *FaceInternal }
func (*Face) AttachFile ¶
func (*Face) AttachStream ¶
func (*Face) CheckTrueTypePatents ¶
func (*Face) ClassicKernFree ¶
func (*Face) ClassicKernValidate ¶
func (*Face) GetAdvance ¶
func (*Face) GetAdvances ¶
func (*Face) GetBDFCharsetID ¶
func (*Face) GetBDFProperty ¶
func (f *Face) GetBDFProperty(propName string, aproperty *BDFProperty) Error
func (*Face) GetCIDFromGlyphIndex ¶
func (*Face) GetCIDIsInternallyCIDKeyed ¶
func (*Face) GetCIDRegistryOrderingSupplement ¶
func (*Face) GetCharIndex ¶
func (*Face) GetCharVariantIndex ¶
func (*Face) GetCharVariantIsDefault ¶
func (*Face) GetCharsOfVariant ¶
func (*Face) GetFSTypeFlags ¶
func (*Face) GetFirstChar ¶
func (*Face) GetGlyphName ¶
func (*Face) GetKerning ¶
func (*Face) GetMultiMaster ¶
func (f *Face) GetMultiMaster(amaster *MultiMaster) Error
func (*Face) GetNameIndex ¶
func (*Face) GetPFRMetrics ¶
func (*Face) GetPSFontInfo ¶
func (f *Face) GetPSFontInfo(afontInfo *PSFontInfo) Error
func (*Face) GetPSFontPrivate ¶
func (*Face) GetPostscriptName ¶
func (*Face) GetSfntNameCount ¶
func (*Face) GetTrackKerning ¶
func (*Face) GetVariantSelectors ¶
func (*Face) GetVariantsOfChar ¶
func (*Face) GetWinFNTHeader ¶
func (f *Face) GetWinFNTHeader(aheader *WinFNTHeaderRec) Error
func (*Face) GetX11FontFormat ¶
func (*Face) HasPSGlyphNames ¶
func (*Face) LoadSfntTable ¶
func (*Face) OpenTypeFree ¶
func (*Face) OpenTypeValidate ¶
func (*Face) ReferenceFace ¶
func (*Face) RequestSize ¶
func (f *Face) RequestSize(req *SizeRequest) Error
func (*Face) SelectCharmap ¶
func (*Face) SelectSize ¶
func (*Face) SetCharSize ¶
func (*Face) SetCharmap ¶
func (*Face) SetMMBlendCoordinates ¶
func (*Face) SetMMDesignCoordinates ¶
func (*Face) SetPixelSizes ¶
func (*Face) SetTransform ¶
func (*Face) SetUnpatentedHinting ¶
func (*Face) SetVarBlendCoordinates ¶
func (*Face) SetVarDesignCoordinates ¶
func (*Face) SfntTableInfo ¶
func (*Face) TrueTypeGXFree ¶
func (*Face) TrueTypeGXValidate ¶
type FaceInternal ¶
type FaceInternal struct{}
type FaceRequester ¶
type Generic ¶
type Generic struct { Data *Void Finalizer GenericFinalizer }
type GenericFinalizer ¶
type GenericFinalizer func(Object *Void)
type Glyph ¶
type Glyph struct { Library *Library Clazz *GlyphClass Format GlyphFormat Advance Vector }
type GlyphClass ¶
type GlyphClass struct { GlyphSize Long GlyphFormat GlyphFormat GlyphInit GlyphInit GlyphDone GlyphDone GlyphCopy GlyphCopyFunc GlyphTransform GlyphTransformFunc GlyphBbox GlyphGetBBox GlyphPrepare GlyphPrepare }
type GlyphCopyFunc ¶
type GlyphFormat ¶
type GlyphFormat uint32 // TODO(t): enum/Size?
const ( GLYPH_FORMAT_NONE GlyphFormat = ((0 << 24) | (0 << 16) | (0 << 8) | 0) GLYPH_FORMAT_COMPOSITE GlyphFormat = (('c' << 24) | ('o' << 16) | ('m' << 8) | 'p') GLYPH_FORMAT_BITMAP GlyphFormat = (('b' << 24) | ('i' << 16) | ('t' << 8) | 's') GLYPH_FORMAT_OUTLINE GlyphFormat = (('o' << 24) | ('u' << 16) | ('t' << 8) | 'l') GLYPH_FORMAT_PLOTTER GlyphFormat = (('p' << 24) | ('l' << 16) | ('o' << 8) | 't') )
type GlyphGetBBox ¶
type GlyphMetrics ¶
type GlyphPrepare ¶
type GlyphSlot ¶
type GlyphSlot struct { Library *Library Face *Face Next *GlyphSlot Reserved uint Generic Generic Metrics GlyphMetrics LinearHoriAdvance Fixed LinearVertAdvance Fixed Advance Vector Format GlyphFormat Bitmap Bitmap BitmapLeft int BitmapTop int Outline Outline NumSubglyphs uint Subglyphs *SubGlyph ControlData *Void ControlLen Long LsbDelta Pos RsbDelta Pos Other *Void Internal *SlotInternal }
func (*GlyphSlot) RenderGlyph ¶
func (s *GlyphSlot) RenderGlyph(renderMode RenderMode) Error
type GlyphTransformFunc ¶
type ImageCache ¶
type ImageCache struct{}
func (*ImageCache) LookupScaler ¶
type LcdFilter ¶
type LcdFilter Enum
const ( LCD_FILTER_DEFAULT LcdFilter = 1 << iota LCD_FILTER_LIGHT LCD_FILTER_LEGACY LCD_FILTER_MAX = LCD_FILTER_LEGACY + 1 LCD_FILTER_NONE LcdFilter = 0 )
type Library ¶
type Library struct{}
func (*Library) AddDefaultModules ¶
func (l *Library) AddDefaultModules()
func (*Library) AddModule ¶
func (l *Library) AddModule(clazz *ModuleClass) Error
func (*Library) DoneFreeType ¶
func (*Library) DoneLibrary ¶
func (*Library) ManagerNew ¶
func (*Library) NewMemoryFace ¶
func (*Library) OutlineNew ¶
func (*Library) ReferenceLibrary ¶
func (*Library) RemoveModule ¶
func (*Library) Renderer ¶
func (l *Library) Renderer(format GlyphFormat) *Renderer
func (*Library) SetDebugHook ¶
func (l *Library) SetDebugHook(hookIndex uint, debugHook DebugHookFunc)
func (*Library) SetLcdFilter ¶
func (*Library) SetLcdFilterWeights ¶
func (l *Library) SetLcdFilterWeights(weights *T.UnsignedChar) Error
func (*Library) SetRenderer ¶
func (*Library) StrokerNew ¶
func (*Library) TrueTypeEngineType ¶
func (l *Library) TrueTypeEngineType() TrueTypeEngineType
type List ¶
type List struct{ Head, Tail *ListNode }
type ListDestructor ¶
type ListIterator ¶
type MMVar ¶
type MMVar struct { NumAxis uint NumDesigns uint NumNamedstyles uint Axis *VarAxis Namedstyle *VarNamedStyle }
type Manager ¶
type Manager struct{}
func (*Manager) CMapCacheNew ¶
func (*Manager) ImageCacheNew ¶
func (m *Manager) ImageCacheNew(acache **ImageCache) Error
func (*Manager) RemoveFaceID ¶
func (*Manager) SBitCacheNew ¶
type Memory ¶
type Memory struct { User *Void Alloc AllocFunc Free FreeFunc Realloc ReallocFunc }
func (*Memory) NewLibrary ¶
type ModuleClass ¶
type ModuleClass struct { ModuleFlags ULong ModuleSize Long ModuleName *String ModuleVersion Fixed ModuleRequires Fixed ModuleInterface *Void ModuleInit ModuleConstructor ModuleDone ModuleDestructor GetInterface ModuleRequester }
type ModuleConstructor ¶
type ModuleDestructor ¶
type ModuleDestructor func(module *Module)
type ModuleInterface ¶
type ModuleInterface struct{}
type ModuleRequester ¶
type ModuleRequester func( module *Module, name string) *ModuleInterface
type MultiMaster ¶
type MultiMaster struct { NumAxis uint NumDesigns uint Axis [T1_MAX_MM_AXIS]MMAxis }
type Orientation ¶
type Orientation Enum
const ( ORIENTATION_TRUETYPE Orientation = iota ORIENTATION_POSTSCRIPT ORIENTATION_NONE ORIENTATION_FILL_RIGHT = ORIENTATION_TRUETYPE ORIENTATION_FILL_LEFT = ORIENTATION_POSTSCRIPT )
type Outline ¶
type Outline struct { NContours int16 NPoints int16 Points *Vector Tags *Char Contours *int16 Flags int }
func (*Outline) Decompose ¶
func (o *Outline) Decompose(funcInterface *OutlineFuncs, user *T.Void) Error
func (*Outline) DoneInternal ¶
func (*Outline) GetInsideBorder ¶
func (o *Outline) GetInsideBorder() StrokerBorder
func (*Outline) GetOrientation ¶
func (o *Outline) GetOrientation() Orientation
func (*Outline) GetOutsideBorder ¶
func (o *Outline) GetOutsideBorder() StrokerBorder
type OutlineConicTo ¶
type OutlineCubicTo ¶
type OutlineFuncs ¶
type OutlineFuncs struct { MoveTo OutlineMoveTo LineTo OutlineLineTo ConicTo OutlineConicTo CubicTo OutlineCubicTo Shift int Delta Pos }
type OutlineLineTo ¶
type OutlineMoveTo ¶
type PSFontInfo ¶
type PSPrivate ¶
type PSPrivate struct { UniqueId int LenIV int NumBlueValues byte NumOtherBlues byte NumFamilyBlues byte NumFamilyOtherBlues byte BlueValues [14]int16 OtherBlues [10]int16 FamilyBlues [14]int16 FamilyOtherBlues [10]int16 BlueScale Fixed BlueShift int BlueFuzz int StandardWidth [1]uint16 StandardHeight [1]uint16 NumSnapWidths byte NumSnapHeights byte ForceBold Bool RoundStemUp Bool SnapWidths [13]int16 SnapHeights [13]int16 ExpansionFactor Fixed LanguageGroup Long Password Long MinFeature [2]int16 }
type RasterBitSet ¶
type RasterBitTest ¶
type RasterParams ¶
type RasterParams struct { Target *Bitmap Source *Void Flags int GraySpans SpanFunc BlackSpans SpanFunc BitTest RasterBitTest BitSet RasterBitSet User *Void ClipBox BBox }
type RenderMode ¶
type RenderMode Enum
const ( RENDER_MODE_NORMAL RenderMode = iota RENDER_MODE_LIGHT RENDER_MODE_MONO RENDER_MODE_LCD RENDER_MODE_LCD_V RENDER_MODE_MAX )
type Size ¶
type Size struct { Face *Face Generic Generic Metrics SizeMetrics Internal *SizeInternal }
type SizeInternal ¶
type SizeInternal struct{}
type SizeMetrics ¶
type SizeRequest ¶
type SizeRequest struct { Type SizeRequestType Width Long Height Long HoriResolution uint VertResolution uint }
type SizeRequestType ¶
type SizeRequestType Enum
const ( SIZE_REQUEST_TYPE_NOMINAL SizeRequestType = iota SIZE_REQUEST_TYPE_REAL_DIM SIZE_REQUEST_TYPE_BBOX SIZE_REQUEST_TYPE_CELL SIZE_REQUEST_TYPE_SCALES SIZE_REQUEST_TYPE_MAX )
type SlotInternal ¶
type SlotInternal struct{}
type Stroker ¶
type Stroker struct{}
func (*Stroker) EndSubPath ¶
func (*Stroker) ExportBorder ¶
func (s *Stroker) ExportBorder(border StrokerBorder, outline *Outline)
func (*Stroker) GetBorderCounts ¶
func (s *Stroker) GetBorderCounts(border StrokerBorder, anumPoints, anum_contours *uint) Error
func (*Stroker) Set ¶
func (s *Stroker) Set(radius Fixed, lineCap StrokerLineCap, lineJoin StrokerLineJoin, miterLimit Fixed)
type StrokerBorder ¶
type StrokerBorder Enum
const ( STROKER_BORDER_LEFT StrokerBorder = iota STROKER_BORDER_RIGHT )
type StrokerLineCap ¶
type StrokerLineCap Enum
const ( STROKER_LINECAP_BUTT StrokerLineCap = iota STROKER_LINECAP_ROUND STROKER_LINECAP_SQUARE )
type StrokerLineJoin ¶
type StrokerLineJoin Enum
const ( STROKER_LINEJOIN_ROUND StrokerLineJoin = iota STROKER_LINEJOIN_BEVEL STROKER_LINEJOIN_MITER )
type TrueTypeEngineType ¶
type TrueTypeEngineType Enum
const ( TRUETYPE_ENGINE_TYPE_NONE TrueTypeEngineType = iota TRUETYPE_ENGINE_TYPE_UNPATENTED TRUETYPE_ENGINE_TYPE_PATENTED )
type VarNamedStyle ¶
type WinFNTHeaderRec ¶
type WinFNTHeaderRec struct { Version uint16 FileSize ULong Copyright [60]byte FileType uint16 NominalPointSize uint16 VerticalResolution uint16 HorizontalResolution uint16 Ascent uint16 InternalLeading uint16 ExternalLeading uint16 Italic byte Underline byte StrikeOut byte Weight uint16 Charset byte PixelWidth uint16 PixelHeight uint16 PitchAndFamily byte AvgWidth uint16 MaxWidth uint16 FirstChar byte LastChar byte DefaultChar byte BreakChar byte BytesPerRow uint16 DeviceOffset ULong FaceNameOffset ULong BitsPointer ULong BitsOffset ULong Reserved byte Flags ULong ASpace uint16 BSpace uint16 CSpace uint16 ColorTableOffset uint16 Reserved1 [4]ULong }
Click to show internal directories.
Click to hide internal directories.