fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] dw_styles2010-04-20 01:12 pm
Entry tags:

Heads-up: font size adjustments

A quick heads-up: We're about to adjust font sizes for some layouts.

We've been trying to make our layouts as accessible as possible, out-of-the-box. Too-small font sizes can cause issues for some viewers -- for users with low vision, or users using large screens with higher resolutions, for example -- so we'd like to make sure all our layouts respect the viewer's desired font size, rather than overriding their preferences.

We were able to do this for the majority of layouts, but we weren't always able to catch this especially with the earlier layouts. So we're going to fix this for the five remaining affected layouts: Bases, Blanket, Funky Circles, Sunday Morning, Transmogrified.

So what's going to change?

If you're using one of the layouts above, the font size for entries, etc, will likely become larger. We've tried to adjust the other font sizes (entry titles, journal titles), so that these are not super-huge in comparison to before, but some will likely also be larger than before.

If you're using one of the layouts above, but you have your own highly-customized styleseheet, and have the "use layout's stylesheet" option unchecked, then you won't see any difference at all.

ETA: If you've changed the font size, but not the font unit, you'll likely find that you have gigantic text. If that happens, you can switch your font size to 1em, or switch your font unit to px or pt, and then adjust to taste from there. You can also switch back to the old font size and units, as described below.

For reference, I'm noting all the font sizes that have changed below the cut. There are also instructions at the very bottom if you'd like to change back to the old (current) font size settings.



Bases


SettingOld SizeNew Size
Base font12px1em
Journal title3em2.25em
Journal subtitle1.5em1.125em
Entry titles1.667em1.25em



Blanket


SettingOld SizeNew Size
Base font0.625em1em
Journal title1.3em1.25em
Entry titles1.6em1.5em



Funky Circles


SettingOld SizeNew Size
Base font15px1em



Sunday Morning


SettingOld SizeNew Size
Base font0.813em1em
Module headings1.1em1.353em



Transmogrified


SettingOld SizeNew Size
Base font10pt1em



Going back to the old values


Easy way, through the wizard (will only work if you change them once the new settings have come into effect)


  1. Go to Customize your Journal Style

  2. Scroll down to the Fonts section

  3. Click "expand all"

  4. Use the tables above for your layout, to compare and replace the current settings. Save.



Slightly more complicated way (bulk update of settings, will work if you change them now)


  1. Go to Customize your Journal Style

  2. Don't make any changes; hit the save button. This makes sure that our next step will work

  3. Go to your list of layers. Look for your layout name (it will be something like "Child of layer x: Layout Name"), then edit the layer of type "wizard" with the highest id.

  4. Look for your layout section above, and copy-paste the contents of the textarea. Save.



tyger: Beat, hand on his hat and laughing. (Beat - Bwahahaha)

[personal profile] tyger 2010-04-20 05:52 am (UTC)(link)
....this is the best idea ever. Font sizes that change computer-to-computer! Less likelihood that you're going to hurt someone's eyes because you don't have a million and one screens to test on! \o/ AWESOME!
I'm assuming it's the 'em' that does that? NOW I KNOW WHAT IT DOES. Sweet! *happydaaaance~~*
foxfirefey: Fox stealing an egg. (mischief)

[personal profile] foxfirefey 2010-04-20 06:10 am (UTC)(link)
By setting all the font sizes to 1em, you're telling the browser to use the default font size in the browser's preferences as the base size. Then, you can adjust in comparison with that font size--for instance, .9em is 90% of the size of 1em.
tyger: Entei, Suicine, and Raioku sprites (pokémon - legendary beasts)

[personal profile] tyger 2010-04-20 06:26 am (UTC)(link)
SO AWESOME. \o/ *is going to use em forevermore, yessss~~*
marahmarie: (M In M Forever) (Default)

[personal profile] marahmarie 2010-04-20 05:11 pm (UTC)(link)
I love that. I've noticed that it's carried over from the "old way" (pixel-based sizes) which I have personally tried to avoid like the plague since I started coding. I can't stand locking anyone into font size, especially with computer screens these days that vary from teeny-tiny (mobile and/or Win '98 on 600 x 400 res) to huge (LCD monitors the size of flat panel home theater TVs). Doing without liquid width on most layouts I like is bad enough; I want to at least keep the fonts flexible.
timeasmymeasure: kerry washington with a rose held right below her lips (Default)

[personal profile] timeasmymeasure 2010-04-20 08:19 am (UTC)(link)
Using "em" instead of "px" is a really good idea. I should probably start using this when I modify layouts.

Thanks for this =D
kake: The word "kake" written in white fixed-font on a black background. (Default)

[personal profile] kake 2010-04-20 12:28 pm (UTC)(link)
Thank you, thank you, thank you.
mackiedockie: Wiseguy icon JB by Tes (Default)

[personal profile] mackiedockie 2010-04-20 02:37 pm (UTC)(link)
Many, many thanks for addressing the font size issue! I have recently realized that I skip a lot of content for the simple reason it was ts; dr--too small; didn't read.
foxfirefey: A fox colored like flame over an ornately framed globe (Default)

[personal profile] foxfirefey 2010-04-20 08:13 pm (UTC)(link)
This won't remove that possibility entirely, since people still have the ability to set a base font size for their journal, even if it's not the default.

However, if you use the nav strip, there are links to light and your style when viewing an entry page in someone else's style.
poulpette: A whale with a speech bubble containing a red heart (Misc - Love whale)

[personal profile] poulpette 2010-04-20 08:11 pm (UTC)(link)
♥ ♥ ♥ This? Is awesome.
nostariel: Kermit the Frog dancing for joy. (Happy - kermit yays!)

[personal profile] nostariel 2010-04-21 09:16 am (UTC)(link)
 
auroraprimavera: Michelle Monaghan (Default)

[personal profile] auroraprimavera 2010-04-21 11:33 pm (UTC)(link)
This makes me happy :D
rainbow: (Default)

[personal profile] rainbow 2010-04-30 09:55 pm (UTC)(link)
Thank you very, very much for posting such clear directions on how to go backward; I'd missed this entry and was freakingout when my journal suddenly changed.

(And thank you again, Yvi, for the pointer to here.)
florahart: (Default)

[personal profile] florahart 2010-05-01 12:43 am (UTC)(link)
Thanks for putting this up ahead of time so it would be sort of vaguely sitting there in my brain when I started wondering what on earth happened to embiggen all my fonts but only at DW and then was all ...waaaaitaminute, I think... I mean, then I just had to remember where I saw it, but it was totally painless to fix. :)
ninetydegrees: Art & Text: heart with aroace colors, "you are loved" (Default)

[personal profile] ninetydegrees 2010-05-01 12:44 am (UTC)(link)
A note if I may: people who have customized their font should really check the unit at http://www.dreamwidth.org/customize/options because switching from 8px to 8em makes one heck of a difference. ;) The wizard layer would have kept the 8 but maybe not the px since it was the default unit.
Edited 2010-05-01 00:47 (UTC)
justhuman: (bunny2)

[personal profile] justhuman 2010-05-02 12:14 am (UTC)(link)
Question from the customizing inept :-)

I've been using Sunday Morning and I guess the font update has occurred, because I'm being blinded by the new *HUGE* font. But if I used the customization listed above, I'll be creating an accessibility issue for people viewing my journal, because they won't be able to resize the font?

So what's the style of this journal, because this font looks like a good size for me. ...unless this one is going to get changed to.
justhuman: (bunny2)

[personal profile] justhuman 2010-05-02 12:22 am (UTC)(link)
Okay, I think I figured it out. I went to the style page and set the base font size to .9 em -- which means I get a size that works for me and others can re-size the font in their browser?
ninetydegrees: Art & Text: heart with aroace colors, "you are loved" (Default)

[personal profile] ninetydegrees 2010-05-02 10:17 am (UTC)(link)
Something like that. Think of em as a percentage: 1em is 100% and 0.9 a little less obviously. If user A has set their browser to use 16px (or medium for IE users) as their preferred font size then they will see your layout with a little smaller font, say 15px. If user B has set their browser to use 12px (maybe smallest for IE users) let's say they will see your layout in 11px. Before, if your journal font size was set to a fixed unit like 12px it would have been fine for user B but user A would have had trouble reading your journal because it wouldn't have been rescaled at all for them. Now it's pretty comfortable for everybody.
And the best thing is that some browsers allow you to override any setting so that the font is always the same size and corresponds to your level of comfort.
Edited 2010-05-02 10:18 (UTC)
yourlibrarian: Yes!-darklydean (SPN-Yes!-darklydean)

[personal profile] yourlibrarian 2010-05-02 04:45 am (UTC)(link)
Much appreciated. I wish another thing websites would do is stop using grey font color on white. It's surprisingly common and often enlarging the text is not that helpful.