Fonts from String Patterns
#2
Heart  LOL STARFISHING

Dude, you're amazing. Thank you for making this. I'll study and see how I can ruin it and put it into my library LOL.

I might have questions!

You said something about @CharlieJV having a BAM version? Can you share that information please Smile

Also, if you look at the final version of our combined work I added a few functionalities that might be useful to add to yours.
- Save glyphs to disk as BMP images (uses Galleon SaveImage).

In the thread I started, I posted a final version added with your help.

Thanks again. I won't derail your own thread.

A couple of thoughts though!

We have single color fonts right now. We could simply add color support using an XPixMap (XPM) format approach!
https://en.wikipedia.org/wiki/X_PixMap

I was thinking instead of X, we could simply use hex numbers to identify up to 16 colors, and we could have each font have it's own colors stored in it, in this way while we're using it as a font, it's actually a tile system that is easily used.

Code: (Select All)
#define XFACE_format 1
#define XFACE_width 48
#define XFACE_height 48
#define XFACE_ncolors 2
#define XFACE_chars_per_pixel 1
static char *XFACE_colors[] = {
"a", "#ffffff",
"b", "#000000"
};
static char *XFACE_pixels[] = {
"abaabaababaaabaabababaabaabaababaabaaababaabaaab",
// and so on for 48 rows with 48 pixels
^ From the wiki link...

Also check this it shows a good example of what I'm saying.
https://www.reddit.com/r/programming/com...est_image/

It might be a really fun project for you guys to add XPM support to QB64PE natively Tongue

But I digress, and thank you again for your sweet work. You have such a great personality and I am really impressed by how terse and to the point your code is compared to mine.

Like this part in your
FPrint
routine:
Code: (Select All)

If Asc(PA$(a), i) <> Asc(".") Then
Line (x% + ((l - 1) * (sq + spacing%) + c) * scale%, y% + r * scale%)-Step(scale%, scale%), colr~&, BF
End If

My brain is Confused

Also should I be using
_UNSIGNED LONG
for all my _RGB32 colors?

Heart
grymmjack (gj!)
GitHubYouTube | Soundcloud | 16colo.rs
Reply


Messages In This Thread
Fonts from String Patterns - by bplus - 08-27-2023, 02:49 PM
RE: Fonts from String Patterns - by grymmjack - 08-27-2023, 05:24 PM
RE: Fonts from String Patterns - by CharlieJV - 08-27-2023, 06:14 PM
RE: Fonts from String Patterns - by CharlieJV - 08-27-2023, 06:18 PM
RE: Fonts from String Patterns - by Dav - 08-27-2023, 06:37 PM
RE: Fonts from String Patterns - by bplus - 08-27-2023, 06:39 PM
RE: Fonts from String Patterns - by jcm - 08-27-2023, 11:27 PM
RE: Fonts from String Patterns - by mnrvovrfc - 08-28-2023, 12:45 PM
RE: Fonts from String Patterns - by bplus - 08-28-2023, 01:54 AM
RE: Fonts from String Patterns - by vince - 08-28-2023, 12:41 PM
RE: Fonts from String Patterns - by bplus - 08-29-2023, 03:14 PM
RE: Fonts from String Patterns - by grymmjack - 08-29-2023, 10:40 PM
RE: Fonts from String Patterns - by grymmjack - 08-29-2023, 10:44 PM
RE: Fonts from String Patterns - by grymmjack - 08-29-2023, 10:54 PM
RE: Fonts from String Patterns - by bplus - 08-30-2023, 12:36 AM
RE: Fonts from String Patterns - by grymmjack - 08-30-2023, 03:01 PM



Users browsing this thread: 3 Guest(s)