PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Component
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
gFont (Function)
In French: gPolice
Builds a sequence of characters describing the font that will be used for the text.
WINDEVAndroidiPhone/iPadWindows MobileUniversal Windows 10 App This string is used to describe the font of the text:
  • in an element found in a List Box or Combo Box control.
  • in the title bar and/or status bar of a window.
  • in a Static control.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Versions 22 and later
Stored procedures This function is now available in the code of stored procedures.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
New in version 22
Stored procedures This function is now available in the code of stored procedures.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
Stored procedures This function is now available in the code of stored procedures.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
Example
WINDEVWindows Mobile
// Writes "Chicken" in Arial
ListAdd(LIST_Animals, gFont("Arial") + "Chick")
Syntax
<Result> = gFont(<Font Name> [, <Charset Used>])
<Result>: Character string
Sequence of characters describing the font that will be used for the text.
WINDEVAndroidiPhone/iPadWindows MobileUniversal Windows 10 App This sequence of characters can be:
WEBDEV - Server code This sequence of characters is not interpreted by the controls in WEBDEV. This function can be used to format the string returned by a WEBDEV Webservice consumed by a WINDEV or WINDEV Mobile application.
<Font Name>: Character string with quotes
Exact name of the font. If this parameter corresponds to an empty string (""), gFont has no effect.
<Charset Used>: Optional Integer constant
Constant corresponding to the character set to use. The default character set will be used if this parameter is not specified.
charsetAnsiRoman characters in ANSI standard
charsetArabicArabic characters
charsetBalticBaltic characters
charsetChineseChinese characters (People's Republic of China)
charsetTraditionalChineseTraditional Chinese characters (Republic of Taiwan)
charsetKoreanKorean characters
charsetDefaultUses the default character set defined for the computer. No character set is forced.
charsetEastEuropeCharacters of Eastern Europe (Polish, ...)
charsetGreekGreek characters
charsetHebrewHebrew characters
charsetJapaneseJapanese characters
Versions 20 and later
charsetMac
New in version 20
charsetMac
charsetMac
Characters to the Mac Roman standard (used on the old Macintosh versions).
charsetOccidentalRoman characters in ANSI standard
charsetRussianRussian characters
charsetThaiThai characters
charsetTurkishTurkish characters
charsetVietnameseVietnamese characters
Android This parameter is ignored.
Remarks
  • The default font is restored after the call to this function.
  • All the other characteristics of the font are kept (bold, ...).

Component

Until version 21, gFont was available in the wdxxxobj component. From version 22, this function is now available in the wdxxxmdl component.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230mdl.dll
Windows Mobile wp230mdl.dll
Linux wd230mdl.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment