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

epd2in9d text is way too tiny #71

Closed
mattyteaks opened this issue Dec 7, 2022 · 4 comments
Closed

epd2in9d text is way too tiny #71

mattyteaks opened this issue Dec 7, 2022 · 4 comments

Comments

@mattyteaks
Copy link

mattyteaks commented Dec 7, 2022

Understanding this is a small screen, I can not figure out how to get the font size up to a readable size on even the most basic plugin layouts.

For example, in just trying to use the two_rows_text_only layout of the librespot_client plugin, the song title is perfectly readable, but the artist name is in a tiny unreadable size, all the way at the bottom. The artist name is more legible in the default layout with album art than it is here, but I can not figure out how to properly get the fonts to render.

Understanding this might just be my novice ignorance, any ideas or maybe a nudge in the right direction?

@txoof
Copy link
Owner

txoof commented Dec 8, 2022

@mattyteaks
There isn't a way to directly control the font size for a given layout. The font size is calculated based on the width and height of the font and number of pixels available to the layout block. That is to say, the best way to influence the font size in a block is to:

  1. Increase the amount of space available for a font
  2. Choose a font that has better proportions and letter sizing

You can try playing with the two_rows_text_only layout in /usr/local/paperpi/plugins/librespot_client/layout.py. Try adjusting line 12 and line 27. They should add up to exactly 1.0.

You can also try removing the padding (set it to 0). Finally, try a more slender font. Economica might fit better in that space.

The easiest way to test without setting up a development environment is to make a change, then restart paperpi: sudo systemctl restart paperpi-daemon.service

You can find documentation for working with layouts here

If you have something that works better on your screen, I would be really appreciate it if you shared it back with the project. I'll make to roll it into the layout.

@mattyteaks
Copy link
Author

Alright, awesome! Thanks for that. That's definitely got me on the right path.
Turns out, I was not working with the layouts under the root user.

Will play around with various settings and definitely share what I can get to work best for the text-driven plugins and splash screen on smaller screens.

@txoof
Copy link
Owner

txoof commented Dec 9, 2022

You can also try fiddling with the max_lines parameter. It's currently see to 2 lines, but maybe 1 will work for you.

@txoof
Copy link
Owner

txoof commented Dec 11, 2022

@mattyteaks I'm closing this issue, but if you have any suggestions for improving the layout, feel free to add them as a PR, or a comment here.

@txoof txoof closed this as completed Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants