:mod:`fontmgr` ============== .. py:module:: fontmgr .. autoapi-nested-parse:: fontmgr - Wrapped MacOS APIs .. py:data:: systemFont :type: int .. py:data:: applFont :type: int .. py:data:: kFontIDNewYork :type: int .. py:data:: kFontIDGeneva :type: int .. py:data:: kFontIDMonaco :type: int .. py:data:: kFontIDVenice :type: int .. py:data:: kFontIDLondon :type: int .. py:data:: kFontIDAthens :type: int .. py:data:: kFontIDSanFrancisco :type: int .. py:data:: kFontIDToronto :type: int .. py:data:: kFontIDCairo :type: int .. py:data:: kFontIDLosAngeles :type: int .. py:data:: kFontIDTimes :type: int .. py:data:: kFontIDHelvetica :type: int .. py:data:: kFontIDCourier :type: int .. py:data:: kFontIDSymbol :type: int .. py:data:: kFontIDTaliesin :type: int .. py:data:: commandMark :type: int .. py:data:: checkMark :type: int .. py:data:: diamondMark :type: int .. py:data:: appleMark :type: int .. py:data:: propFont :type: int .. py:data:: prpFntH :type: int .. py:data:: prpFntW :type: int .. py:data:: prpFntHW :type: int .. py:data:: fixedFont :type: int .. py:data:: fxdFntH :type: int .. py:data:: fxdFntW :type: int .. py:data:: fxdFntHW :type: int .. py:data:: fontWid :type: int .. py:class:: FMetricRec A uctypes structure .. py:attribute:: ascent :type: Fixed .. py:attribute:: descent :type: Fixed .. py:attribute:: leading :type: Fixed .. py:attribute:: widMax :type: Fixed .. py:attribute:: wTabHandle :type: Handle .. py:class:: FamRec A uctypes structure .. py:attribute:: ffFlags :type: int .. py:attribute:: ffFamID :type: int .. py:attribute:: ffFirstChar :type: int .. py:attribute:: ffLastChar :type: int .. py:attribute:: ffAscent :type: int .. py:attribute:: ffDescent :type: int .. py:attribute:: ffLeading :type: int .. py:attribute:: ffWidMax :type: int .. py:attribute:: ffWTabOff :type: int .. py:attribute:: ffKernOff :type: int .. py:attribute:: ffStylOff :type: int .. py:attribute:: ffProperty :type: INTEGER[9] .. py:attribute:: ffIntl :type: INTEGER[2] .. py:attribute:: ffVersion :type: int .. py:class:: WidthTable A uctypes structure .. py:attribute:: tabData :type: Fixed[256] .. py:attribute:: tabFont :type: Handle .. py:attribute:: sExtra :type: int .. py:attribute:: style :type: int .. py:attribute:: fID :type: int .. py:attribute:: fSize :type: int .. py:attribute:: face :type: int .. py:attribute:: device :type: int .. py:attribute:: inNumer :type: Point .. py:attribute:: inDenom :type: Point .. py:attribute:: aFID :type: int .. py:attribute:: fHand :type: Handle .. py:attribute:: usedFam :type: Boolean .. py:attribute:: aFace :type: Byte .. py:attribute:: vOutput :type: int .. py:attribute:: hOutput :type: int .. py:attribute:: vFactor :type: int .. py:attribute:: hFactor :type: int .. py:attribute:: aSize :type: int .. py:attribute:: tabSize :type: int .. py:class:: FMInput A uctypes structure .. py:attribute:: family :type: int .. py:attribute:: size :type: int .. py:attribute:: face :type: Style .. py:attribute:: needBits :type: Boolean .. py:attribute:: device :type: int .. py:attribute:: numer :type: Point .. py:attribute:: denom :type: Point .. py:class:: FMOutput A uctypes structure .. py:attribute:: errNum :type: int .. py:attribute:: fontHandle :type: Handle .. py:attribute:: bold :type: Byte .. py:attribute:: italic :type: Byte .. py:attribute:: ulOffset :type: Byte .. py:attribute:: ulShadow :type: Byte .. py:attribute:: ulThick :type: Byte .. py:attribute:: shadow :type: Byte .. py:attribute:: extra :type: SignedByte .. py:attribute:: ascent :type: Byte .. py:attribute:: descent :type: Byte .. py:attribute:: widMax :type: Byte .. py:attribute:: leading :type: SignedByte .. py:attribute:: unused :type: Byte .. py:attribute:: numer :type: Point .. py:attribute:: denom :type: Point .. py:class:: FontRec A uctypes structure .. py:attribute:: fontType :type: int .. py:attribute:: firstChar :type: int .. py:attribute:: lastChar :type: int .. py:attribute:: widMax :type: int .. py:attribute:: kernMax :type: int .. py:attribute:: nDescent :type: int .. py:attribute:: fRectWidth :type: int .. py:attribute:: fRectHeight :type: int .. py:attribute:: owTLoc :type: int .. py:attribute:: ascent :type: int .. py:attribute:: descent :type: int .. py:attribute:: leading :type: int .. py:attribute:: rowWords :type: int .. py:function:: LMGetJSwapFont() -> object .. py:function:: LMSetJSwapFont(value) -> None .. py:function:: LMGetWidthListHand() -> object .. py:function:: LMSetWidthListHand(value) -> None .. py:function:: LMGetROMFont0() -> object .. py:function:: LMSetROMFont0(value) -> None .. py:function:: LMGetApFontID() -> object .. py:function:: LMSetApFontID(value) -> None .. py:function:: LMGetROMlib_myfmi() -> object .. py:function:: LMSetROMlib_myfmi(value) -> None .. py:function:: LMGetROMlib_fmo() -> object .. py:function:: LMSetROMlib_fmo(value) -> None .. py:function:: LMGetFScaleDisable() -> object .. py:function:: LMSetFScaleDisable(value) -> None .. py:function:: LMGetWidthPtr() -> object .. py:function:: LMSetWidthPtr(value) -> None .. py:function:: LMGetWidthTabHandle() -> object .. py:function:: LMSetWidthTabHandle(value) -> None .. py:function:: LMGetIntlSpec() -> object .. py:function:: LMSetIntlSpec(value) -> None .. py:function:: LMGetSysFontFam() -> object .. py:function:: LMSetSysFontFam(value) -> None .. py:function:: LMGetSysFontSiz() -> object .. py:function:: LMSetSysFontSiz(value) -> None .. py:function:: LMGetLastFOND() -> object .. py:function:: LMSetLastFOND(value) -> None .. py:function:: LMGetfondid() -> object .. py:function:: LMSetfondid(value) -> None .. py:function:: LMGetFractEnable() -> object .. py:function:: LMSetFractEnable(value) -> None .. py:function:: LMGetSynListHandle() -> object .. py:function:: LMSetSynListHandle(value) -> None .. py:function:: InitFonts() -> None .. py:function:: GetFontName(fnum: int, fnam: StringPtr) -> None .. py:function:: GetFNum(fnam: ConstStringPtr, fnum: array.array['h']) -> None .. py:function:: RealFont(fnum: int, sz: int) -> Boolean .. py:function:: SetFontLock(lflag: Boolean) -> None .. py:function:: FMSwapFont(fmip: FMInput) -> FMOutPtr .. py:function:: FontMetrics(metrp: FMetricRec) -> None .. py:function:: SetFScaleDisable(disable: Boolean) -> None .. py:function:: SetFractEnable(enable: Boolean) -> None .. py:function:: SetOutlinePreferred(_outline_perferred_p: Boolean) -> None .. py:function:: GetOutlinePreferred() -> Boolean .. py:function:: IsOutline(numer: Point, denom: Point) -> Boolean .. py:function:: 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 .. py:function:: SetPreserveGlyph(preserve_glyph: Boolean) -> None .. py:function:: GetPreserveGlyph() -> Boolean .. py:function:: FlushFonts() -> OSErr