badgemagic-android icon indicating copy to clipboard operation
badgemagic-android copied to clipboard

Implement Option to Change Font

Open mariobehling opened this issue 6 years ago • 10 comments

Currently there is only one standard font implemented. Please implement an option to change the font.

mariobehling avatar May 01 '19 08:05 mariobehling

@mariobehling this is not possible as of now, we need to have some extra pixels in the badge to morph our letters

adityastic avatar May 22 '19 06:05 adityastic

@mariobehling @iamareebjamal please give me an update

adityastic avatar Jun 10 '19 06:06 adityastic

@adityastic This should be possible. It does not depend on the font.

mariobehling avatar Jun 10 '19 07:06 mariobehling

@mariobehling we are talking about the font we send to the device or the font in our application?

adityastic avatar Jun 10 '19 07:06 adityastic

We send bitmap to pixel. Where do we send the font?

iamareebjamal avatar Jun 10 '19 07:06 iamareebjamal

@iamareebjamal yes, we created hexadecimals of every character, then we convert the input string into characters and fetch the respective hexadecimal for the character. We are not sending the font

adityastic avatar Jun 10 '19 07:06 adityastic

By sending the font, I meant the saved hexadecimal codes for every character

adityastic avatar Jun 10 '19 07:06 adityastic

Nobody is talking about sending the font. We're talking about converting the font chars to bitmaps

iamareebjamal avatar Jun 10 '19 08:06 iamareebjamal

That's underestimating work. There's no "magic" way to create bitmap fonts. Either you rasterize the vector/truetype font (on 1bpp that's really bad) which will look usually bad compared to a hand written bitmap. Or you use a Unicode Bitmap font, but I doubt you'll find a matching height and that will grow the app.

fcartegnie avatar Jan 02 '20 19:01 fcartegnie

What about an option to use BDF or PCF bitmap fonts?

I've used them before when driving LEDs.

lanrat avatar Jan 02 '20 19:01 lanrat