CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 1999
    Location
    Denver , CO USA
    Posts
    19

    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?


  2. #2
    Join Date
    May 1999
    Posts
    667

    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
  •  





Click Here to Expand Forum to Full Width

Featured