|
| Formatting | CreateFont (point_size, bold, italics, underlined) |
| | Create a wx font using the MachMotion standard font family.
|
| Formatting | ConvertFontStringToFontObject (font_string) |
| | Convert a native font info descriptor string to a wx font object.
|
| Formatting | ConvertFontObjectToFontString (font_object) |
| | Convert a wx font object to its native font info descriptor string.
|
| Formatting | IsFontWeight (font_object, weight) |
| | Check whether a wx font object has a specific font weight.
|
| Formatting | IsFontWeightBold (font_object) |
| | Check whether a wx font object has a bold-class font weight.
|
| Formatting | IsFontName (font_object, name) |
| | Check whether a wx font object has a specific face name.
|
| Formatting | GetFontName (font_object) |
| | Get the face name of a wx font object.
|
| Formatting | SetFontName (font_object, name) |
| | Set the face name of a wx font object.
|
| Formatting | GetFontFamily (font_object) |
| | Get the font family of a wx font object.
|
| Formatting | SetFontFamily (font_object, name) |
| | Set the font family of a wx font object.
|
| Formatting | IsApprovedScreenFont (font_object) |
| | Check whether a font object uses an approved MachMotion screen font face name.
|
| Formatting | IsApprovedFont (wxfont) |
| | Check whether a wx font object uses an approved MachMotion font face name.
|
| Formatting | CreateCodeBlocksFont (point_size, bold, italics, underlined) |
| | Create a wxFont using the CodeBlocks monospace font family.
|
| Formatting | GetDefault () |
| | Get the default color sentinel value indicating no color override.
|
| Formatting | GetPink () |
| | Get the color pink.
|
| Formatting | GetPurple () |
| | Get the color purple.
|
| Formatting | GetLightBlue () |
| | Get the color light blue.
|
| Formatting | GetBrightBlue () |
| | Get the color bright blue.
|
| Formatting | GetNeonBlue () |
| | Get the color neon blue.
|
| Formatting | GetBlue () |
| | Get the color blue.
|
| Formatting | GetLightGreen () |
| | Get the color light green.
|
| Formatting | GetGreen () |
| | Get the color green.
|
| Formatting | GetDarkGreen () |
| | Get the color dark green.
|
| Formatting | GetPaleYellow () |
| | Get the color pale yellow.
|
| Formatting | GetYellow () |
| | Get the color yellow.
|
| Formatting | GetOrange () |
| | Get the MachMotion standard orange color.
|
| Formatting | GetBrown () |
| | Get the color brown.
|
| Formatting | GetRed () |
| | Get the color red.
|
| Formatting | GetDarkRed () |
| | Get the color dark red.
|
| Formatting | GetGrey () |
| | Get the color grey.
|
| Formatting | GetOffWhite () |
| | Get the color off-white.
|
| Formatting | GetWhite () |
| | Get the color white.
|
| Formatting | GetBlack () |
| | Get the color black.
|
| Formatting | GetMachMotionGrey () |
| | Get the MachMotion standard grey UI color.
|
| Formatting | GetMMDROReadFG () |
| | Get the DRO read foreground color from the active color scheme.
|
| Formatting | GetMMDROReadBG () |
| | Get the DRO read background color from the active color scheme.
|
| Formatting | GetMMDROWriteFG () |
| | Get the DRO write foreground color from the active color scheme.
|
| Formatting | GetMMDROWriteBG () |
| | Get the DRO write background color from the active color scheme.
|
| Formatting | GetMMDROWriteEditdorBG () |
| | Get the DRO write editor background color from the active color scheme.
|
| Formatting | GetMMMachineCordFG () |
| | Get the machine coordinates DRO foreground color from the active color scheme.
|
| Formatting | GetMMMachineCordBG () |
| | Get the machine coordinates DRO background color from the active color scheme.
|
| Formatting | PartCordFG () |
| | Get the part coordinates DRO foreground color from the active color scheme.
|
| Formatting | PartCordBG () |
| | Get the part coordinates DRO background color from the active color scheme.
|
| Formatting CreateCodeBlocksFont |
( |
point_size | , |
|
|
bold | , |
|
|
italics | , |
|
|
underlined | ) |
Create a wxFont using the CodeBlocks monospace font family.
Creates a wx.wxFont using Formatting.CodeBlocksFontName ("Courier New") with the specified style options. Unlike CreateFont(), bold maps to wxFONTWEIGHT_BOLD (not SemiBold). If point_size is nil, defaults to Formatting.FontSizeStandard. If underlined is nil or not a boolean, defaults to false.
- Parameters
-
| point_size | (number|nil) The font point size. Defaults to Formatting.FontSizeStandard if nil |
| bold | (boolean|nil) If true, uses wxFONTWEIGHT_BOLD; otherwise wxFONTWEIGHT_NORMAL |
| italics | (boolean|nil) If true, uses wxFONTSTYLE_ITALIC; otherwise wxFONTSTYLE_NORMAL |
| underlined | (boolean|nil) If true, the font is underlined. Defaults to false if nil or non-boolean |
- Returns
- (userdata) A wx.wxFont using the CodeBlocks monospace face name
- See also
- Formatting.CreateFont() for the standard UI font equivalent
- Note
- Documentation generated by AI on 2026-03-03
| Formatting IsFontWeightBold |
( |
font_object | | ) |
|
Check whether a wx font object has a bold-class font weight.
Returns true if the font weight is any of SemiBold, Bold, or ExtraBold as defined by Formatting.FontWeightSemiBold, Formatting.FontWeightBold, and Formatting.FontWeightExtraBold.
- Parameters
-
| font_object | (userdata) The wx.wxFont object to check |
- Returns
- (boolean) True if the font weight is SemiBold, Bold, or ExtraBold; false otherwise
- See also
- Formatting.IsFontWeight() for checking against a specific weight constant
- Note
- Documentation generated by AI on 2026-03-03