Finale PDK Framework 0.77
Power Up Your Finale Music Software
|
Class for document-independent font information. More...
#include <ff_base.h>
Public Types | |
enum | ENIGMASTYLES { ENIGMASTYLE_PLAIN = FONT_EFX_PLAIN , ENIGMASTYLE_BOLD = FONT_EFX_BOLD , ENIGMASTYLE_ITALIC = FONT_EFX_ITALIC , ENIGMASTYLE_UNDERLINE = FONT_EFX_UNDERLINE , ENIGMASTYLE_STRIKEOUT = FONT_EFX_STRIKEOUT , ENIGMASTYLE_ABSOLUTE = FONT_EFX_ABSOLUTE , ENIGMASTYLE_HIDDEN = FONT_EFX_HIDDEN } |
Constants for enigma styles. These are bit-sensitve values that can be combined with bitwise-or. More... | |
Public Types inherited from __FCBase | |
enum | PDKFRAMEWORK_CLASSID { FCID_UNKNOWN = 0 , FCID_ACCIDENTALMOD , FCID_ACTIVELYRIC , FCID_ALLOTMENT , FCID_ARTICULATION , FCID_ARTICULATIONDEF , FCID_BACKWARDREPEAT , FCID_BASELINE , FCID_BEAMMOD , FCID_BEATCHARTELEMENT , FCID_BOOKMARK , FCID_BROKENBEAMMOD , FCID_CATEGORYDEF , FCID_CELLCLEFCHANGE , FCID_CELLFRAMEHOLD , FCID_CELLGRAPHIC , FCID_CELLTEXT , FCID_CENTERSMARTSHAPE , FCID_CHORD , FCID_CHORDPREFS , FCID_CHORDSUFFIXELEMENT , FCID_CHORUSSYLLABLE , FCID_CLEFDEF , FCID_COMPOSITETIMESIGBOTTOMELEMENT , FCID_COMPOSITETIMESIGTOPELEMENT , FCID_CROSSSTAFFMOD , FCID_CUSTOMSMARTLINEDEF , FCID_CUSTOMSTEMMOD , FCID_DISTANCEPREFS , FCID_DOTMOD , FCID_ENCLOSURE , FCID_ENDINGREPEAT , FCID_ENIGMATEXTSTYLE , FCID_ENTRYALTERMOD , FCID_EXECUTABLESHAPEDEF , FCID_EXPRESSION , FCID_FONTINFO , FCID_FONTPREFS , FCID_FREEZESYSTEM , FCID_FRETBOARDSTYLEDEF , FCID_FRETBOARDSTYLEDEFS , FCID_FRETBOARDGROUPDEF , FCID_FRETBOARDGROUPDEFS , FCID_FRETINSTRUMENTDEF , FCID_GENERALPREFS , FCID_GRIDSGUIDESPREFS , FCID_GROUP , FCID_GROUPNAMEPOSITIONPREFS , FCID_HUMANPLAYBACKPREFS , FCID_INDEPENDENTCELLDETAIL , FCID_INSTRUMENTDEF , FCID_INSTRUMENTPLAYBACKDATA , FCID_KEYMODEDEF , FCID_KEYSIGNATURE , FCID_LAYERPREFS , FCID_LYRICSBASELINE , FCID_LYRICSPREFS , FCID_MEASURE , FCID_MEASURENUMBERREGION , FCID_METATOOLASSIGNMENT , FCID_MIDIEXPRESSION , FCID_MISCDOCPREFS , FCID_MULTIMEASUREREST , FCID_MULTIMEASURERESTPREFS , FCID_MULTISTAFFINSTRUMENT , FCID_MULTISTAFFINSTRUMENTS , FCID_MUSICCHARACTERPREFS , FCID_MUSICSPACINGPREFS , FCID_NUMBER , FCID_NOTEHEADMOD , FCID_OTHERINCI , FCID_PERCUSSIONLAYOUTNOTE , FCID_PERCUSSIONSTAFF , FCID_PERFORMANCEMOD , FCID_PAGE , FCID_PAGEFORMATPREFS , FCID_PAGEGRAPHIC , FCID_PAGETEXT , FCID_PART , FCID_PARTEXTRACTPREFS , FCID_PARTSCOPEPREFS , FCID_PARTSTAFFVOICING , FCID_PERCUSSIONNOTEMOD , FCID_PIANOBRACEPREFS , FCID_PLAYBACKPREFS , FCID_RAWTEXT , FCID_REPEATPREFS , FCID_SECONDARYBEAMBREAKMOD , FCID_BEAMEXTENSIONMOD , FCID_SECTIONSYLLABLE , FCID_SEPARATEMEASURENUMBER , FCID_SEPARATEPLACEMENT , FCID_SHAPEDEF , FCID_SHAPEEXPRESSIONDEF , FCID_SLURCONTOURPREFS , FCID_SIZEPREFS , FCID_SMARTSHAPE , FCID_SMARTSHAPEENTRYMARK , FCID_SMARTSHAPEMEASUREMARK , FCID_SMARTSHAPEPREFS , FCID_STAFF , FCID_STAFFLIST , FCID_STAFFNAMEPOSITION , FCID_STAFFNAMEPOSITIONPREFS , FCID_STAFFSTYLEASSIGN , FCID_STAFFSTYLEDEF , FCID_STAFFSYSTEM , FCID_STEMCONNECTIONTABLE , FCID_STEMMOD , FCID_STRING , FCID_SYLLABLEENTRYMOD , FCID_SYSTEMSTAFF , FCID_TABLATURENOTEMOD , FCID_TEMPOELEMENT , FCID_TEXTBLOCK , FCID_TEXTEXPRESSIONDEF , FCID_TEXTREPEAT , FCID_TEXTREPEATDEF , FCID_TIEMOD , FCID_TIEPREFS , FCID_TIECONTOURPREFS , FCID_TIEPLACEMENTPREFS , FCID_TIMESIGNATURE , FCID_TUPLET , FCID_TUPLETPREFS , FCID_VERSESYLLABLE } |
Constants for the GetClassID method. More... | |
enum | MEASUREMENTUNITS { MEASUREMENTUNIT_DEFAULT = UNIT_DEFAULT , MEASUREMENTUNIT_EVPUS = UNIT_EVPUS , MEASUREMENTUNIT_INCHES = UNIT_INCHES , MEASUREMENTUNIT_CENTIMETERS = UNIT_CENTS , MEASUREMENTUNIT_POINTS = UNIT_POINTS , MEASUREMENTUNIT_PICAS = UNIT_PICAS , MEASUREMENTUNIT_SPACES = UNIT_SPACES , MEASUREMENTUNIT_MILLIMETERS = 100 } |
Constants for Finale's standard measurement units. More... | |
Public Member Functions | |
const char * | ClassName () const override |
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child class. | |
const PDKFRAMEWORK_CLASSID | GetClassID () const override |
Returns the internal class ID for the PDK Framework class. This is implemented mostly because Lua has problems to resolve the true classes of inherited objects. | |
FCFontInfo () | |
Default constructor. This constructor does not add the font to the current document. However, if you call any method that requires the internal font ID, the font will be added to the current document when that method is called, if it is not already there. (See the detailed description of FCFontInfo for more information.) | |
FCFontInfo (const FCString &name, double size, FLAG_16 enigmastyles=ENIGMASTYLE_PLAIN) | |
Constructor with name and size and optional styles. This constructor adds the font to the current document if it is not already there, so you must manage the undo block appropriately when using this constructor. | |
FCFontInfo (const ETextStyle &style) | |
internal constructor. | |
void | CopyFrom (const FCFontInfo *pInfo) |
Copies data from another font info object. | |
FCFontInfo * | CreateCopy () |
Creates a copy of the font info object on the heap. | |
bool | LoadFontPrefs (int prefsID) |
Sets the font information to any of the preference fonts. | |
bool | SaveFontPrefs (int prefsID) |
Saves the font information to any of the preference fonts. | |
int | GetSize () const |
Returns the font size as an integer number. | |
double | GetSizeFloat () const |
Returns the font size as a floating point (with decimal digits). | |
void | GetNameString (FCString *pString) const |
Gets the font name and puts it in a FCString object. | |
std::string | GetName () const |
Gets the font name (const C-string version). | |
EFONTID | GetIDByName () const |
Gets the internal Enigma font ID for the current document by searching for the font name. The value in GetFontID is used only to determine if this instance refers to the Default Music Font. If so, the font ID of the Default Music Font is returned (which is always zero in any document). | |
EFONTID | GetNameByID () const |
Legacy version of GetIDByName with incorrect name. | |
FLAG_16 | GetEnigmaStyles () const |
Gets the font style as standard Enigma bit storage. | |
bool | MakeEnigmaString (FCString *pString, FCString *pFontTagString=NULL) |
Creates an Enigma string (for use in raw strings) based on the current font information. | |
FCString * | CreateEnigmaString (FCString *pFontTagString=NULL) |
Returns a created FCString object that contains the font information as an Enigma string. | |
void | MakeEnigmaStyleString (FCString *pString) |
Makes an Enigma string (for use in raw strings) based on only the current font style information. | |
void | MakeEnigmaSizeString (FCString *pString) |
Makes an Enigma string (for use in raw strings) based on only the current font size information. | |
FCString * | CreateEnigmaStyleString () |
Creates a FCString object and creates the Enigma font style info string, based on only the current font style information. | |
bool | ParseEnigmaCommand (FCString *pString) |
Parses a valid Enigma font command and changes the font information accordingly. | |
void | ParseEnigmaFont (const EEnigmaFont *pEnigmaFont) |
Transfers the info from a Finale-internal font structure to the FCFontInfo object. | |
void | SetEnigmaStyles (FLAG_16 fontstyles) |
Sets the font style as standard Enigma bit storage. | |
FCString * | CreateDescription () const |
void | SetName (const std::string &pszName) |
Sets the font name. | |
EFONTID | GetFontID () const |
Gets the internal document-specific font ID. It may not yet have been assigned a value, depending on which constructor you used. Unless you have a specific reason to inspect the current value, it is safer to use GetIDByName to get the internal font ID. Note, however, that GetIDByName modifies the document by adding the font to it, if the font is not currently in the document. | |
void | SetFontID (EFONTID fontID) |
Sets the internal document-specific font ID. | |
void | SetNameString (const FCString &value) |
Sets the font name (FCString version). | |
void | SetNameByID (EFONTID id) |
Sets the font name by using the document's internal Enigma font ID. | |
void | SetSize (int fontsize) |
Sets the font size as an integer value. | |
void | SetSizeFloat (double fontsize) |
Sets the font size as a floating point (with decimal digits) value. | |
void | SetAbsolute (bool state) |
Sets the absolute (fixed font) size state of the font info. | |
void | SetStrikeOut (bool state) |
Sets the strikeout state of the font info. | |
void | SetBold (bool state) |
Sets the boldface attribute of the font info. | |
void | SetHidden (bool state) |
Sets the hidden state of the font info. | |
void | SetItalic (bool state) |
Sets the italics attribute of the font info. | |
void | SetUnderline (bool state) |
Sets the underline attribute of the font info. | |
void | SetPlain () |
Clears the styles so the font doesn't use any style. | |
bool | IsName (const char *pszTestName) const |
Checks if the font name is a perfect match to the C-string test string. | |
bool | IsNameString (const FCString &pTestName) const |
Checks if the font name is a perfect match to the test string. | |
bool | IsPlain () |
Returns true if the font has no special style flags. | |
bool | GetBold () const |
Returns true if the font style is boldface. | |
bool | GetItalic () const |
Returns true if the font style is italic. | |
bool | GetUnderline () const |
Returns true if the font style is underline. | |
bool | GetStrikeOut () const |
Returns true if the font style is strikeout. | |
bool | GetAbsolute () const |
Returns true if the font size is absolute. | |
bool | GetHidden () const |
Returns true if the font style is hidden (don't print). | |
bool | GetIsSMuFLFont () const |
Returns true if the font is a SMuFL font. | |
bool | IsMacSymbolFont () const |
returns true i the font is a Mac Symbol font. | |
bool | IsIdenticalTo (const FCFontInfo &compareWith) const |
Returns true if all font information is identical to the compared object. | |
bool | MakeDefaultMusicFont () |
Changes the document's default music font to match this instance of FCFontInfo and modifies this instance to be the default music font (if successful). | |
double | CalcAverageRomanCharacterWidthEVPUs () const |
Calculates the average width of the roman characters in the font in EVPUs. | |
double | CalcAverageRomanCharacterWidthPoints () const |
Calculates the average width of the roman characters in the font in points. | |
void | DebugDump () override |
Outputs the class data/information for debugging purposes. | |
Public Member Functions inherited from __FCBase | |
virtual | ~__FCBase () |
Virtual destructor, so all inherited classes get the virtual destructor. | |
void | DebugMsgInt (const char *pszPrefixText, int i) |
Creates a simple Message Box for debug purposes. The text appears with the extra digit (in decimal presentation) appearing afterwards. | |
void | DebugMsgHex (const char *pszPrefixText, int i) |
Creates a simple Message Box for debug purposes. The text appears with the extra digit (as a hexadecimal number) appearing afterwards. | |
void | DebugMsgString (const char *pszPrefixText, const char *thestring) |
Creates a simple Message Box for debug purposes. The text appears with the extra string appearing afterwards. | |
void | DebugMsg (const char *pszMsg) |
Creates a simple Message Box for debug purposes with just one text string. | |
void | DebugOutMenuInfo (FCUI *pUI, int menuixd_horiz, int menuixd_vert) const |
Outputs the menu command info for debugging purposes. | |
int | DebugOutFormat (const char *fmt,...) |
Outputs debug text using C style "printf" syntax. | |
virtual void | DebugDataDump () |
Outputs a memory dump of the data block in the object for debugging purposes. | |
virtual void | DebugDataByteArrayDump () |
Outputs a memory dump of the data block in the object for debugging purposes, as a C++ byte array. | |
void | Set16BitFlag (FLAG_16 *flag, FLAG_16 flagbits, bool state) |
Sets a 16 bit flag. | |
void | Set32BitFlag (FLAG_32 *flag, FLAG_32 flagbits, bool state) |
Sets/resets a 32 bit flag, by using a bit mask. | |
bool | GetBitFlag (FLAG_32 flag, FLAG_32 flagbits) const |
Gets a state from flag bits. Returns true if any bit in the mask is set. | |
int | GetBitCount (FLAG_32 flag) |
Returns the total number of set bits in a 32-bit unsigned int. | |
void | SetSpecific32Bit (FLAG_32 *flag, int bitnumber, bool state) |
Sets/resets a single bit in a 32 bit flag, by specifying one specific bit. | |
void | SetUserData (void *pData) |
Sets the user data attached to the instance of an object. | |
void | SetUserData2 (void *pData) |
Sets the additional user data attached to the instance of an object. | |
void * | GetUserData () const |
Gets the user data attached to the instance of an object. | |
void * | GetUserData2 () const |
Gets the additional user data attached to the instance of an object. | |
virtual bool | IsIdentical (const __FCBase *pCompareObject) const |
Returns true if the data in the passed object is considered to be identical to the current object, otherwise false. | |
void | StoreXML_String (tinyxml2::XMLElement *pParentNode, const char *pszElementName, FCString *pStringValue) |
Helper function to store FCString objects in the XML file. | |
void | StoreXML_Integer (tinyxml2::XMLElement *pParentNode, const char *pszElementName, int value) |
Helper function to store integer objects in the XML file. | |
void | StoreXML_Bool (tinyxml2::XMLElement *pParentNode, const char *pszElementName, bool value) |
Helper function to store boolean objects in the XML file. | |
void | StoreXML_StringAttribute (tinyxml2::XMLElement *pNode, const char *pszAttributeName, FCString *pStringValue) |
Helper function to store FCString objects in the XML file, as an attribute to a node. | |
void | StoreXML_IntegerAttribute (tinyxml2::XMLElement *pNode, const char *pszAttributeName, int value) |
Helper function to store integer objects in the XML file, as an attribute to a node. | |
void | StoreXML_BoolAttribute (tinyxml2::XMLElement *pNode, const char *pszAttributeName, bool value) |
Helper function to store boolean objects in the XML file, as an attribute to a node. | |
void | StoreXML_FloatAttribute (tinyxml2::XMLElement *pNode, const char *pszAttributeName, float value) |
Helper function to store floating point objects in the XML file, as an attribute to a node. | |
virtual void | StoreToXML (tinyxml2::XMLElement *pParentNode) |
Virtual method that is used to store an object's data. | |
bool | ReadXML_String (tinyxml2::XMLElement *pParentNode, const char *pszElementName, FCString *pStringValue) |
Helper method to read FCString objects from the XML file. | |
bool | ReadXML_Integer (tinyxml2::XMLElement *pParentNode, const char *pszElementName, int *pValue) |
Helper method to read integer objects from the XML file. | |
bool | ReadXML_Bool (tinyxml2::XMLElement *pParentNode, const char *pszElementName, bool *pValue) |
Helper method to read boolean objects from the XML file. | |
bool | ReadXML_StringAttribute (tinyxml2::XMLElement *pNode, const char *pszAttributeName, FCString *pStringValue) |
Helper method to read FCString objects from the XML file, as an attribute to a node. | |
bool | ReadXML_IntegerAttribute (tinyxml2::XMLElement *pNode, const char *pszAttributeName, int *pValue) |
Helper method to read integer objects from the XML file, as an attribute to a node. | |
bool | ReadXML_BoolAttribute (tinyxml2::XMLElement *pNode, const char *pszAttributeName, bool *pValue) |
Helper method to read boolean objects from the XML file, as an attribute to a node. | |
bool | ReadXML_FloatAttribute (tinyxml2::XMLElement *pNode, const char *pszAttributeName, float *pValue) |
Helper method to read floating point objects from the XML file, as an attribute to a node. | |
virtual bool | ReadFromXML (tinyxml2::XMLElement *pParentNode) |
Virtual method that is used to read object data. | |
Static Public Member Functions | |
static fourbyte | GetSystemTextEncoding () |
Returns the internal Engima encoding number for the running Finale version. This value is appended to the font in Enigma strings. | |
Static Public Member Functions inherited from __FCBase | |
static void | DebugOutPtr (const char *pszPrefixText, void *ptr) |
Static method that outputs a line for debugging purposes. The prefix text appears with the extra ptr (in hexadeximal representation) appearing afterwards. | |
static void | DebugOutInt (const char *pszPrefixText, int i) |
Static method that outputs a line for debugging purposes. The text appears with the extra digit (in decimal presentation) appearing afterwards. | |
static void | DebugOutFloat (const char *pszPrefixText, double f) |
Static method that outputs a line for debugging purposes. The text appears with the extra float value appearing afterwards. | |
static void | DebugOutTag (const char *pszPrefixText, EXTAG extag) |
Static method that outputs a line for debugging purposes. The text appears with the EXTAG (in text) appearing afterwards. | |
static void | DebugOutHex (const char *pszPrefixText, int i) |
Static method that outputs a line for debugging purposes. The text appears with the extra digit (in hexadecimal presentation) appearing afterwards. | |
static void | DebugOutBin (const char *pszPrefixText, int i) |
Static method that outputs a line for debugging purposes. The text appears with the extra digit (in binary presentation) appearing afterwards. | |
static void | DebugOutString (const char *pszPrefixText, const char *thestring) |
Static method that outputs a line for debugging purposes (C string version). The text appears with the extra string appearing afterwards. | |
static void | DebugOutString (const char *pszPrefixText, FCString *pString) |
Static method that outputs a line for debugging purposes (FCString version). The text appears with the extra string appearing afterwards. | |
static void | DebugOutBool (const char *pszPrefixText, bool state) |
Static method that outputs a line for debugging purposes. The boolean state appears afterwards as either "TRUE" or "FALSE". | |
static void | DebugOutBlock (const void *pBuffer, int startoffset, int size) |
Static method that outputs a memory block for debugging purposes. Eight bytes per line will appear (as hex digits) until the whole memory block is dumped. | |
static void | DebugOutByteArrayBlock (const void *pBuffer, int startoffset, int size) |
Static method that outputs a memory block for debugging purposes. Eight bytes per line will appear (as hex digits) as a C++ onebyte array, until the whole memory block is dumped. | |
static void | DebugOut (const char *pszLine) |
Static method to output a line of text for debugging purposes. | |
Additional Inherited Members | |
Protected Member Functions inherited from __FCBase | |
__FCBase () | |
The constructor. | |
Class for document-independent font information.
Finale documents maintain a list of internal font IDs which are specific to that document. These font IDs are required for most font operations within the document. For example "Time New Roman" may have font ID 7 in one document and 11 in another. It appears that Finale assigns the ID values as fonts are referenced by the document.
This has the consequence that any time the ID is required, the font may be added to the document to obtain the ID. This can result in an unexpected modification of the document that must be managed as part of an Undo block. Note that all Lua scripts have an automatic Undo block in the main execution path, but you must decide whether to save the document with the font added or roll the changes back by canceling the Undo block. (A true
setting for either HandlesUndo
or NoStore
in the finaleplugin
namespace causes an automatic rollback.)
Examples of methods and functions that require the internal font ID include (but are not limited to)
Set...FontInfo
in its name, with the exception of FCControl and its subclasses. Constants for enigma styles. These are bit-sensitve values that can be combined with bitwise-or.
Lua-supported (0.69)
FCFontInfo::FCFontInfo | ( | ) |
Default constructor. This constructor does not add the font to the current document. However, if you call any method that requires the internal font ID, the font will be added to the current document when that method is called, if it is not already there. (See the detailed description of FCFontInfo for more information.)
Defaults to 12 point Times New Roman.
Lua-supported.
FCFontInfo::FCFontInfo | ( | const FCString & | name, |
double | size, | ||
FLAG_16 | enigmastyles = ENIGMASTYLE_PLAIN ) |
Constructor with name and size and optional styles. This constructor adds the font to the current document if it is not already there, so you must manage the undo block appropriately when using this constructor.
Lua-supported (0.68).
name | The name of the font. For Lua callers, this may be a Lua string. |
size | The size of the font. |
enigmastyles | (optional) a bitwise combination of ENIGMASTYLES values for the font. Defaults to ENIGMASTYLE_PLAIN. |
double FCFontInfo::CalcAverageRomanCharacterWidthEVPUs | ( | ) | const |
Calculates the average width of the roman characters in the font in EVPUs.
Lua-supported (0.68).
|
inline |
Calculates the average width of the roman characters in the font in points.
Lua-supported (0.68).
|
inlineoverridevirtual |
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child class.
Lua-supported.
Implements __FCBase.
void FCFontInfo::CopyFrom | ( | const FCFontInfo * | pInfo | ) |
Copies data from another font info object.
Lua-supported.
|
inline |
Creates a copy of the font info object on the heap.
The caller must remove the created object from the heap after use.
FCString * FCFontInfo::CreateDescription | ( | ) | const |
Returns an FCString containing the description of the font.
C++ callers must dispose of the string using either delete or a smart pointer.
Lua-supported (0.68)
Returns a created FCString object that contains the font information as an Enigma string.
The resulting Enigma string contains tags for font name, size and style.
It's the caller's responsibility to clean up the object after use.
Lua-supported.
pFontTagString | (optional) the tag to use for the font tag. If omitted or NULL, then "^font" is used. |
FCString * FCFontInfo::CreateEnigmaStyleString | ( | ) |
Creates a FCString object and creates the Enigma font style info string, based on only the current font style information.
The caller must delete the created object from the heap after use.
Lua-supported.
|
overridevirtual |
Outputs the class data/information for debugging purposes.
Accessible if PDK_FRAMEWORK_DEBUG is defined.
When child class inherit this method to output the contents of its own members, it should call the parent before providing its own output.
Reimplemented from __FCBase.
|
inline |
Returns true if the font size is absolute.
Lua-supported (also as property).
|
inline |
Returns true if the font style is boldface.
Lua-supported (also as property).
|
inlineoverridevirtual |
Returns the internal class ID for the PDK Framework class. This is implemented mostly because Lua has problems to resolve the true classes of inherited objects.
This method must be overwritten by all child classes.
Lua-supported (also read-only property) (0.55).
Reimplemented from __FCBase.
|
inline |
Gets the font style as standard Enigma bit storage.
Lua-supported (also as property).
|
inline |
Gets the internal document-specific font ID. It may not yet have been assigned a value, depending on which constructor you used. Unless you have a specific reason to inspect the current value, it is safer to use GetIDByName to get the internal font ID. Note, however, that GetIDByName modifies the document by adding the font to it, if the font is not currently in the document.
See further comments at SetFontID.
Lua-supported (also as property) (0.72)
|
inline |
Returns true if the font style is hidden (don't print).
Lua-supported (also as property).
EFONTID FCFontInfo::GetIDByName | ( | ) | const |
Gets the internal Enigma font ID for the current document by searching for the font name. The value in GetFontID is used only to determine if this instance refers to the Default Music Font. If so, the font ID of the Default Music Font is returned (which is always zero in any document).
Note that GetIDByName does not modify the internal font number of the current instance. You can use GetIDByName reliably to assign properties of an FCFontInfo from one document to an instance from another. This is not guaranteed to work for GetFontID.
Lua-supported (0.72).
|
inline |
Returns true if the font is a SMuFL font.
Only supported when running Finale 27.1 or higher. For any version of Finale lower than this, this method always returns false
.
Lua-supported (also as read-only property) (0.59).
|
inline |
Returns true if the font style is italic.
Lua-supported (also as property).
std::string FCFontInfo::GetName | ( | ) | const |
Gets the font name (const C-string version).
Lua-supported (also as property).
|
inline |
Legacy version of GetIDByName with incorrect name.
Lua-supported.
void FCFontInfo::GetNameString | ( | FCString * | pString | ) | const |
|
inline |
Returns the font size as an integer number.
Lua-supported (also as property).
|
inline |
Returns the font size as a floating point (with decimal digits).
Lua-supported (also as property).
|
inline |
Returns true if the font style is strikeout.
Lua-supported (also as property).
|
static |
Returns the internal Engima encoding number for the running Finale version. This value is appended to the font in Enigma strings.
Lua-supported.
|
inline |
Returns true if the font style is underline.
Lua-supported (also as property).
bool FCFontInfo::IsIdenticalTo | ( | const FCFontInfo & | compareWith | ) | const |
Returns true if all font information is identical to the compared object.
Lua-supported.
bool FCFontInfo::IsMacSymbolFont | ( | ) | const |
returns true i the font is a Mac Symbol font.
MacSymbolFonts.txt
in the Configuration Files folder. (See Finale preferences.)Lua-supported (0.72)
bool FCFontInfo::IsName | ( | const char * | pszTestName | ) | const |
Checks if the font name is a perfect match to the C-string test string.
Lua-supported.
pszTestName | Pointer to the font name to test for. Starting with version 0.73, this should be UTF-8 encoded. |
bool FCFontInfo::IsNameString | ( | const FCString & | pTestName | ) | const |
Checks if the font name is a perfect match to the test string.
Lua-supported.
pTestName | Reference to the FCString object to test. |
|
inline |
Returns true if the font has no special style flags.
Lua-supported.
bool FCFontInfo::LoadFontPrefs | ( | int | prefsID | ) |
Sets the font information to any of the preference fonts.
This method handles the FCFontPrefs data in the background.
Lua-supported.
prefsID | Any of the FONTPREF_* constants. |
bool FCFontInfo::MakeDefaultMusicFont | ( | ) |
Changes the document's default music font to match this instance of FCFontInfo and modifies this instance to be the default music font (if successful).
Lua-supported.
void FCFontInfo::MakeEnigmaSizeString | ( | FCString * | pString | ) |
Makes an Enigma string (for use in raw strings) based on only the current font size information.
PDK_FRAMEWORK_ENIGMASTRINGS must be defined at compile time.
Lua-supported.
pString | Pointer to the FCString object where the result will be put. |
Creates an Enigma string (for use in raw strings) based on the current font information.
The Enigma string contains tags for font name, size and style.
Lua-supported.
pString | The string object to put the result in. |
pFontTagString | Optional parameter, that contains a specific font tag with '^' but without '('. Example: ^fontTxt. If this parameter isn't defined, the "^font()" Enigma tag will be used. |
void FCFontInfo::MakeEnigmaStyleString | ( | FCString * | pString | ) |
Makes an Enigma string (for use in raw strings) based on only the current font style information.
PDK_FRAMEWORK_ENIGMASTRINGS must be defined at compile time.
Lua-supported.
pString | Pointer to the FCString object where the result will be put. |
bool FCFontInfo::ParseEnigmaCommand | ( | FCString * | pString | ) |
Parses a valid Enigma font command and changes the font information accordingly.
Lua-supported.
pString | Pointer to a FCString object containing one command. |
bool FCFontInfo::SaveFontPrefs | ( | int | prefsID | ) |
Saves the font information to any of the preference fonts.
This method handles the FCFontPrefs data in the background.
Lua-supported.
prefsID | Any of the FONTPREF_* constants. |
|
inline |
Sets the absolute (fixed font) size state of the font info.
Lua-supported (also as property).
state | True to set the absolute font size state. False to set to relative state. |
|
inline |
Sets the boldface attribute of the font info.
Lua-supported (also as property).
state | True to set the boldface font attribute. False to set to normal state. |
|
inline |
Sets the font style as standard Enigma bit storage.
Lua-supported (also as property).
fontstyles | A bitwise combination of ENIGMASTYLES values. |
|
inline |
Sets the internal document-specific font ID.
Lua-supported (also as property) (0.72)
fontID | The internal font ID. |
|
inline |
Sets the hidden state of the font info.
Lua-supported (also as property).
state | True to set the hidden state. False to set to visible state. |
|
inline |
Sets the italics attribute of the font info.
Lua-supported (also as property).
state | True to set the italics font attribute. False to set to normal state. |
void FCFontInfo::SetName | ( | const std::string & | pszName | ) |
Sets the font name.
Lua-supported (also as property).
pszName | The C-style string name. Starting with version 0.73 this can (and should) be UTF8-encoded. |
void FCFontInfo::SetNameByID | ( | EFONTID | id | ) |
Sets the font name by using the document's internal Enigma font ID.
Lua-supported.
void FCFontInfo::SetNameString | ( | const FCString & | value | ) |
Sets the font name (FCString version).
Lua-supported.
|
inline |
Clears the styles so the font doesn't use any style.
Lua-supported.
|
inline |
Sets the font size as an integer value.
Lua-supported (also as property).
fontsize | The font size in points, as an integer. |
|
inline |
Sets the font size as a floating point (with decimal digits) value.
Lua-supported (also as property).
fontsize | The font size in points, with decimal digits if necessary. |
|
inline |
Sets the strikeout state of the font info.
Lua-supported (also as property).
state | True to set to strikeout. False to set to normal. |
|
inline |
Sets the underline attribute of the font info.
Lua-supported (also as property).
state | True to set the underline font attribute. False to set to normal state. |