font-size starting size

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • James Moe

    font-size starting size

    Hello,
    I just joined this group and saw the discussion "What do you think of
    resizing 1em to 10px?" I am somewhat confused by what y'all think should be
    used as a reference size.
    I was surprised that someone actually suggested ems as a reference. Ems
    are relative to a selected point size, the width in points of a capital M.
    If no point size is given, what size does an em become? The browser
    obviously must decide.
    Also setting the body text to 62.5% is, well, stupid. % of what? I should
    *assume* 16 pixels? Bad thinking. And not my experience with browsers.

    Using pixels does not scale very well at all. Text look quite large on a
    17" 800x600 monitor, and quite small on a 20" 1600x1200 or 17" 1400x1050.
    Our site recently changed from using hard-coded pixel settings to
    assigning a default body text size in points and using % to set the other
    sizes up or down. It has a more consistent look that way on displays of
    different physical dimensions and resolutions.
    I used "font-size=11pt" to define the reference size (which on my display
    here is about 16 pixels). It is, of course, not very exact; it depends on
    the browser and the display system to decide on what represents 1 point
    (1/72 inch).

    So after all that.... What is considered good practice for the base font
    size?

    --
    jmm dash list at sohnen-moe dot com
    (Remove .TRSPAMTR for email)
  • Jukka K. Korpela

    #2
    Re: font-size starting size

    James Moe <jmm-list.TRSPAMTR@s ohnen-moe.com> wrote:
    [color=blue]
    > I just joined this group[/color]

    Welcome. Now please read the fine FAQs.
    [color=blue]
    > Ems
    > are relative to a selected point size, the width in points of a
    > capital M.[/color]

    You're fundamentally wrong. The em unit denotes the size of the font,
    which has no defined relationship with any width.
    [color=blue]
    > If no point size is given, what size does an em become?[/color]

    Read the FAQ.
    [color=blue]
    > The browser obviously must decide.[/color]

    No, the user.
    [color=blue]
    > Also setting the body text to 62.5% is, well, stupid.[/color]

    Of course.
    [color=blue]
    > I used "font-size=11pt" to define the reference size[/color]

    And you got it ignored, right? Or did you use a broken browser?


    --
    Yucca, http://www.cs.tut.fi/~jkorpela/

    Comment

    • Neal

      #3
      Re: font-size starting size

      On 4 Jun 2004 22:53:07 GMT, James Moe <jmm-list.TRSPAMTR@s ohnen-moe.com>
      wrote:
      [color=blue]
      > Ems are relative to a selected point size, the width in points of a
      > capital M. If no point size is given, what size does an em become? The
      > browser obviously must decide.[/color]

      The "em" in CSS is not identcal to the print em. It is the default size of
      a typical character after any inhereted adjustments. 1em is equivalent to
      100%.

      Ex. p {font-size:1.5em} means the p element text will be 150% of the
      default.

      However: body {font-size: 110%} p {font-size: 0.911em} means the p is back
      to 100% or so.
      [color=blue]
      > Also setting the body text to 62.5% is, well, stupid. % of what?[/color]

      Of whatever the user has set his preferred font size in the browser, or
      the default size if it hasn't been set.
      [color=blue]
      > I should *assume* 16 pixels? Bad thinking. And not my experience with
      > browsers.[/color]

      I agree. Assuming a particular pixel size is unwise.
      [color=blue]
      > So after all that.... What is considered good practice for the base
      > font size?[/color]

      Nothing set at all, or use 100% or larger in the body element. This lets
      the browser render the text at the size the user prefers, if he has set a
      preference, or at the default setting, which that user should be quite
      used to.

      Comment

      • Jukka K. Korpela

        #4
        Re: font-size starting size

        Neal <neal413@yahoo. com> wrote:
        [color=blue]
        > The "em" in CSS is not identcal to the print em.[/color]

        It is the same concept: the size of the font.
        [color=blue]
        > It is the default
        > size of a typical character after any inhereted adjustments.[/color]

        I wonder where all this misunderstandin gs about em stem from. The height
        of a typical character is _much_ smaller than em, and the widths of
        characters naturally vary, and they too are typically _much_ smaller than
        em. The em unit does not denote any dimension of any specific character,
        or any average dimension of characters.

        --
        Yucca, http://www.cs.tut.fi/~jkorpela/

        Comment

        • Wolfgang Wildeblood

          #5
          Re: font-size starting size

          James Moe <jmm-list.TRSPAMTR@s ohnen-moe.com> wrote:
          [color=blue]
          > Hello,
          > I just joined this group and saw the discussion "What do you think of
          > resizing 1em to 10px?" I am somewhat confused by what y'all think should be
          > used as a reference size.[/color]

          [Musings snipped.]
          [color=blue]
          > So after all that.... What is considered good practice for the base font
          > size?[/color]

          Secret users business. It is not necessary to specify a base font size
          in an author stylesheet because the base font size is a *USER
          SETTING*. I set it on my browser and you don't worry about it. I've
          done all the worrying for you.

          Don't give it another thought, it's all been taken care of. Consider
          this:

          sky {background-color: blue}

          Why would you bother - it's already taken care of? You wouldn't give
          it a first, let alone second, thought. Same with my browser settings -
          don't give it a second thought.

          Some alternative theories about the colour of the sky:





          --

          Comment

          • Steve Pugh

            #6
            Re: font-size starting size

            James Moe <jmm-list.TRSPAMTR@s ohnen-moe.com> wrote:
            [color=blue]
            > I was surprised that someone actually suggested ems as a reference. Ems
            >are relative to a selected point size, the width in points of a capital M.[/color]

            You're a few centuries out of date. In modern typography the em is the
            height of the font, which may or may not be the width of the capital M
            (if such a letter exists in the font in question) in any given font.
            [color=blue]
            >If no point size is given, what size does an em become? The browser
            >obviously must decide.[/color]

            When defining font-sizes the em is the size of the parent element's
            font. Ultimately the root element has a font size set by the browser's
            configuration. This is the size that the user has chosen (or chosen to
            leave at the factory setting).
            [color=blue]
            > Also setting the body text to 62.5% is, well, stupid. % of what?[/color]

            Yes it is stupid, because that's only 62.5% of the users chosen
            default font size.
            [color=blue]
            >I should *assume* 16 pixels?[/color]

            You might assume that. Other people would more correctly assume that
            it would be 62.5% of the browser's default font size, of which 16px is
            a common but not universal value.
            [color=blue]
            > Using pixels does not scale very well at all.[/color]

            True. Beacuse browsers do not interpret the CSS spec correctly with
            regard to the px element.

            There's also the problem that Windows IE does not allow users to
            easily resize text sized in px.
            [color=blue]
            > Our site recently changed from using hard-coded pixel settings to
            >assigning a default body text size in points and using % to set the other
            >sizes up or down. It has a more consistent look that way on displays of
            >different physical dimensions and resolutions.[/color]

            But pt relate directly to real world physical measurements. So your
            body size set at 11pt should be 11/72 of an inch regardless of all
            other factors. Did you put a ruler up to the screen and measure it?
            Did any browser get it right?

            What happens when teh page is projected onto a wall screen? Is the
            text still 11pt? How can anyone read 11pt text from across the room?

            And there's also the problem that Windows IE does not allow users to
            easily resize text sized in pt.
            [color=blue]
            > I used "font-size=11pt" to define the reference size[/color]

            Which should be ignored as it's totally incorrect syntax.
            [color=blue]
            >(which on my display here is about 16 pixels).[/color]

            Which may be because 16 pixels is the default and the browser is
            ignoring you incorrect syntax? Or it may be that your screen has a
            resolution of 105 pixels per inch. Or it may be that your browser is
            following typical practice and assuming a resolution of 96dpi and thus
            11pt is 14.7 pixels (falls within "about 16 pixels") regardless of the
            actual resultion.
            [color=blue]
            >It is, of course, not very exact; it depends on
            >the browser and the display system to decide on what represents 1 point
            >(1/72 inch).[/color]

            Most modern browsers assume 96dpi and so 12pt = 16px and everything
            flows from that. Some browsers assume other resolutions, e.g. if you
            set Windows to use Large Fonts is assumes 120dpi and hence your 11pt
            would be 18.3 pixels.
            [color=blue]
            > So after all that.... What is considered good practice for the base font
            >size?[/color]

            Whatever the user has configured their browser to use.

            Steve

            --
            "My theories appal you, my heresies outrage you,
            I never answer letters and you don't like my tie." - The Doctor

            Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>

            Comment

            • Barry Pearson

              #7
              Re: font-size starting size

              Steve Pugh wrote:[color=blue]
              > James Moe <jmm-list.TRSPAMTR@s ohnen-moe.com> wrote:[/color]
              [snip][color=blue][color=green]
              >> Also setting the body text to 62.5% is, well, stupid. % of what?[/color]
              >
              > Yes it is stupid, because that's only 62.5% of the users chosen
              > default font size.
              >[color=green]
              >>I should *assume* 16 pixels?[/color]
              >
              > You might assume that. Other people would more correctly assume that
              > it would be 62.5% of the browser's default font size, of which 16px is
              > a common but not universal value.[/color]
              [snip]

              It is only 62.5% of the browser's default font size if the font-family is left
              as the default. If the font-family is specified when the 62.5% is specified,
              the practical percentage of the user's default font cannot be determined.
              Because it is unknown what the subjective & objective size of the specified
              font is compared with that of the user's default font.

              (I don't advocate 62.5%, which is new to me! But I observe that, on my system,
              13px Arial & 80% Arial are subjectively & objectively about the same size as
              my default font, which is 16px Times New Roman. This requires a somewhat
              narrow measure of objective size - in fact the 13px Arial width of some text I
              used for analysis was 97% of the width of the 16px Times New Roman, and
              certain letters such as lower-case "o" were the same size, as 16px TNR, at
              somewhere between 13px & 14px Arial).

              --
              Barry Pearson





              Comment

              • Jan Roland Eriksson

                #8
                Re: font-size starting size

                On Sat, 5 Jun 2004 05:37:20 +0000 (UTC), "Jukka K. Korpela"
                <jkorpela@cs.tu t.fi> wrote:
                [color=blue]
                >Neal <neal413@yahoo. com> wrote:[color=green]
                >> The "em" in CSS is not identcal to the print em.[/color][/color]
                [color=blue]
                >It is the same concept: the size of the font.[/color]
                [color=blue][color=green]
                >> It is the default
                >> size of a typical character after any inhereted adjustments.[/color][/color]
                [color=blue]
                >I wonder where all this misunderstandin gs about em stem from.[/color]

                Yea; Me to gets astonished at some of the interpretations that pops up
                every now and then.
                [color=blue]
                >The height of a typical character is _much_ smaller than em[/color]

                Well; to the naked eye yes, but...

                The majority of fonts designed within the previous millennium are
                designed to fit on a lead block destined to be set in a printing frame.

                In order to facilitate easy typesetting, all lead blocks used in a
                printing frame has to be of the same height (for western alphabets that
                is).

                Following that, the minimum height of a lead block, intended for use in
                traditional typesetting, must be as high as required to "house" any one
                single character in the font in use when each and every character in
                that font is placed on a common baseline.

                So the net result is that 1em becomes equal to the height of the lead
                block required to "house" any one character in any given font design.

                Note; this includes height to "house" character decenders just as well
                as diacritical marks, should they be designed parts of the font at hand.

                The definition of one 'em' in CSS1 is derived from traditional
                typesetting and I have at one time been in live "person to person"
                discussion with Haakon on this subject and there is no doubt that the em
                definition in CSS1 has its roots in the minimum required height of a
                lead block, as used in traditional typesetting for prints.

                Further; it can be empirically proven that font designers as early as
                Claude Garamond (hundreds of years back) was thinking along the same
                line.

                The "Plantin Moretus Museum" in Antwerp, Belgium, has a large set of
                Claude Garamond's original design work in storage. One very specific
                item there is the Garamond definition of what we would call an "em dash"
                which just "happens" to be designed to fit the full width of a _square_
                lead block with a block height equal to all other block character casts
                available.

                Naturally we can also find an "en-dash" in the Garamond font and from
                the best judgment I was able to make on site, the Garamond en-dash is
                very close to half the width of the em-dash.

                Given the fact that there is European historical roots available for the
                definition of one 'em' I would, provocatively, move on to say that any
                saying to the effect that "1em is equal to the width of letter 'm' or
                'M'" is nothing but Bullshit of Anglo-Saxon origin :-)

                --
                All the best...
                Rex

                P.S. Why did Knuth fall for that "em is letter 'm' width" thingy in
                LaTex?

                Comment

                • Tim

                  #9
                  Re: font-size starting size

                  On Sat, 05 Jun 2004 14:00:33 +0200,
                  Jan Roland Eriksson <jrexon@newsguy .com> posted:
                  [color=blue]
                  > Given the fact that there is European historical roots available for the
                  > definition of one 'em' I would, provocatively, move on to say that any
                  > saying to the effect that "1em is equal to the width of letter 'm' or
                  > 'M'" is nothing but Bullshit of Anglo-Saxon origin :-)[/color]

                  The only definition that I ever had much faith in was saying that the em
                  was the "size" of the "M" (not the width, not the height, but the size of
                  the whole thing, taking into account all aspects of printing the letter
                  amongst other letters (including ascenders, descenders, the usual space
                  around it, etc.).

                  On every browser that I've played with, it's impossible to correlate the
                  size of the em to any of the characters that you can display (e.g. do
                  something that's 12 ems big, then try and compare that to any 12 characters
                  in a row or column), and it's made doubly worse by the limited applications
                  of what CSS can do with it.

                  For instance, if I was to make a box (e.g. a div) have margins around it so
                  it was smaller than the surrounding body, and used ems to set the margins,
                  they seem to be based on the size of characters inside the div, yet I'd
                  rather be able to set the margin sized based on the surrounding characters
                  on the page. The worst example being trying to do something like a big
                  bold warning - it gets a huge margin around it.

                  --
                  If you insist on e-mailing me, use the reply-to address (it's real but
                  temporary). But please reply to the group, like you're supposed to.

                  This message was sent without a virus, please delete some files yourself.

                  Comment

                  • James Moe

                    #10
                    Re: font-size starting size

                    Jukka K. Korpela wrote:[color=blue]
                    > James Moe <jmm-list.TRSPAMTR@s ohnen-moe.com> wrote:
                    >[color=green]
                    >> I just joined this group[/color]
                    > Welcome. Now please read the fine FAQs.
                    >[/color]
                    And the link is?: _______________ ____________[color=blue]
                    >[color=green]
                    >>Ems are relative to a selected point size, the width in points of a
                    >>capital M.[/color]
                    >
                    > You're fundamentally wrong. The em unit denotes the size of the font,
                    > which has no defined relationship with any width.
                    >[/color]
                    You, and others, have noted the poor phrasing. An em (aka: em square, em
                    box) is the default distance between baselines without extra leading.
                    [color=blue][color=green]
                    >>If no point size is given, what size does an em become?[/color]
                    > Read the FAQ.
                    >[/color]
                    (See above.)[color=blue]
                    >[color=green]
                    >>The browser obviously must decide.[/color]
                    > No, the user.
                    >[/color]
                    Quite so. My mistake.
                    My confusion stemmed from forgetting this obvious fact: the user does
                    indeed set the base size.[color=blue]
                    >[color=green]
                    >> I used "font-size=11pt" to define the reference size[/color]
                    > And you got it ignored, right? Or did you use a broken browser?
                    >[/color]
                    A typo.
                    Just writing "Bzzt! Wrong!" is not helpful. I joined this group to learn
                    more about stylesheets and their use.


                    --
                    jmm dash list at sohnen-moe dot com
                    (Remove .TRSPAMTR for email)

                    Comment

                    • Jukka K. Korpela

                      #11
                      Re: font-size starting size

                      James Moe <jmm-list.TRSPAMTR@s ohnen-moe.com> wrote:
                      [color=blue][color=green]
                      >> Welcome. Now please read the fine FAQs.
                      >>[/color]
                      > And the link is?: _______________ ____________[/color]

                      You cannot miss it if you hang around. Actually, it is recommended
                      practice to read a group for some time, or at least check recent
                      discussions via Google, before posting.
                      [color=blue][color=green][color=darkred]
                      >>> I used "font-size=11pt" to define the reference size[/color]
                      >> And you got it ignored, right? Or did you use a broken browser?
                      >>[/color]
                      > A typo.
                      > Just writing "Bzzt! Wrong!" is not helpful.[/color]

                      Oh, it is. Exactness is notations is one thing that you need to learn
                      when learning CSS. It's no use telling you each mistake; you need to
                      learn to detect them yourself, by using a CSS checker (and reading
                      tutorials and specifications) .

                      --
                      Yucca, http://www.cs.tut.fi/~jkorpela/

                      Comment

                      • James Moe

                        #12
                        Re: font-size starting size

                        Steve Pugh wrote:[color=blue]
                        >
                        > But pt relate directly to real world physical measurements. So your
                        > body size set at 11pt should be 11/72 of an inch regardless of all
                        > other factors. Did you put a ruler up to the screen and measure it?
                        > Did any browser get it right?
                        >[/color]
                        [color=blue]
                        > What happens when teh page is projected onto a wall screen? Is the
                        > text still 11pt? How can anyone read 11pt text from across the room?
                        >[/color]
                        What happens when a slide with 24pt text is projected?
                        [color=blue]
                        > And there's also the problem that Windows IE does not allow users to
                        > easily resize text sized in pt.
                        >
                        >[color=green]
                        >> I used "font-size=11pt" to define the reference size[/color]
                        >
                        > Which should be ignored as it's totally incorrect syntax.
                        >[/color]
                        A typo. "Bzzt! Wrong!" is not helpful.
                        [color=blue]
                        >[color=green]
                        >> So after all that.... What is considered good practice for the base font
                        >>size?[/color]
                        >
                        > Whatever the user has configured their browser to use.
                        >[/color]
                        Thank you.

                        --
                        jmm dash list at sohnen-moe dot com
                        (Remove .TRSPAMTR for email)

                        Comment

                        • Steve Pugh

                          #13
                          Re: font-size starting size

                          James Moe <jmm-list.TRSPAMTR@s ohnen-moe.com> wrote:[color=blue]
                          >Steve Pugh wrote:[color=green]
                          >>
                          >> What happens when the page is projected onto a wall screen? Is the
                          >> text still 11pt? How can anyone read 11pt text from across the room?
                          >>[/color]
                          > What happens when a slide with 24pt text is projected?[/color]

                          If the slide is projected using a CSS-based technology then the
                          resulting text on the screen should be 24/72 of an inch high. Nothing
                          else is correct.

                          If you're talking about a real photographic slide then does it really
                          have 24pt text on it? You wouldn't get many 24/72 inch high letters on
                          a typical photographic slide would you?
                          [color=blue][color=green][color=darkred]
                          >>> I used "font-size=11pt" to define the reference size[/color]
                          >>
                          >> Which should be ignored as it's totally incorrect syntax.
                          >>[/color]
                          > A typo. "Bzzt! Wrong!" is not helpful.[/color]

                          How were we to know that it's a typo? That exact same mistake is seen
                          quite frequently in posts from people asking why their styles don't
                          work. If you can't be bothered to post correct code why should we be
                          bothered to second guess what you meant to post?

                          Steve

                          --
                          "My theories appal you, my heresies outrage you,
                          I never answer letters and you don't like my tie." - The Doctor

                          Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>

                          Comment

                          • Steve Pugh

                            #14
                            Re: font-size starting size

                            James Moe <jmm-list.TRSPAMTR@s ohnen-moe.com> wrote:[color=blue]
                            >Jukka K. Korpela wrote:[color=green]
                            >> James Moe <jmm-list.TRSPAMTR@s ohnen-moe.com> wrote:
                            >>[color=darkred]
                            >>>Ems are relative to a selected point size, the width in points of a
                            >>>capital M.[/color]
                            >>
                            >> You're fundamentally wrong. The em unit denotes the size of the font,
                            >> which has no defined relationship with any width.
                            >>[/color]
                            > You, and others, have noted the poor phrasing. An em (aka: em square, em
                            >box) is the default distance between baselines without extra leading.[/color]

                            Not in CSS it isn't. The distance between baselines is given by the
                            line-height property, which by default in many browsers is about
                            1.15em. An em is the height of the font, no more, no less. And an
                            em-quad is the square unit that has sides of 1em length.

                            Steve

                            --
                            "My theories appal you, my heresies outrage you,
                            I never answer letters and you don't like my tie." - The Doctor

                            Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>

                            Comment

                            • Alan J. Flavell

                              #15
                              Re: font-size starting size

                              On Sat, 5 Jun 2004, Steve Pugh wrote:
                              [color=blue]
                              > Not in CSS it isn't. The distance between baselines is given by the
                              > line-height property, which by default in many browsers is about
                              > 1.15em. An em is the height of the font, no more, no less.[/color]

                              Sure, but that begs the question as to what represents the "height of
                              the font" in CSS. On the web you don't get a lump of leaded type to
                              pick up and examine; the "height of a font" stands in a somewhat
                              tenuous relationship to the size of the glyphs, and that relationship
                              is different for different font faces. It's no wonder that folks get
                              confused, when there's nothing physical to get hold of.

                              See how difficult it is for folks to grasp that the pt unit defines an
                              absolute physical length, just as much as the cm or inch does. They
                              imagine they can have some kind of elastic scaled pt unit which does
                              whatever they want it to.

                              Comment

                              Working...