Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector font #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

MikhailPodkur
Copy link

Cyrillic vector font added
Example added

Cyrillic font 8*12 added.
65k color (2 byte per point) schema added.
Windows components font could be getted from current GUI by default
@ganeshkumarsw
Copy link

Hi
Can you help me out with this vector font concept. I am interested in it. I would like to know how to generate vector font array. If you have or know any wiki page where I can learn things please do share. Thanks for your effort.

@MikhailPodkur
Copy link
Author

Good day, ganeshkumarsw
As you see, char array, used to represent vector font consists of 256 strings. Each string represents one font character. I.e. string on place 0x21 eqals "24202636342430343020" represents character '!'. Each four digits of the string means X,Y coordinates of begin and end of the line. I mean that that string which represents char '!' is the set of lines: from (2,4) to (2,0); from (2,6) to (3,6); (3,4) to (2,4) and so on. Now you could draw symbol line by line. And when you have X,Y coordinates you can scale it as you wish.
I see that each symbol represented by string. I think that it's easy to organize array of 256 subarrays with different length. But "by default"(using 0..9) you can draw base vector symbol in 10x10 matrix. If you want you can use other symbols with codes more than 0x39 to increase symbol base matrix.

@ganeshkumarsw
Copy link

Hi Mikhail,
Thanks for sharing the information.

@keithdr00
Copy link

Hi Mikhail,

Thanks for sharing your work. I'm curious as to how you generated (or where you found) the vector information for the Cyrillic font? I would love to use your vector font support with an English font, but I'm having trouble finding the vector information (or a tool to generate it) for such a font.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants