Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Option to Change Font #239

Open
mariobehling opened this issue May 1, 2019 · 12 comments · May be fixed by #1259
Open

Implement Option to Change Font #239

mariobehling opened this issue May 1, 2019 · 12 comments · May be fixed by #1259

Comments

@mariobehling
Copy link
Member

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

@adityastic
Copy link
Collaborator

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

@adityastic
Copy link
Collaborator

adityastic commented Jun 10, 2019

@mariobehling @iamareebjamal please give me an update

@mariobehling
Copy link
Member Author

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

@adityastic
Copy link
Collaborator

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

@iamareebjamal
Copy link
Member

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

@adityastic
Copy link
Collaborator

@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
Copy link
Collaborator

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

@iamareebjamal
Copy link
Member

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

@fcartegnie
Copy link

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.

@lanrat
Copy link

lanrat commented Jan 2, 2020

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

I've used them before when driving LEDs.

@Garv0504
Copy link

hey @mariobehling is this issue is currently open? If open then I would like to work on this.

@mariobehling
Copy link
Member Author

@Garv0504 There is a PR open here, but it is not merged yet.

#1194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment