cosmicvoid
Master
Where are you located?
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
This is calculating the index (a) into the character tables. The tables start with char 'firstchr_x' at index 0.I try to understand LCDChar()..
In this function if i pass 'A' in this function then after a = chr - firstchr_L; statement which value pass Decimal (65 - 32) or Hexa (0x41 - 0x20) of 'A' ...
After this which value of 'a' going in this statements
This is fetching the length (number of columns) and pointer to the bit pattern for the character at index 'a'.len = lentbl_L[a]; // number of columns
bitp = chrtbl_L[a]; // bitmap data pointer
"CJ_code & FONT16" is testing the control/justify code to see if FONT16 size is specified.Also tell me about this statements
CJ_code & FONT16
mask & bits
If "ABSJ" is specified, then the absolute column value is contained in strg.col, and is not gotten from the justify position table.can u please explain me this statements.. I try to understand LCDText()..
In this if i write strg.cj_code = FONT16 + ABSJ..then what is the value of column after this statement "column = JustTbl - a"...??
So, you're saying that you need a font that is larger than 64*64 pixels? I'm not sure how that would be used on a 240*320 display. You could only fit a few characters across the screen.... I could not figure out how to get larger font for my graphic LCD application.
It looks like they might have used a program similar to mine and others available online. The only difference I see is their font is one huge 2 dimensional array, whereas mine has each character declared individually, along with an array of pointers to the chars.I am doing a Uni project and working on 2.4" and 3.2" graphic LCD (240 x 320) demo kit. In the firmware package provided with the kit, there is a header file contains the 8x8 & 8x16 font (see attachment). But I don't know how they did create that.
I'm sorry, but my program is rather limited, and can only handle 64*64 bit characters. I decided this because the 64 bit integer is the largest that is convenient to use in programming. To make larger pixel arrays would take a lot more work, and I was trying to be lazy about this program. Plus, I can't think of any real use for bitmap characters larger than 64 bits; if you need larger, it might be better to use a different program to scale up a TrueType font (or other scalable type) to the size you need.If it's possible, could you please advise whether your program can convert character with much larger font (e.g. 80 x 160???) to hex format in similar format with the file I have attached.
I'm not really sure what your goal is with huge fonts on a small display. If you only need a few symbols (not a whole alphabet), then you could divide your symbols into 64*64 bit chunks, and make up the chunks so that putting them adjacent to each other on the screen (like an array of cells) will produce the large symbol. Else, I don't have any suggestion, unless you can give more details.Or any suggestion from you would be very much appreciated.
[SIZE="1"]
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 11111111, 11111111, 11111111,
00001111, 11111111, 11111111, 11111111,
00001111, 11111111, 11111111, 11111111,
00000000, 00000000, 00000000, 00000000,
00000000, 00000000, 00000000, 00000000,
00000000, 00000000, 00000000, 00000000,
00000000, 00000000, 00000000, 00000000,
00000000, 00000000, 00000000, 00000000,
00000000, 00000000, 00000000, 00000000,
00000000, 00000000, 00000000, 00000000,
00000000, 00000000, 00000000, 00000000,
00000000, 00000000, 00000000, 00000000,
00000000, 00000000, 00000000, 00000000,
00000000, 00000000, 00000000, 00000000,
00000000, 00000000, 00000000, 00000000,
00000000, 00000000, 00000000, 00000000,
00000000, 00000000, 00000000, 00000000,
00000000, 00000000, 00000000, 00000000,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 10000000, 00000000, 00011111,
00001111, 11111111, 11111111, 11111111,
00001111, 11111111, 11111111, 11111111,
00001111, 11111111, 11111111, 11111111
[/SIZE]
Thanx.Hi Cosmic void. I dl'd your tool and its very nice.
I only have two PCL fonts that are 8 pixels high, and they are so nasty looking that I didn't include them in the package, but you can have them. I also have a homemade 8x8 font that I used for small LCD displays; you can have that also. You realize that an 8x8 font will not be very pretty.For my app I need a subset of "Windows Latin" in an 8x8 font. I looked at the fonts included with your software but could find no 8x8 fonts.
Well, if you're talking about the font files I supplied, the PCL encoded fonts are not exactly 'rare', though there is not much call for them in the Windows OS environment, but you can find them online if you search a bit (there are even programs than will convert Windows fonts to PCL fonts); if you're talking about the font files that my program stores data in, those are my own proprietary format.I also see noticed that the characters don't appear to be in any encoding I'm familiar with. Is there an 8x8 font in any recognizable encoding? Even if its a subset, it would be a real help to not have too generate the whole font.