` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Embedding font in an app
2004-09-01 -- David Bratovich
 
I have used (hand coded program) a couple of API calls to load and unload a font as needed. I've used it for my Geek Clock program to load a digital font for a clock LED type of display. !In your map AddFontResource(*cstring),SIGNED,PASCAL,RAW,NAME('AddFontResourceA') RemoveFontResource(*cstring),BOOL,PASCAL,RAW,NAME('RemoveFontResourceA') !somewhere in the code before opening the window that will use this font... font name = 'SFD2.TTF' W# = AddFontResource(font name) ! Now OK to open window ! other code here... ! before shutting down and after CLOSE(WINDOW) W# = RemoveFontResource(font name)


Today is November 23, 2024, 2:15 am
This article has been viewed 35339 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: