cFontNameFont name, such as Arial.
AdvPL GuideFwPrinterFont():GetFromName(cFontName) --> cFontGets font codes for printer.exe.
Methods are static and need no instance. GetFromName maps names to codes with Courier New fallback. Calibri is documented for XLSX rather than all print output. The class requires LIB 20201009+. This example gets the Arial code without dialog or printing. Some syntax lines contain inconsistent names; this subset uses explicitly documented GetFromName. (Sources: refs. 1–1.)
FwPrinterFont():GetFromName(cFontName) --> cFontcFontNameFont name, such as Arial.
FwPrinterFont():GetFromName(cFontName) --> cFontFwPrinterFont():Arial() --> cFont#Include "Protheus.ch"
User Function Ed445()
// Static method: do not construct an object with New.
ConOut(FwPrinterFont():GetFromName("Arial"))
Return NilExpected Arial text code: 01. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.