Closed
Bug 89842
Opened 23 years ago
Closed 23 years ago
Font panel in preferences does not show units for font size
Categories
(SeaMonkey :: Preferences, defect)
SeaMonkey
Preferences
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.4
People
(Reporter: bzbarsky, Assigned: gerv)
References
Details
Attachments
(3 files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
asa
:
review+
asa
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
BUILD: 2001-07-06-08
The font panel in preferences just has a number for the font size. It's not
clear that this number is in pixels, and people will tend to assume that it's in
points. On many systems pixels and points are not at all the same size...
Assignee | ||
Comment 1•23 years ago
|
||
Does the user care? Bigger number, bigger font. Smaller number, smaller
font. Double the number, double the size of the font. Just what they are used to
in any app which needs to let you set font sizes.
We could add a "px" at the end of each. But why bother? Who will change their
behaviour depending on whether it's points or pixels?
Gerv
Yes, some users do care :-) And that's a little something for the competition
to catch up... especially remembering that all is already there in situ in the
codebase...
Reporter | ||
Comment 3•23 years ago
|
||
Gerv, pt stay the same size on different resolution monitors (assuming one's DPI
settings are correct). px do not.
I'm using a single Moz profile on multiple computers (shared homedir). It's
nice to know at a glance whether my chosen font size will stay constant or
whether it'll fluctuate (in the latter case I may pick a larger size, so it's
always readable).
Assignee | ||
Comment 5•23 years ago
|
||
OK, I have a patch. But I'd really like someone to explain to me why my text
doesn't show up unless I hard-code the column width, which is Bad. CCing some
XUL gurus. Surely the entire _point_ is that it sizes everything as best it can
to get it all in? Without width="45" the "pixels" text simply isn't rendered...
Gerv
Assignee: mpt → gervase.markham
Target Milestone: --- → mozilla0.9.3
Assignee | ||
Comment 6•23 years ago
|
||
Comment 7•23 years ago
|
||
You probably want to use flex="x%" instead of width="".
So split up the flex by how many percent of the area you want them to take up.
That's the most efficent way to use flex, IMHO.
Like this:
<columns><column flex="50%"/><column flex="50%"></columns> to get two columns
using half of the space each.... You get the point.
Assignee | ||
Comment 8•23 years ago
|
||
Well no, not really. I want the column for "pixels" to be exactly as wide as the
contained text. I thought the way to do this was to add no instructions at all,
and the layout engine would make sure that this happened. But obviously not - it
just hides it completely.
Adding width="x%" would make it too wide at big window widths and two narrow at
small ones. I want _all_ the resizing flex to be in the font name lists.
How would you suggest I do the above?
Gerv
Comment 9•23 years ago
|
||
fixed="true"?
Assignee | ||
Comment 10•23 years ago
|
||
I've never heard of that option, and it has no effect when added to either the
<column> or the <text>. Could you be a bit more specific?
It's not as if "I want this XUL thingie to be big enough for its content, but no
bigger" is an uncommon request...
Gerv
Assignee | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.3 → mozilla0.9.4
Comment 11•23 years ago
|
||
How about adding `Typeface' and `Size (pixels)' cells as a header row in the
grid, above the columns of popup menus? That way you don't need to repeat
`pixels' or `px' half a dozen times.
Severity: normal → trivial
Component: User Interface Design → Preferences
QA Contact: zach → sairuh
Reporter | ||
Comment 12•23 years ago
|
||
I'd like to point out that we _do_ have some back end support for sizing in
points. There is a pref for the unit that font sizes are in that is supported
in some of the code (but not all of it).
Therefore, it may make sense to just add:
"Font sizes are in px" below the whole grid and later change "px" to a menulist
if/when we support choosing the unit the sizes are in.
Just throwing out ideas. mpt's suggestion would be plenty fine by me for now....
Assignee | ||
Comment 13•23 years ago
|
||
Reporter | ||
Comment 14•23 years ago
|
||
Comment 15•23 years ago
|
||
autostretch is deprecated, replaced with pack & align. hewitt can explain.
Assignee | ||
Comment 16•23 years ago
|
||
Assignee | ||
Comment 17•23 years ago
|
||
This patch fixes this bug, and 96339 - which is a visual problem with the DPI
dropdown. It's low risk, so we can do this for 0.9.4. Looking for review - bzbarsky?
Gerv
Severity: trivial → minor
Reporter | ||
Comment 18•23 years ago
|
||
I don't really know how pack works, so I can't review this... Is there a URL
explaining it somewhere?
Assignee | ||
Comment 19•23 years ago
|
||
http://www.mozilla.org/projects/xul/layout.html
Basically pack and align replace autostretch. There's probably a newsgroup post
too... yes, but it just references that page:
"align="left|right" is deprecated, as is text-align in CSS. valign is
deprecated as is vertical-align in CSS. autostretch is deprecated. The
replacement attributes are align (with start/center/end vals) and pack, and the
replacement CSS properties are -moz-box-align and -moz-box-pack. See the layout
section of the spec for information on how alignment and packing work."
Gerv
Reporter | ||
Comment 20•23 years ago
|
||
r=bzbarsky
Comment 21•23 years ago
|
||
+ if (item != null)
if (item)?
sr=blake
Comment 22•23 years ago
|
||
Comment on attachment 47337 [details] [diff] [review]
Patch v.3 - also fixed bug 96339
a=asa on behalf of drivers (also checking the r= and sr= since I see them in the comments)
Attachment #47337 -
Flags: superreview+
Attachment #47337 -
Flags: review+
Attachment #47337 -
Flags: approval+
Assignee | ||
Comment 23•23 years ago
|
||
Fixed.
Gerv
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 24•23 years ago
|
||
vrfy fixed.
linux, 2001.09.04.08-comm
winnt, 2001.09.04.00-comm
mac 9.1, 2001.09.04.11-comm
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•