MBS Plugin Documentation

Search:

Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchie

New in Version 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 8.0 8.1 8.2 8.3 8.4 8.5 8.6 8.7 9.0

The list of the   themes,   classes,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

class FontMBS
class, Fonts, MBS MacOSX Plugin (Font), class FontMBS, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: A class to get detailed information about a Font.
Notes: Requires Mac OS 9.0 or newer.
FontMBS.File as Folderitem
property, Fonts, MBS MacOSX Plugin (Font), class FontMBS, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The location of the Font's file.
Notes:
The property file provides a reference to the Font suitcase rather than the PostScript outline file for 'LWFN' class fonts. This means that there is no single function implemented to obtain the data stored in the PostScript outline file.

Requires Mac OS 9.0 or newer.
(Read only property)
FontMBS.FontFamily as FontFamilyMBS
method, Fonts, MBS MacOSX Plugin (Font), class FontMBS, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Finds the font family reference and standard QuickDraw style associated with a font.
Notes:
Returns nil on any error.
The optional style parameter returns which style this font has related to the font family. (normal QuickDraw constants apply like: bold=1 and italic=2)
FontMBS.FontFamily(byref style as integer) as FontFamilyMBS
method, Fonts, MBS MacOSX Plugin (Font), class FontMBS, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Finds the font family reference and standard QuickDraw style associated with a font.
Notes:
Returns nil on any error.
The optional style parameter returns which style this font has related to the font family. (normal QuickDraw constants apply like: bold=1 and italic=2)
FontMBS.Format as string
property, Fonts, MBS MacOSX Plugin (Font), class FontMBS, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The Font file format.
Notes:
Results:
"true"TrueType Font
"typ1"PostScript Font
"LWFN"PostScript Type 1 Font
"OTTO"PostScript compact Font format (CFF) Font

Requires Mac OS 9.0 or newer.
(Read only property)
FontMBS.GenerationCount as integer
method, Fonts, MBS MacOSX Plugin (Font), class FontMBS, Plugin version: 3.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: If the font changes this generation count is updated.
Notes:
You can use this function in conjunction with the iteration functions to identify changes made to the font database.

Requires Mac OS 9.0 or newer.
FontMBS.GetApplicationFont as integer
shared method, Fonts, MBS MacOSX Plugin (Font), class FontMBS, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The GetApplicationFont function returns the font family ID of the current application font.
Notes:
The GetApplicationFont function returns the current value of the global variable ApFontID, which is the font family ID of the current application font. This is the font family ID that has been mapped to 1 by the system software.
Shared Methods require Realbasic 2006r4 or newer. In older REALbasic versions this function is available with the name FontMBS_GetApplicationFont as integer.
FontMBS.GetApplicationFontName as string
shared method, Fonts, MBS MacOSX Plugin (Font), class FontMBS, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the family name of the application font.
Notes:
Returns "" on any error.
Shared Methods require Realbasic 2006r4 or newer. In older REALbasic versions this function is available with the name FontMBS_GetApplicationFontName as string.
FontMBS.GetFontName(FontNumber as integer) as string
shared method, Fonts, MBS MacOSX Plugin (Font), class FontMBS, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The GetFontName function returns the name of a font family that has a specified family ID number.
Example:
// shows system font name:

' MsgBox FontMBS_GetFontName(0) // RB 5.5

MsgBox FontMBS.GetFontName(0) // RB 2008

Notes:
Returns "" on any error.
Shared Methods require Realbasic 2006r4 or newer. In older REALbasic versions this function is available with the name FontMBS_GetFontName(FontNumber as integer) as string.
FontMBS.GetFontNumber(Name as string) as integer
shared method, Fonts, MBS MacOSX Plugin (Font), class FontMBS, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the font family ID for a specified font family name.
Notes:
Given a font name, the GetFontNumber function returns the font family ID for the font family. If the font specified in the parameter name does not exist, it returns 0.

Returns 0 on any error.
Shared Methods require Realbasic 2006r4 or newer. In older REALbasic versions this function is available with the name FontMBS_GetFontNumber(Name as string) as integer.
FontMBS.GetSystemFont as integer
shared method, Fonts, MBS MacOSX Plugin (Font), class FontMBS, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The GetSystemFont function determines the font family ID of the current system font.
Notes:
The GetSysFont function returns the current value of the global variable SysFontFam, which is the font family ID of the current system font. This is the font family ID that has been mapped to 0 by the system software.

Returns 0 on any error.
Shared Methods require Realbasic 2006r4 or newer. In older REALbasic versions this function is available with the name FontMBS_GetSystemFont as integer.
FontMBS.GetSystemFontName as string
shared method, Fonts, MBS MacOSX Plugin (Font), class FontMBS, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the system font name.
Notes:
Returns "" on any error.
Shared Methods require Realbasic 2006r4 or newer. In older REALbasic versions this function is available with the name FontMBS_GetSystemFontName as string.
FontMBS.Handle as Integer
property, Fonts, MBS MacOSX Plugin (Font), class FontMBS, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The internal font handle for this object.
Notes: (Read only property)

The items on this page are in the following plugins: MBS MacOSX Plugin.