Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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

What I have tried:

Haven't tried anything as I am at a loss as to what to try.
Posted
Updated 24-Sep-19 10:54am
Comments
Dave Kreskowiak 24-Sep-19 12:48pm    
"ascii shift cypher"? LOL! That's not encryption in any sense of the word today. That's called a "puzzle" for people to solve.

The spaces may be converted to a difference character, but that character is still used as a space and occurs at a rather regular intervals. You can still make out word boundaries just by looking for that character. This makes it easier to figure out the rest of the letters and what they mean.

There are on-line cipher solvers that will decode your "encrypted" text in seconds, just by using pattern analysis.

That's a seriously low level of encryption - it's not going to protect you from anybody who really wants to know what you are protecting - heck, it pretty much screams "this is important to me!" to make it obvious what to try attacking first ... and there are whole magazines published every month so little old ladies can crack cyphers ...

Your other problem is that font usage is not generally a file matter - it's a matter for the presentation layer: the software which reads the file and displays it. So unless the presentation software knows which font to use and / or the file references a font in a way that the presentation software understands then it just isn't going to happen.
Straight text or binary file viewers don't do that, because straight text or binary files don't contain font information! Word and Excel do for example - because DOC / DOCX and XLS / XLSX file formats specify font usage on a word / letter / paragraph / document basis.

So the basic answer to your question is "No", with a big side order of "not unless you write the file so that a font-aware app can read it".
 
Share this answer
 
Quote:
Is there a way to write data to a file in the font that was used in the software

This makes non sense, it look like a big misconception.
Chars stored in a file are no related to a font, not even remotely.
Quote:
I use an ascii shift cypher to give a low level of encryption.

What you describe is a variant of ROT 13 encoding or a XOR cypher, both are probably the simplest way to encode text, but they are also the easiest to break. People used to this kind of coding can read the text directly without even decoding it.
ROT13 - Wikipedia[^]
XOR cipher - Wikipedia[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900