WIP: change sp to dp to ignore system wide font size preference
#115
Closed
eUgEntOptIc44
wants to merge 2 commits from eUgEntOptIc44:eugentoptic44-change-sp-to-dp
into master
Loading…
Reference in New Issue
There is no content yet.
Delete Branch 'eUgEntOptIc44:eugentoptic44-change-sp-to-dp'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Hi @starfish, @rz
This PR is meant to fix #114.
According to this source: https://stackoverflow.com/a/21546897.
Changing
sp
todp
(density-independent pixels -> docs) should ignore the system wide font size preferences.If not then this code might fix it:
Source: https://stackoverflow.com/a/57225687
As the title suggests this is WIP as I'm currently unable to test any of this due to resource conflicts.
This PR is just the result of a short StackOverflow search and not based on technical knowhow at all. Would love to see more people looking into this.
Regards, Jean-Luc
seems to be resolved in #114
@eUgEntOptIc44 no need to override code, I can simply change sp to dp in the dimens.xml. This way, it takes effect everywhere (widgets, etc.).
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Forgejo.