CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2019
    Location
    Texas
    Posts
    3

    Working with fonts and data

    Ok, I created my own font for a replacement for English. I use it in my personal journal both on the pc and on paper. Right now, in my Revenline journal program I designed, I use an ascii shift cypher to give a low level of encryption. The nice thing about that is that it encodes the spaces too, so looking at the data through a file viewer, you see gibberish, and no spaces to tell how long a particular word is. However I would love to find a way to write the data to the file in wysiwyg format so the letters look like the shapes in the font, and not just English letters.

    Thanks in advance
    Larry

  2. #2
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Working with fonts and data

    If a text file is opened with notepad it will use whatever font is selected in notepad. .rtf .doc and some others let you set the font so when opened by a user with a compatible program thay will display with the original font provided the user has that font installed on their PC.
    Always use [code][/code] tags when posting code.

  3. #3
    Join Date
    Sep 2019
    Location
    Texas
    Posts
    3

    Re: Working with fonts and data

    Quote Originally Posted by DataMiser View Post
    If a text file is opened with notepad it will use whatever font is selected in notepad. .rtf .doc and some others let you set the font so when opened by a user with a compatible program thay will display with the original font provided the user has that font installed on their PC.
    This is true, however I want the file to be written to the hard drive in the font I have created, so the data file can contain no font but mine. As someone here pointed out it would have to be saved as an image file, and then I'd have to figure out how to convert the image back in to text when I load the file into the journal program.

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Working with fonts and data

    This seems like a roundabout approach to being able to read and write to an encrypted file.

  5. #5
    Join Date
    Sep 2019
    Location
    Texas
    Posts
    3

    Re: Working with fonts and data

    Quote Originally Posted by Arjay View Post
    This seems like a roundabout approach to being able to read and write to an encrypted file.
    Yes actually it is however some of the esoteric programming languages on the esolang wiki read a png graphic and get the source code from it. It is doable I just do not know how to do it.

  6. #6
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Working with fonts and data

    Quote Originally Posted by Larryrl View Post
    Yes actually it is however some of the esoteric programming languages on the esolang wiki read a png graphic and get the source code from it. It is doable I just do not know how to do it.
    Get the source code? Huh, what are you trying to do? Embed source code in an image?

Tags for this Thread

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