Talk:BGI Stroked Font
Jump to navigation
Jump to search
character layout
The numbers in the description and diagram include 64, and for the above the baseline it ranges from 0 to 64, which is too large a range for a 6-bit number. Do we know enough detail to clarify the range, and to determine if the negative values are simply signed or 2s complement? Carbon14 (talk) 08:26, 21 December 2023 (GMT)
- Looking at the FreeBASIC code, it looks as though the X values is simply signed, and has a range from -63 to +63 with both -ve and +ve 0; while the Y value is a 2s complement with a range of -64 to 63. Carbon14 (talk) 08:26, 21 December 2023 (GMT)
- There was a reason why I wrote it out that way, but it's been so long since I worked on it, I don't remember. I think it had something to do with the baseline counting as a line when it came time to render the character, but not in the file, so the ascender had a range of 63, but +1 because of the baseline. I had the renderer working almost perfectly, but there were still a couple fonts that gave odd results, but I had gotten bored of the format. I did end up compiling a large collection of BGI fonts which you can use if you want to test with. --TheAlmightyGuru (talk) 13:41, 21 December 2023 (GMT)
- Disassembled Borland code and found out how everything works - see chr_draw_char() code example. Would somebody please replace "Y-axis layout" image with the correct example? Thanks! CTPAX-X Team (talk) 11:48, 17 February 2024 (GMT)
- Also "Character Layout" explanation should be rewritten. CTPAX-X Team (talk) 11:53, 17 February 2024 (GMT)