ISch_FontManager2 interface
The ISch_FontManager2 interface represents the internal font manager in Schematic Editor that manages fonts for text based objects on schematic documents. The ISch_FontManager2 is the same as ISch_FontManager, but all the methods have the Safecall calling convention which is important for SDK purposes.
public interface ISch_FontManager2
Namespace: SCH · Assembly: Altium.SDK.Interfaces
Remarks
To have access to the ISch_FontManager interface, read SCH.GlobalVars.SchServer;
Properties
| Property | Type | Access | Description |
|---|---|---|---|
| Bold | bool | get | This Bold property determines the Bold style for the font. |
| DefaultHorizontalSysFontId | int | get | |
| DefaultVerticalSysFontId | int | get | |
| FontCount | int | get | The FontCount property returns the number of fonts used in the computer system that the Altium Designer is currently residing on. |
| FontName | string | get | This indexed FontName property returns the name of an indexed font as a string. |
| Italic | bool | get | This Italic property determines the Italic style for the font. |
| Rotation | int | get | The Rotation property determines the orientation of the text object. |
| SaveFlag | bool | get | |
| Size | int | get | The Size property determines the font size. |
| StrikeOut | bool | get | The StrikeOut property determines whether the font is striked out or not. |
| UnderLine | bool | get | This UnderLine property determines whether the font is underlined or not. |
Bold
This Bold property determines the Bold style for the font.
bool GetState_Bold(int argnId);
Type: bool · Access: read-only · Index: argnId (int)
See also: ISch_FontManager, ISch_FontManager2.GetFontID
DefaultHorizontalSysFontId
No description yet.
int GetState_DefaultHorizontalSysFontId();
Type: int · Access: read-only
DefaultVerticalSysFontId
No description yet.
int GetState_DefaultVerticalSysFontId();
Type: int · Access: read-only
FontCount
The FontCount property returns the number of fonts used in the computer system that the Altium Designer is currently residing on.
int GetState_FontCount();
Type: int · Access: read-only
See also: ISch_FontManager
FontName
This indexed FontName property returns the name of an indexed font as a string. Every computer could have a different table of fonts used.
string GetState_FontName(int argnId);
Type: string · Access: read-only · Index: argnId (int)
Italic
This Italic property determines the Italic style for the font.
bool GetState_Italic(int argnId);
Type: bool · Access: read-only · Index: argnId (int)
See also: ISch_FontManager2.GetFontID
Rotation
The Rotation property determines the orientation of the text object. For ISch_Labels, it is necessary to set the Orientation property of these ISch_Labels as well as the Rotation property for the FontID variables.
int GetState_Rotation(int argnId);
Type: int · Access: read-only · Index: argnId (int)
SaveFlag
No description yet.
bool GetState_SaveFlag(int argnId);
Type: bool · Access: read-only · Index: argnId (int)
Size
The Size property determines the font size.
int GetState_Size(int argnId);
Type: int · Access: read-only · Index: argnId (int)
See also: ISch_FontManager, ISch_FontManager2.GetFontID
StrikeOut
The StrikeOut property determines whether the font is striked out or not.
bool GetState_StrikeOut(int argnId);
Type: bool · Access: read-only · Index: argnId (int)
See also: ISch_FontManager, ISch_FontManager2.GetFontID
UnderLine
This UnderLine property determines whether the font is underlined or not.
bool GetState_UnderLine(int argnId);
Type: bool · Access: read-only · Index: argnId (int)
See also: ISch_FontManager, ISch_FontManager2.GetFontID
Methods
| Method | Returns | Description |
|---|---|---|
| GetFontID | int | This method retrieves the font ID of TFontID type that can be used to set the font style of a text based object such as a ISch_Label object. |
| GetFontSize | int | |
| GetFontSpec | void | Every font used in the Schematic document has its own FontID. |
| Import_FromUser | bool | |
| IsFontVertical | bool | This method determines whether the font is vertically orientated or not. |
GetFontID
This method retrieves the font ID of TFontID type that can be used to set the font style of a text based object such as a ISch_Label object.
int GetFontID(int argSize, int argRotation, bool argUnderline, bool argItalic, bool argBold, bool argStrikeOut, string argFontName);
| Parameter | Type | Passing |
|---|---|---|
argSize | int | value |
argRotation | int | value |
argUnderline | bool | value |
argItalic | bool | value |
argBold | bool | value |
argStrikeOut | bool | value |
argFontName | string | value |
Returns: int
GetFontSize
No description yet.
int GetFontSize(int argFontID);
| Parameter | Type | Passing |
|---|---|---|
argFontID | int | value |
Returns: int
GetFontSpec
Every font used in the Schematic document has its own FontID. You can invoke the GetFontSpec method to retrieve font specifications for the supplied Font ID.
void GetFontSpec(int argFontID, ref int argSize, ref int argRotation, ref bool argUnderline, ref bool argItalic, ref bool argBold, ref bool argStrikeOut, ref string argFontName);
| Parameter | Type | Passing |
|---|---|---|
argFontID | int | value |
argSize | int | ref |
argRotation | int | ref |
argUnderline | bool | ref |
argItalic | bool | ref |
argBold | bool | ref |
argStrikeOut | bool | ref |
argFontName | string | ref |
Returns: nothing (void)
Import_FromUser
No description yet.
bool Import_FromUser(ref int argFontID);
| Parameter | Type | Passing |
|---|---|---|
argFontID | int | ref |
Returns: bool
IsFontVertical
This method determines whether the font is vertically orientated or not.
bool IsFontVertical(int argFontID);
| Parameter | Type | Passing |
|---|---|---|
argFontID | int | value |
Returns: bool