Platforms to show: All Mac Windows Linux Cross-Platform
NSFontMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
class | Cocoa | MBS MacBase Plugin | 8.0 | Yes | No | No | Yes, macOS only | No |
Notes: This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 24 properties
- property ascender as Double
- property boundingRectForFont as NSRectMBS
- property capHeight as Double
- property coveredCharacterSet as Variant
- property descender as Double
- property description as string
- property displayName as string
- property familyName as string
- property fontName as string
- property Handle as Integer
- property isFixedPitch as boolean
- property italicAngle as Double
- property leading as Double
- property maximumAdvancement as NSSizeMBS
- property mostCompatibleStringEncoding as Integer
- property numberOfGlyphs as Integer
- property pointSize as Double
- property printerFont as NSFontMBS
- property renderingMode as Integer
- property screenFont as NSFontMBS
- property textTransform as Variant
- property underlinePosition as Double
- property underlineThickness as Double
- property xHeight as Double
- 7 methods
- method advancementForGlyph(aGlyph as Integer) as NSSizeMBS
- method boundingRectForGlyph(aGlyph as Integer) as NSRectMBS
- method Constructor
- method file as folderitem
- method fontDescriptor as NSFontDescriptorMBS
- method glyphWithName(name as string) as UInt32
- method screenFontWithRenderingMode(renderingMode as Integer) as NSFontMBS
- 21 shared methods
- shared method boldSystemFontOfSize(size as Double) as NSFontMBS
- shared method controlContentFontOfSize(size as Double) as NSFontMBS
- shared method fontWithDescriptor(fontDescriptor as NSFontDescriptorMBS, fontSize as Double) as NSFontMBS
- shared method fontWithDescriptor(fontDescriptor as NSFontDescriptorMBS, TextTransform as Variant) as NSFontMBS
- shared method fontWithName(fontName as string, fontSize as Double) as NSFontMBS
- shared method labelFontOfSize(size as Double) as NSFontMBS
- shared method labelFontSize as Double
- shared method menuBarFontOfSize(size as Double) as NSFontMBS
- shared method menuFontOfSize(size as Double) as NSFontMBS
- shared method messageFontOfSize(size as Double) as NSFontMBS
- shared method paletteFontOfSize(size as Double) as NSFontMBS
- shared method setUserFixedPitchFont(font as NSFontMBS)
- shared method setUserFont(font as NSFontMBS)
- shared method smallSystemFontSize as Double
- shared method systemFontOfSize(size as Double) as NSFontMBS
- shared method systemFontSize as Double
- shared method systemFontSizeForControlSize(controlSize as Integer) as Double
- shared method titleBarFontOfSize(size as Double) as NSFontMBS
- shared method toolTipsFontOfSize(size as Double) as NSFontMBS
- shared method userFixedPitchFontOfSize(size as Double) as NSFontMBS
- shared method userFontOfSize(size as Double) as NSFontMBS
- 7 constants
- const NSControlGlyph=&hFFFFFF
- const NSFontAntialiasedIntegerAdvancementsRenderingMode=3
- const NSFontAntialiasedRenderingMode=1
- const NSFontDefaultRenderingMode=0
- const NSFontIntegerAdvancementsRenderingMode=2
- const NSNativeShortGlyphPacking=5
- const NSNullGlyph=0
This class has no sub classes.
Some methods using this class:
- NSBezierPathMBS.appendBezierPathWithGlyph(glyph as Integer, font as NSFontMBS)
- NSBezierPathMBS.appendBezierPathWithGlyphs(glyphs() as Integer, font as NSFontMBS)
- NSFontManagerMBS.convertFont(font as NSFontMBS) as NSFontMBS
- NSFontManagerMBS.convertFontToFace(font as NSFontMBS, face as string) as NSFontMBS
- NSFontManagerMBS.convertFontToFamily(font as NSFontMBS, family as string) as NSFontMBS
- NSFontManagerMBS.convertFontToHaveTrait(font as NSFontMBS, trait as Integer) as NSFontMBS
- NSFontManagerMBS.convertFontToNotHaveTrait(font as NSFontMBS, trait as Integer) as NSFontMBS
- NSFontManagerMBS.convertFontToSize(font as NSFontMBS, size as Double) as NSFontMBS
- NSFontManagerMBS.convertWeightOfFont(font as NSFontMBS, up as boolean) as NSFontMBS
- NSFontManagerMBS.selectedFont as NSFontMBS
- NSFontManagerMBS.setSelectedFont(font as NSFontMBS, isMultiple as boolean)
- NSFontManagerMBS.traitsOfFont(font as NSFontMBS) as Integer
- NSFontManagerMBS.weightOfFont(font as NSFontMBS) as Integer
- NSFontPanelMBS.convertFont(oldFont as NSFontMBS) as NSFontMBS
- NSFontPanelMBS.panelConvertFont(font as NSFontMBS) as NSFontMBS
- NSFontPanelMBS.setPanelFont(font as NSFontMBS, isMultiple as boolean)
- NSMenuMBS.popUpContextMenu(menu as NSMenuMBS, theEvent as NSEventMBS, view as NSViewMBS, font as NSFontMBS = nil)
- NSTextMBS.setFontForRange(font as NSFontMBS, start as Integer, length as Integer)
Some properties using for this class:
- NSCellMBS.font as NSFontMBS
- NSFontMBS.printerFont as NSFontMBS
- NSFontMBS.screenFont as NSFontMBS
- NSLayoutManagerMBS.font as NSFontMBS
- NSMenuMBS.Font as NSFontMBS
- PDFAnnotationButtonWidgetMBS.font as NSFontMBS
- PDFAnnotationChoiceWidgetMBS.font as NSFontMBS
- PDFAnnotationFreeTextMBS.font as NSFontMBS
- PDFAnnotationTextWidgetMBS.font as NSFontMBS
- PDFThumbnailViewMBS.labelFont as NSFontMBS
- SCNTextMBS.font as NSFontMBS
- NSBoxMBS.titleFont as NSFontMBS
- NSControlMBS.font as NSFontMBS
- NSSliderMBS.titleFont as NSFontMBS
- NSTabViewMBS.font as NSFontMBS
- NSTextMBS.font as NSFontMBS
Some examples which use this class:
- /AVFoundation/Add text to video
- /MacBase/Custom NSWindows/NSWindow with Pattern/Pattern NSWindow
- /MacCocoa/Font Family Members
- /MacCocoa/Font PopupMenu in Cocoa
- /MacCocoa/Fonts and Font Families
- /MacCocoa/Fun with TabPanel
- /MacCocoa/NSFontPanel
- /MacCocoa/PDFKit/Create Page
- /MacCocoa/PDFKit/Create Page with custom stamp annotation
- /MacCocoa/PDFKit/Create Page with Page
- /MacCocoa/Print RTF via NSGraphics
- /MacCocoa/Text in titlebar
- /MacCocoa/TextHeight calculation
- /MacControls/HUDPopupMenu
- /MacControls/Label with Color
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV Database with DataSource
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV Simple Demo with DataSource
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV TableView
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListboxTV with ContainerControl Cells
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Hierarchical & Flat/ListBoxTV OutlineView
- /MacControls/NSTextView Selection
Blog Entries
- Apply fonts to font PopupMenu
- MBS Xojo / Real Studio Plugins, version 14.3pr2
- MBS Xojo / Real Studio Plugins, version 13.2pr1
- CocoaBase needs MacOSXCG
- MBS Real Studio Plugins, version 12.1pr10
- MBS REALbasic Plugins, version 10.6pr2
The items on this page are in the following plugins: MBS MacBase Plugin.
Links
MBS Xojo PDF Plugins