Top Documents Download Gallery Repository
Are you looking for a Software Engineer? Check Here

19freetype Module

The freetype module provices measures to access vectorized font data using freetype library. To utilize it, import the freetype module using import function.

19.1Module Function

freetype.sysfontpath
freetype.sysfontpath(name:string):map

19.2freetype.BBox Class

19.3freetype.BDF_Property Class

19.4freetype.Bitmap Class

19.4.1Method

freetype.Bitmap#Embolden
freetype.Bitmap#Embolden(strength:number):reduce

19.5freetype.CharMap Class

19.5.1Method

freetype.CharMap#Get_Index
freetype.CharMap#Get_Index()

19.6freetype.FTC_CMapCache Class

19.7freetype.FTC_ImageCache Class

19.8freetype.FTC_ImageType Class

19.9freetype.FTC_Manager Class

19.10freetype.FTC_Node Class

19.11freetype.FTC_SBit Class

19.12freetype.FTC_SBitCache Class

19.13freetype.FTC_Scaler Class

19.14freetype.Face Class

19.14.1Constructor

freetype.Face
freetype.Face(stream:stream, face_index:number => 0):map {block?}

19.14.2Method

freetype.Face#CheckTrueTypePatents
freetype.Face#CheckTrueTypePatents()
freetype.Face#Get_Advance
freetype.Face#Get_Advance(glyph_index:number, load_flags:number)
freetype.Face#Get_Advances
freetype.Face#Get_Advances(glyph_index_start:number, count:number, load_flags:number)
freetype.Face#Get_Glyph_Name
freetype.Face#Get_Glyph_Name(glyph_index:number)
freetype.Face#Get_Postscript_Name
freetype.Face#Get_Postscript_Name()
freetype.Face#Get_Kerning
freetype.Face#Get_Kerning(left_glyph:number, right_glyph:number, kern_mode:number)
freetype.Face#Load_Char
freetype.Face#Load_Char(char_code:number, load_flags:number):reduce
freetype.Face#Load_Glyph
freetype.Face#Load_Glyph(glyph_index:number, load_flags:number):reduce
freetype.Face#Set_Charmap
freetype.Face#Set_Charmap(charmap:freetype.CharMap):reduce
freetype.Face#Set_Pixel_Sizes
freetype.Face#Set_Pixel_Sizes(pixel_width:number, pixel_height:number):reduce

19.15freetype.Glyph Class

19.15.1Method

freetype.Glyph#Copy
freetype.Glyph#Copy()
freetype.Glyph#Stroke
freetype.Glyph#Stroke(stroker:freetype.Stroker):reduce
freetype.Glyph#StrokeBorder
freetype.Glyph#StrokeBorder(stroker:freetype.Stroker, inside:boolean):reduce

19.16freetype.GlyphSlot Class

19.16.1Method

freetype.GlyphSlot#Get_Glyph
freetype.GlyphSlot#Get_Glyph()
freetype.GlyphSlot#Render
freetype.GlyphSlot#Render(render_mode:number):reduce

19.17freetype.Matrix Class

19.17.1Constructor

freetype.Matrix
freetype.Matrix(array:array@double):map {block?}

19.17.2Method

freetype.Matrix#Multiply
freetype.Matrix#Multiply(matrix:freetype.Matrix):reduce
freetype.Matrix#Invert
freetype.Matrix#Invert():reduce

19.18freetype.Outline Class

19.18.1Method

freetype.Outline#Translate
freetype.Outline#Translate(xOffset:freetype.Matrix, yOffset:freetype.Matrix):reduce
freetype.Outline#Transform
freetype.Outline#Transform(matrix:freetype.Matrix):reduce
freetype.Outline#Embolden
freetype.Outline#Embolden(strength:number):reduce
freetype.Outline#Reverse
freetype.Outline#Reverse():reduce

19.19freetype.Raster Class

19.20freetype.Span Class

19.21freetype.Stroker Class

19.21.1Constructor

freetype.Stroker
freetype.Stroker():map {block?}

19.21.2Method

freetype.Stroker#BeginSubPath
freetype.Stroker#BeginSubPath(to:freetype.Vector, open:boolean):reduce

19.22freetype.Vector Class

19.22.1Constructor

freetype.Vector
freetype.Vector(x:number, y:number):map {block?}

19.22.2Method

freetype.Vector#Length
freetype.Vector#Length()
freetype.Vector#Transform
freetype.Vector#Transform(matrix:freetype.Matrix):reduce

19.23freetype.font Class

19.24Constructor

freetype.font
freetype.font(face:freetype.Face):map {block?}

19.24.1Method

freetype.font#cleardeco
freetype.font#cleardeco():reduce
freetype.font#drawtext
freetype.font#drawtext(image:image, x:number, y:number, str:string):map:reduce {block?}
Draws a text on the image.

freetype.font#calcsize
freetype.font#calcsize(str:string):map
freetype.font#calcbbox
freetype.font#calcbbox(x:number, y:number, str:string):map

19.25Extension to image Class

This module extends the image class with methods described here.

image#drawtext
image#drawtext(font:freetype.font, x:number, y:number, str:string):map:reduce {block?}
Draws a text on the image.

19.26Thanks

This module uses FreeType library which is distributed in the following site:

http://www.freetype.org/


Copyright (C) 2011-2017 ypsitau