VOOZH about

URL: https://bugzilla.mozilla.org/show_bug.cgi?id=90440

⇱ 90440 - we should remove "font.size.unit" in nsPresContext.cpp, or fix other code that uses "font.size.*" to use it


Closed Bug 90440 Opened 24 years ago Closed 8 years ago

we should remove "font.size.unit" in nsPresContext.cpp, or fix other code that uses "font.size.*" to use it

we should remove "font.size.unit" in nsPresContext.cpp, or fix other code that uses "font.size.*" to use it
Core
Internationalization
Trunk
x86
Windows 2000
defect
Not set
normal
Points:
---
RESOLVED FIXED
RESOLVED
FIXED
Future
Iteration:
---
a11y-review
Accessibility Severity
Performance Impact
Size Estimate
Webcompat Priority
Webcompat Score
Tracking Status
firefox59 --- fixed
Tracking Status
relnote-firefox
thunderbird_esr115
thunderbird_esr140
firefox-esr115
firefox-esr140
firefox-esr153
firefox59
firefox152
firefox153
firefox154
---
QA Whiteboard:
---
Has STR:
---
Change Request:
---
Bug Flags:
Signature:
None
This bug is publicly visible.

 
we should remove "font.size.unit" in nsPresContext.cpp, or fix other code that uses "font.size." to use it that pref is to allow users to say their fonts are in pixels (px) or points (pt) there's a whole bunch of other font code that looks like it is assuming fonts are in pixels. if a user set "font.size.unit", all that other code would break. sorry asa, I wanted to assign this to erik, but he's gone.

Updated

24 years ago
Blocks: 89842
->layout
Assignee: asa → karnaze
Component: Browser-General → Layout
QA Contact: doronr → petersen
->i18n
Assignee: karnaze → nhotta
Component: Layout → Internationalization
QA Contact: petersen → andreasb

Comment 3

24 years ago
Reassign to yokoyama, cc to shanjian, ftang.
Assignee: nhotta → yokoyama

Updated

24 years ago
Status: NEW → ASSIGNED
Target Milestone: --- → Future

Comment 4

24 years ago
I suggest to combine the value and the unit as in CSS, i.e., prefs values can now be specified as font.size = '10px'. This is easy to remember and less error-prone now that the CSS syntax is getting entrenched in people's habits. Then the nsPresContext.cpp code can be changed to RFind() 'px' or 'pt' (this is the only place to do so, hence less invasive). And to remind people to explicitly set the unit, an assertion could be fired when a value without unit is found, but a value without unit would be assumed to be in pixel. How does this sound. I am in the midst of font changes (bug 74186 and friends) and can easily incorpoprate this in my changes.
ftang, shanjian: can you comment on rbs's?
Sounds good to me, if we have to continue supporting 'pt' at all. :-)
Changing QA contact to bobj for now. Bob, please re-assign further as you see is appropriate.
QA Contact: andreasb → bobj
QA Contact: bobj → i18n
The default value is 'px'. The alternative value is 'pt', but it's not clear that changing it to 'pt' will actually work sensibly. It was first suggested that this pref be removed 17 years ago, and it doesn't appear to have become more useful since then. It's not set anywhere. Let's remove it.
Attachment #8928734 - Flags: review?(dbaron)
Assignee: tetsuroy → n.nethercote

Comment 11

8 years ago
bugherder
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
No longer blocks: 1188411
You need to log in before you can comment on or make changes to this bug.