Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Before I even attempt to begin this project, I'd like to know if it's possible.

I would like to be able to list the contents of a specific font file, including the accompanying character map symbols for that file, in separate listboxes. For example, all numbers in one box, all letters in another and finally, symbols in another.

The user will then be able to select items from each listbox, and have the combination they selected appear in a label or textbox that they can copy and paste into a different program.

What I have tried:

Just a repeat of the above explanation.

Before I even attempt to begin this project, I'd like to know if it's possible.

I would like to be able to list the contents of a specific font file, including the accompanying character map symbols for that file, in separate listboxes. For example, all numbers in one box, all letters in another and finally, symbols in another.

The user will then be able to select items from each listbox, and have the combination they selected appear in a label or textbox that they can copy and paste into a different program.
Posted
Updated 16-May-19 7:58am
Comments
Mehdi Gholam 16-May-19 13:35pm    
"Character map" in windows?

 
Share this answer
 
v2
Comments
BillWoodruff 16-May-19 20:39pm    
+5
Quote:
For example, all numbers in one box, all letters in another and finally, symbols in another.

Well ... no.
The problem is that fonts aren't specifically "character" related, in the sense that "'0' to '9' are numbers", "'A' to 'Z' and 'a' to 'z' are letters" and so on.
A font just describes the shape of a character that will be displayed using a specific ASCII or Unicode value in that particular font. So if you look at Wingdings for example, '!', '"', '4', and '5' will display as symbols '!', '"', '4', and '5'

Worse, in some fonts you will find several different "Shapes" for numbers - 0-9 as we are used to, ٠-٩ for Persian numbers, and so on.

And there isn't anything in the font to tell you "these are numbers".
 
Share this answer
 
Comments
Smeezy 23-May-19 13:00pm    
Thanks to all who replied to this. What I did was put each letter, symbol and number into its own label. I then added a click event to each one, adding its contents to a textbox where they each concatenate to the previous one. It works perfectly.

My next issue involves a multiline textbox. If I have three lines for example, how can I add text to lines other than the last one? Each time I add something, no matter where the caret is, it adds it to the last line in the box.

This is the same program my original question was about. It works as I need it to with one line, but would serve a better purpose with a multiline box. Any ideas?

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