|
-
October 5th, 1999, 06:20 PM
#1
Half Point Fonts
I am having problems finding a way to create half point fonts. My scenerio is this, I am converting an MS Word RTF saved file into a specific file format. To do this correctly, I obtain the size of a given string to determine if it fits on a given line. The problem that I am running into, is that RTF files give the font size in integer values, which is fine until I come across an odd number. For example, an RTF file will have the font size as 23, which really means the font size is 11.5. Is there anyway using MFC to create a half point font. All CFont creation functions take integers or longs for the font size. Is it possible to create half point fonts?
-
October 5th, 1999, 09:18 PM
#2
Re: Half Point Fonts
Use CreatePointFont the pointsize parameter is in tents of a point so 11.5 point would be 115.
HTH,
Chris
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|