CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2001
    Location
    Pakistan
    Posts
    20

    Font & font size of .txt file

    I picked up data from .txt file. But i want to get font name and font size of .txt file so that render it properly. Note pad shows data in its font and font size accordingly.

  2. #2
    Join Date
    Jun 2001
    Location
    UK
    Posts
    128
    .txt files only store the asci characters...they don't store any font/size details.

    It would have to be a rich text file format or some other file format if you needed to store such information.

  3. #3
    Join Date
    Jul 2001
    Location
    Pakistan
    Posts
    20
    Then how note pad shows the data in font and font size set by the user. U write text and set font and font size. close notepad and then reopen notepad, ur font and fontsize is preserved.

  4. #4
    Join Date
    Jun 2001
    Location
    UK
    Posts
    128
    but notepad sets a reminder in your registry...so it knows what font/size you where using last.

    If you open a different .txt file with notepad...it should use the last settings.

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