This is the documentation for the latest development branch of M68k MicroPython and may refer to features that are not available in released versions.

If you are looking for the documentation for a specific release, use the drop-down menu on the left and select the desired version.

fontmgr

fontmgr - Wrapped MacOS APIs

fontmgr.systemFont: int
fontmgr.applFont: int
fontmgr.kFontIDNewYork: int
fontmgr.kFontIDGeneva: int
fontmgr.kFontIDMonaco: int
fontmgr.kFontIDVenice: int
fontmgr.kFontIDLondon: int
fontmgr.kFontIDAthens: int
fontmgr.kFontIDSanFrancisco: int
fontmgr.kFontIDToronto: int
fontmgr.kFontIDCairo: int
fontmgr.kFontIDLosAngeles: int
fontmgr.kFontIDTimes: int
fontmgr.kFontIDHelvetica: int
fontmgr.kFontIDCourier: int
fontmgr.kFontIDSymbol: int
fontmgr.kFontIDTaliesin: int
fontmgr.commandMark: int
fontmgr.checkMark: int
fontmgr.diamondMark: int
fontmgr.appleMark: int
fontmgr.propFont: int
fontmgr.prpFntH: int
fontmgr.prpFntW: int
fontmgr.prpFntHW: int
fontmgr.fixedFont: int
fontmgr.fxdFntH: int
fontmgr.fxdFntW: int
fontmgr.fxdFntHW: int
fontmgr.fontWid: int
class fontmgr.FMetricRec

A uctypes structure

ascent: Fixed
descent: Fixed
leading: Fixed
widMax: Fixed
wTabHandle: Handle
class fontmgr.FamRec

A uctypes structure

ffFlags: int
ffFamID: int
ffFirstChar: int
ffLastChar: int
ffAscent: int
ffDescent: int
ffLeading: int
ffWidMax: int
ffWTabOff: int
ffKernOff: int
ffStylOff: int
ffProperty: INTEGER[9]
ffIntl: INTEGER[2]
ffVersion: int
class fontmgr.WidthTable

A uctypes structure

tabData: Fixed[256]
tabFont: Handle
sExtra: int
style: int
fID: int
fSize: int
face: int
device: int
inNumer: Point
inDenom: Point
aFID: int
fHand: Handle
usedFam: Boolean
aFace: Byte
vOutput: int
hOutput: int
vFactor: int
hFactor: int
aSize: int
tabSize: int
class fontmgr.FMInput

A uctypes structure

family: int
size: int
face: Style
needBits: Boolean
device: int
numer: Point
denom: Point
class fontmgr.FMOutput

A uctypes structure

errNum: int
fontHandle: Handle
bold: Byte
italic: Byte
ulOffset: Byte
ulShadow: Byte
ulThick: Byte
shadow: Byte
extra: SignedByte
ascent: Byte
descent: Byte
widMax: Byte
leading: SignedByte
unused: Byte
numer: Point
denom: Point
class fontmgr.FontRec

A uctypes structure

fontType: int
firstChar: int
lastChar: int
widMax: int
kernMax: int
nDescent: int
fRectWidth: int
fRectHeight: int
owTLoc: int
ascent: int
descent: int
leading: int
rowWords: int
fontmgr.LMGetJSwapFont() object
fontmgr.LMSetJSwapFont(value) None
fontmgr.LMGetWidthListHand() object
fontmgr.LMSetWidthListHand(value) None
fontmgr.LMGetROMFont0() object
fontmgr.LMSetROMFont0(value) None
fontmgr.LMGetApFontID() object
fontmgr.LMSetApFontID(value) None
fontmgr.LMGetROMlib_myfmi() object
fontmgr.LMSetROMlib_myfmi(value) None
fontmgr.LMGetROMlib_fmo() object
fontmgr.LMSetROMlib_fmo(value) None
fontmgr.LMGetFScaleDisable() object
fontmgr.LMSetFScaleDisable(value) None
fontmgr.LMGetWidthPtr() object
fontmgr.LMSetWidthPtr(value) None
fontmgr.LMGetWidthTabHandle() object
fontmgr.LMSetWidthTabHandle(value) None
fontmgr.LMGetIntlSpec() object
fontmgr.LMSetIntlSpec(value) None
fontmgr.LMGetSysFontFam() object
fontmgr.LMSetSysFontFam(value) None
fontmgr.LMGetSysFontSiz() object
fontmgr.LMSetSysFontSiz(value) None
fontmgr.LMGetLastFOND() object
fontmgr.LMSetLastFOND(value) None
fontmgr.LMGetfondid() object
fontmgr.LMSetfondid(value) None
fontmgr.LMGetFractEnable() object
fontmgr.LMSetFractEnable(value) None
fontmgr.LMGetSynListHandle() object
fontmgr.LMSetSynListHandle(value) None
fontmgr.InitFonts() None
fontmgr.GetFontName(fnum: int, fnam: StringPtr) None
fontmgr.GetFNum(fnam: ConstStringPtr, fnum: array.array['h']) None
fontmgr.RealFont(fnum: int, sz: int) Boolean
fontmgr.SetFontLock(lflag: Boolean) None
fontmgr.FMSwapFont(fmip: FMInput) FMOutPtr
fontmgr.FontMetrics(metrp: FMetricRec) None
fontmgr.SetFScaleDisable(disable: Boolean) None
fontmgr.SetFractEnable(enable: Boolean) None
fontmgr.SetOutlinePreferred(_outline_perferred_p: Boolean) None
fontmgr.GetOutlinePreferred() Boolean
fontmgr.IsOutline(numer: Point, denom: Point) Boolean
fontmgr.OutlineMetrics(byte_count: int16_t, text: Ptr, numer: Point, denom: Point, y_max: int16_t, y_min: int16_t, aw_array: Fixed, lsb_array: Fixed, bounds_array: Rect) OSErr
fontmgr.SetPreserveGlyph(preserve_glyph: Boolean) None
fontmgr.GetPreserveGlyph() Boolean
fontmgr.FlushFonts() OSErr