Use fixed width font for composing as well (new messages and replies)#10624
Conversation
|
Do you have some test screenshots? I don't seem to be able to produce a fixed result in the TB app. Monospace on does show in the reader for plain text messages, as expected, but not in the message compose view, which this should fix. |
|
I'm just wondering now whether you are actually running with my changes or accidentally have an unpatched version? Maybe inserting some Log.i statements near my changes (both inside and outside the condition) to see whether they show up in logcat? |
|
It seems to hit the code while debugging, and it shows the monotype font on the preview, but it never shows it in the compose message view. I tried a clean build and uninstalling/reinstalling, as well as using both my personal device and the simulator. Nothing showed monotype font on the compose view. |
|
You mean, you see or could it be that somehow your font definitions were messed up, i.e. the monospace font was not actually monospace? (not sure whether that such a thing is possible in Android...) |
|
The setting is detected properly, the code is executed, but monotype is not set. I'm not entirely sure why, but I have two devices that do not display it. We may have to test it further |
So, how do we go from here? |
|
Do you also see a fixed width font in the new message area above the quoted text? I think I'll have a few other people look at it to see if anyone else sees monospace font on the quoted message or in the reply text area. |
|
Do you mean the attribution line (just above quoted text)? => Yes, that's fixed too. Or do you mean anything in the header, such as the Subject? => That's proportional. However, a fixed font is less needed here, IMHO, as alignment plays a lesser role. |
|
Yes |
|
Just on the off chance that between the time I submitted this, and you tried it something might have changed elsewhere that broke it, I synced my fork, recompiled, and retried: it still works, both in replies and in new messages. A number of apks are build, I use the ./app-thunderbird/build/outputs/apk/foss/debug/app-thunderbird-foss-debug.apk |
|
With app-thunderbird-full-debug.apk, it works too |
|
Had a few people here test it and we found something funny, it is a per-device issue. I found an old Pixel and got it set up to find that the composer text will be monospace but the quoted text won't be until you go to edit it. No situation makes it monospace on at least two Motorola phones. So, seems it's one of those fun Android distro quirks. |
|
Thanks for your contribution! Your pull request has been merged and will be part of Thunderbird 17. We appreciate the time and effort you put into improving Thunderbird. If you haven’t already, you’re welcome to join our Matrix chat for contributors. It’s where we discuss development and help each other out. https://matrix.to/#/#tb-android-dev:mozilla.org |
|
Thanks for having taken this despite it not working on some phones :-) |






This pull request makes thunderbird use a fixed width font for composing a well (both new message and reply), if user has chosen a fixed width font for viewing.
Fixes #907 , at least partly (re-uses fixed-width option for viewing, rather than create a new one. Creating a new setting seems to not work in Thunderbird currently, that new setting won't be remembered)
This aligns Thunderbird on Android's behavior more with Android on desktop's behavior where composition can use a fixed width font since long ago.