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

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

Copy link
Copy Markdown
Contributor

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

codecov Bot commented Mar 29, 2021

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 19.48052% with 62 lines in your changes missing coverage. Please review.
✅ Project coverage is 45.73%. Comparing base (deb159f) to head (d74b0db).
⚠️ Report is 351 commits behind head on master.

Files with missing lines Patch % Lines
pitop/core/functions.py 18.03% 50 Missing ⚠️
pitop/miniscreen/oled/oled.py 25.00% 12 Missing ⚠️
Additional details and impacted files
@@            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.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lgtm-com

lgtm-com Bot commented Apr 12, 2021

Copy link
Copy Markdown

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