Click to See Complete Forum and Search --> : Half Point Fonts


rPlush
October 5th, 1999, 06:20 PM
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?

ChrisD
October 5th, 1999, 09:18 PM
Use CreatePointFont the pointsize parameter is in tents of a point so 11.5 point would be 115.

HTH,
Chris