DesignObject.FontScript Property |
Sets or returns an object's text script, or character set of the font. Applies to barcode and text objects.
DesignObject.FontScript = BtFontScript
Where BtFontScript is one of the following constants:
Constant |
Value |
---|---|
btFontScriptArabic |
178 |
btFontScriptBaltic |
186 |
btFontScriptCentralEurope |
238 |
btFontScriptChineseGB2312 |
134 |
btFontScriptChineseBig5 |
136 |
btFontScriptCyrillic |
204 |
btFontScriptGreek |
161 |
btFontScriptHebrew |
177 |
btFontScriptJapanese |
128 |
btFontScriptKoreanHangul |
129 |
btFontScriptKoreanJohab |
130 |
btFontScriptMac |
77 |
btFontScriptOEM |
255 |
btFontScriptSymbol |
2 |
btFontScriptThai |
222 |
btFontScriptTurkish |
162 |
btFontScriptVietnamese |
163 |
btFontScriptWestern |
0 |
Version |
BarTender 9.3 or higher |
Edition |
Automation, Enterprise Automation |
'Declare a BarTender application variable
Dim btApp As BarTender.Application
'Declare a BarTender document variable
Dim btFormat As BarTender.Format
'Declare a BarTender design object variable
Dim btObject As BarTender.DesignObject
'Create a new instance of BarTender
btApp = New BarTender.Application
'Set the BarTender application visible
btApp.Visible = True
'Open a BarTender document
btFormat = btApp.Formats.Open("c:\Format1.btw", False, "")
'Set the object variable
btObject = btFormat.Objects.Find("Text 1")
'Set the font script
btObject.FontScript = BarTender.BtFontScript.btFontScriptWestern
'End the BarTender process
btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges)
// Declare a BarTender application variable
BarTender.Application btApp;
// Declare a BarTender document variable
BarTender.Format btFormat;
// Declare a BarTender design object variable
BarTender.DesignObject btObject;
// Create a new instance of BarTender
btApp = new BarTender.Application();
// Set the BarTender application visible
btApp.Visible = true;
// Open a BarTender document
btFormat = btApp.Formats.Open("c:\\Format1.btw", false, "");
// Set the object variable
btObject = btFormat.Objects.Find("Text 1");
// Set the font script
btObject.FontScript = BarTender.BtFontScript.btFontScriptWestern;
// End the BarTender process
btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);