Skip to content

[WIP] Improve auto-wrapping text#254

Draft
m-roberts wants to merge 14 commits into
masterfrom
improve-miniscreen-text-word-wrap
Draft

[WIP] Improve auto-wrapping text#254
m-roberts wants to merge 14 commits into
masterfrom
improve-miniscreen-text-word-wrap

Conversation

@m-roberts
Copy link
Copy Markdown
Contributor

@m-roberts m-roberts commented Feb 25, 2021

Closes #253

This is a draft PR, and is not final.
Still needs a clear strategy for how to find the maximum font size so that the whole text fits into the box, considering height and width (w/word wrapping)
Note: should have a minimum font size

TODOs:
https://github.com/pi-top/pi-top-Python-SDK/pull/254/files#diff-8ff4c1bbe8c2ef3c263d407574ea58158611e8d954011854873177db4d3346e4R20

https://github.com/pi-top/pi-top-Python-SDK/pull/254/files#diff-8ff4c1bbe8c2ef3c263d407574ea58158611e8d954011854873177db4d3346e4R62

@m-roberts m-roberts self-assigned this Mar 28, 2021
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 29, 2021

Codecov Report

Merging #254 (d74b0db) into master (deb159f) will increase coverage by 0.03%.
The diff coverage is 19.48%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #254      +/-   ##
==========================================
+ Coverage   45.69%   45.73%   +0.03%     
==========================================
  Files          50       50              
  Lines        1998     2005       +7     
==========================================
+ Hits          913      917       +4     
- Misses       1085     1088       +3     
Flag Coverage Δ
unittests 45.73% <19.48%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pitop/core/functions.py 18.03% <18.03%> (ø)
pitop/miniscreen/oled/oled.py 30.88% <25.00%> (+2.88%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update deb159f...d74b0db. Read the comment docs.

@lgtm-com
Copy link
Copy Markdown

lgtm-com Bot commented Apr 12, 2021

This pull request introduces 1 alert when merging d74b0db into deb159f - view on LGTM.com

new alerts:

  • 1 for Unused local variable

@m-roberts m-roberts changed the title Improve auto-wrapping text [WIP] Improve auto-wrapping text Aug 10, 2021
@m-roberts
Copy link
Copy Markdown
Contributor Author

This PR is quite old now. It's probably best used as guidance for how to write it properly rather than as the basis for an actual code submission

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

Successfully merging this pull request may close these issues.

Improve auto-wrapping text on miniscreen

2 participants