home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!swrinde!mips!darwin.sura.net!jvnc.net!nuscc!iti.gov.sg!news
- From: kwanghan@iti.gov.sg (Tan Kwang Han)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Loading Fonts created with Font Editor
- Keywords: Loading FONTS
- Message-ID: <1992Aug27.120508.12307@iti.gov.sg>
- Date: 27 Aug 92 12:05:08 GMT
- Sender: news@iti.gov.sg (News Admin)
- Organization: Information Technology Institute, National Computer Board, S'pore
- Lines: 20
-
- I created some new characters using the font editor in WINSDK
- After decalring them in my .RC file as 999 FONT MyFont.FNT
- I proceed to load the font resource with
- handle = LoadResource(hInstance, FindResource(hInstance,"#999",RT_FONT));
- hFont = (LPHANDLE) LockResource(handle);
-
- SelectObject(hDC,hFont);
- TextOut(hDC,x,y,szMsg,sizeof(szMsg));
-
- The output defaulted to the system fonts.
-
- I substituted the LoadResource().. LockResource()
- to AddFontResource("MyFont.Fnt") to no relief either.
-
- Can someone help or better still any sample code :)
- ---
- TAN Kwang Han /* All comments are mine alone */
- Information Technology Institute, National Computer Board, Singapore
- Internet : kwanghan@iti.gov.sg | Voice : (65) 7720 548
- Bitnet : kwanghan@itivax.bitnet | Fax : (65) 7795 966
-