Hello,
I need some help fixing this code, it will work fine if it's a .shx font but if it's a .ttf file it can't find the file.
Thanks,Code:(COMMAND "STYLE" "Maven Pro Medium1_3_32" "MavenPro-Medium.ttf" "0.09375" "1.0" "" "" "" "")
Cadd4la
|
Hello,
I need some help fixing this code, it will work fine if it's a .shx font but if it's a .ttf file it can't find the file.
Thanks,Code:(COMMAND "STYLE" "Maven Pro Medium1_3_32" "MavenPro-Medium.ttf" "0.09375" "1.0" "" "" "" "")
Cadd4la
Has the Maven Pro Medium font been installed? It's not part of the huge selection of fonts installed with Windows.
Tried you code with "calibri.ttf" and it worked fine after removing the extra "" at the end.Generally fonts installed in Windows don't use capital letters either.Code:(COMMAND "STYLE" "Calibri.ttf" "calibri.ttf" "0.09375" "1.0" "" "" "")
Have you tried the findfile function to look in the "Fonts" sub-folder of the system root folder? You can find the system root by retrieving the environment variable "SystemRoot" using the getenv function. Of course, you would need to concatenate all of those strings together using the strcat function before supplying it to the findfile function.
If you have a technical question, please find the appropriate forum and ask it there.
You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
jUSt
With TTF you should load manually and check the two variables name and actual name have a look at Arial with its different styles. Arial Black = Ariblk.ttf
It may not make any difference but checking properties Arial Black = ariblk.ttf.
All the TTF's I've checked were all lower case.
Lee Mac's Open lisp Example to open the Fonts Special Folder:can be a useful.Code:(LM:open 20)
Image for font folder https://forums.augi.com/showthread.p...=1#post1348836
also handy for:
Internet Explorer:User Start Menu Programs:Code:(LM:Open 1)All Control Panel Items:Code:(LM:Open 2)the Printers Folder:Code:(LM:Open 3)My Documents Folder:Code:(LM:Open 4)My Favorites Folder:Code:(LM:Open 5)orCode:(LM:Open 6)the Startup Folder: (LM:Open 7)Code:(LM:Open 31)
the Recent Items Folder:the SendTo Folder:Code:(LM:Open 8)the Recycle Bin:Code:(LM:Open 9)User Start Menu:Code:(LM:Open 10)My Music:Code:(LM:Open 11)My Videos:Code:(LM:Open 13)User Desktop:Code:(LM:Open 14)My Computer:Code:(LM:Open 16)the Network Folder:Code:(LM:Open 17)the Network Shortcuts Folder:Code:(LM:Open 18)the Fonts Special Folder:Code:(LM:Open 19)Windows Templates:Code:(LM:Open 20)orCode:(LM:Open 21)Windows Start Menu:Code:(LM:Open 45)Windows Start Menu Programs:Code:(LM:Open 22)Windows Startup Folder:Code:(LM:Open 23)orCode:(LM:Open 24)Public Desktop:Code:(LM:Open 30))Code:(LM:Open 25
User Roaming Folder:Printer Shortcuts Folder:Code:(LM:Open 26)User AppData Local Folder:Code:(LM:Open 27)User Startup Folder:Code:(LM:Open 28)Temporary Internet Files Folder:Code:(LM:Open 29)Cookies Folder:Code:(LM:Open 32)History Folder:Code:(LM:Open 33)My Pictures Folder:Code:(LM:Open 33)though results vary depending on Windows version installed.Code:(LM:Open 33)
Last edited by Tom Beauford; 2021-10-22 at 12:48 PM.