Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Font from a string pattern - help needed
#10
(08-27-2023, 01:09 AM)bplus Wrote: For one thing:

FOR i% = 0 TO l%   ' <<< Start at 1 not 0, first letter is at 1
        c$ = MID$(s$, i%, 1)

For another I'd block spacing out in fitting the letter pixels in the block like one or 2 more spaces in columns and rows, that way letter blocks can go next to each other without another variable calculation like the 8x16 default font does. eg 2 more spaces on right and below letter pixels. I am lost trying to figure out what that kerning thing is.

BTW I don't see a need to spec source for _Putimage, the destination block is sufficient.

*smacks head* It didn't occur to me to space the font data glyphs LOL.

OK the fixed version is posted, but I think still have some issues based on reading replies here.

I can change colors by creating a new font with a new color when I `CALL F0NT.make_glyph()` I can pass other colors.

Thanks for all your help guys.
grymmjack (gj!)
GitHubYouTube | Soundcloud | 16colo.rs
Reply


Messages In This Thread
RE: Font from a string pattern - help needed - by grymmjack - 08-27-2023, 01:56 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Word Processor Using Single String Pete 3 215 02-28-2026, 12:07 AM
Last Post: Pete
  Custom Font 12x24 CP437 with 24x24 for Roguelike onetruetroy 3 571 10-06-2025, 06:11 PM
Last Post: grymmjack
  generate multiple size fixed-width fonts on the fly (no editor needed) madscijr 13 1,552 07-21-2025, 03:37 PM
Last Post: madscijr
  b+ String Math Update bplus 31 5,177 04-11-2025, 11:56 AM
Last Post: bplus
  I'm adding SQR to my new faster string math routines... Pete 17 3,309 04-01-2025, 04:56 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)