SlideShare une entreprise Scribd logo
1  sur  68
Télécharger pour lire hors ligne
Beautiful Web
Typography
 tips on de-sucking the web

Simon Pascal Klein
Web Typography             1




            Introduction
Web Typography                 2




            I’m Pascal Klein
Web Typography     3




            I...
Web Typography                                                3




            I...
         • work for a small web-dev company based in
           Canberra and also operate on a free-lance basis;
Web Typography                                                3




            I...
         • work for a small web-dev company based in
           Canberra and also operate on a free-lance basis;

         • try to use, and support Open Source soware;
Web Typography                                                3




            I...
         • work for a small web-dev company based in
           Canberra and also operate on a free-lance basis;

         • try to use, and support Open Source soware;

         • write about typography and whatever else
           strikes me at the time on klepas.org.
Web Typography   4
Web Typography                    4




            What is typography?
Web Typography                                                   4




            What is typography?
            ty•pog•ra•phy |tīˈpägrəfē| •n
            Typography is the art of creating and setting type
            with the purpose of honoring the text it sets.
Web Typography                   4




            serif   sans-serif
Web Typography                    4




            e difference


            serif    sans-serif
Web Typography                    5




            e Intertubes today
Web Typography                     5




            e Intertubes today
            Lots of information.
Web Typography                                         5




            e Intertubes today
            Lots of information.

            Information Architecture deals with this
            primarily but there is another:
Web Typography                                         5




            e Intertubes today
            Lots of information.

            Information Architecture deals with this
            primarily but there is another:

            Typography.
Web Typography   5
Web Typography                                                5




            Typography exists to bring order to information
            by dividing and organizing – aiding readers in
            finding what they are looking for.
Web Typography                                         6




          “Typography is not picking a ‘cool’ font.”
                 – Jeff Cro
Web Typography                          7




             tips to de-suck the web
Web Typography                                                8




       . Starting out: reset
            All the browsers have their own default styling
            for various ( X ) HTML elements. is makes it a
            pain for cross-browser consistency.
Web Typography                                                8




       . Starting out: reset
            All the browsers have their own default styling
            for various ( X ) HTML elements. is makes it a
            pain for cross-browser consistency.

            Fix? Simply reset everything.
Web Typography                                                                  9




            body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,in
            put,textarea,p,blockquote,th,td {margin:0;padding:0;}
            table {border-collapse:collapse;border-spacing:0;}
            fieldset,img {border:0;}
            address,caption,cite,code,dfn,em,strong,th,var {font-
            style:normal;font-weight:normal;}
            ol,ul {list-style:none;}
            caption,th {text-align:left;}
            h1,h2,h3,h4,h5,h6 {font-size:100%;font-weight:normal;}
            q:before,q:after {content:'';}
            abbr,acronym {border:0;}



            Googling “CSS reset stylesheets” should land you
            with numerous examples. is one above is from
            the Yahoo! UI library.
Web Typography                                                     10




       . Font sizing
            Font sizing is done using font-size. It uses any of
            the CSS numerical measurements and is either
            done in absolute or relative terms.

            Sizing in pixels is absolute whilst sizing in ems or
            percentages are an example of relative terms.
Web Typography                                                     11




     . Use ems
            An em is a relative unit best to be thought of as a
            box. It is relative to the point size of a specific
            font (i.e.  em in a  point typeface is  point).
Web Typography                                                     11




     . Use ems
            An em is a relative unit best to be thought of as a
            box. It is relative to the point size of a specific
            font (i.e.  em in a  point typeface is  point).

            To calculate, find what one pixel is in ems and
            then multiply by the desired font size (in pixels):
                 1 ÷ parent font-size × required pixel value
                                 = em value
Web Typography                                                     11




     . Use ems
            An em is a relative unit best to be thought of as a
            box. It is relative to the point size of a specific
            font (i.e.  em in a  point typeface is  point).

            To calculate, find what one pixel is in ems and
            then multiply by the desired font size (in pixels):
                 1 ÷ parent font-size × required pixel value
                                 = em value

            Note this means sizing in ems can easily have
            you using values with three decimal places.
Web Typography                                               12




 .. e . trick
            Relative font sizes are either relative to the
            browser default font size (commonly  pixels)
            or their parent element. Consider:
            p { font-size: 80%; }
            blockquote { font-size: 80%; }
Web Typography                                                 12




 .. e . trick
            Relative font sizes are either relative to the
            browser default font size (commonly  pixels)
            or their parent element. Consider:
            p { font-size: 80%; }
            blockquote { font-size: 80%; }


            80% of 16px is 12.8px, so p and blockquote
            elements will be that size, but what happens
            when we put a p element inside a blockquote
            element? e parent (blockquote) is 12.8px so the
            p will be rendered at 80% of that – 10.42px.
Web Typography                                                   




 .. e . trick (cont’d)
            In 2004 Richard Rutter wrote an article outlining
            a trick used to make these calculations simpler:
            because browsers have a common default font
            size of 16px we can set the body font size to be
            62.5%, resetting the default value to 10px.

            From here on, using ems is much easier: px in
            ems is .em, px is .em. Remember this only
            holds up for direct child elements of the body;
            nested elements will be relative to their parents.
Web Typography                          14




 .. Differences in browser rounding
Web Typography                                                  14




 .. Differences in browser rounding
            Make sure your actual font size in absolute terms
            is either an integer or half-way in between (i.e.
            13px, 13.5px or 14px).
Web Typography                                                  14




 .. Differences in browser rounding
            Make sure your actual font size in absolute terms
            is either an integer or half-way in between (i.e.
            13px, 13.5px or 14px).

            To find an element’s font size in absolute terms
            (i.e. pixels) you can use the Firefox Web Develop
            Extension, Information → Display Element
            Information.
Web Typography                                                                             15




     . Stick it to a scale
            Use a scale when setting type. Find what suits
            you best for a given project and stick to it.

             6, 7,   8, 9, 10,   11, 12, 14,   16, 18, 21,   24,   36,   48, 60,   72.
             the “classic scale”


             9, 10, 11,


             another scale
                          24,12, 13, 14,       18,      36,        48,   64, 72,     96.
             8,   13,     21,        34,         55,
             scale based on the Fibonacci sequence
                                                               89.
Web Typography                                                     16




       . Use Smartypants or similar
             Smartypants is a script that translates plain ASCII
             punctuation characters into “smart” typographic
             punctuation HTML entities.

          • Smartypants (PHP, PERL, & Movable Type);
          • Typogrify (Python/Django);
          • wp-typogrify (WordPress);
          • …?
Web Typography                           17




     . Quotation marks & apostrophes



                  ‘’ “”
                     ’
Web Typography         18




                 ' "
Web Typography           19




                 1'61"
Web Typography                            20




                   "is is a group of
                 words surrounded by a
                  bunch of tick marks."
Web Typography                                21




                 “is is a quotation!”
                                 - Jeff Cro
Web Typography    22




     . Dashes
Web Typography                                                       22




     . Dashes
                  - hyphen    Mary-Anne, Dominique Strauss-Kahn


                  – en dash   April–May, ages –, pp. –


                 — em dash    Phrase marker—not spaced—like this.*


                   – minus    5–4=1
Web Typography                                                                          23




     . Advanced: hanging punctuation
            Traditionally punctuation marks, bullets, lists,
            hyphens, and brackets all hang in the margin.

           “Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Integer a odio.
            Vivamus placerat felis id risus. Cras mollis est. Suspendisse molestie
            imperdiet libero. Etiam mollis libero vulputate lorem. Nullam ut leo.
           (Etiam at turpis non massa rhoncus sodales.)”
Web Typography                                                       24




      . Advanced: hanging punctuation (cont’d)
            Easily done with lists by just setting their
            margins to zero.

             Possible for opening punctuation marks using
             background-image or a negative text-indent. CSS 3
             will hopefully support hanging punctuation with
             the proposed hanging-punctuation property.
             [http://www.w3.org/TR/css3-text/#hanging-punctuation]
Web Typography                                                   25




       . Select a good measure

            e measure is the length of a single line. It is
            important to select a good measure for running
            text. Do this with the width property.

            Ideally these should be relative to the font size,
            such that the type scales proportionately to the
            measure; use ems or percentages.
Web Typography                                               26




       . Select a good measure (cond’t)
            An apt measure for running text ranges from
            about - characters for serif type set in a
            single column on a page (print).

            On the web, type generally benefits from a
            smaller measure. When using multi-column
            you’ll need to go even smaller.
Web Typography                                                  26




       . Select a good measure (cond’t)
            An apt measure for running text ranges from
            about - characters for serif type set in a
            single column on a page (print).

            On the web, type generally benefits from a
            smaller measure. When using multi-column
            you’ll need to go even smaller.

            Characters average at around two thirds of an em,
            so a width of  to  ems matches the above.
Web Typography                                                 27




       . Treat text as part of the UI
            Distinguish content elements from application
            controls (i.e. a user’s username and description
            from a logout link or text-field title).

            Oen done with colour (i.e. setting controls
            gray), size (making them smaller) and typefaces.
Web Typography   28
Web Typography   29
Web Typography                                                30




       . Use grids
            Grids bring order to your page and help specify
            where things should go and their flow.

            Remember to put in apt “gutters” (margins
            between columns) to separate your columns
            particularly when neighbouring columns hold
            running text.

            Ruler guides help enormously – use the Web
            Developer extension for Firefox or ruler
            background images. Also see the YUI library.
Web Typography   30
Web Typography   30
Web Typography               31




       . e little things
Web Typography                                                 31




       . e little things
         • Setting the body in a serif and headings in a san
           serif or visa-versa work to great effect;
Web Typography                                                 31




       . e little things
         • Setting the body in a serif and headings in a san
           serif or visa-versa work to great effect;
         • Set abbr and acronym elements in small caps
           (using the font-variant property);
Web Typography                                                 31




       . e little things
         • Setting the body in a serif and headings in a san
           serif or visa-versa work to great effect;
         • Set abbr and acronym elements in small caps
           (using the font-variant property);
         • For headings use the most stylish ampersand
           available (Typogrify wraps them with .amp);
Web Typography                                                 31




       . e little things
         • Setting the body in a serif and headings in a san
           serif or visa-versa work to great effect;
         • Set abbr and acronym elements in small caps
           (using the font-variant property);
         • For headings use the most stylish ampersand
           available (Typogrify wraps them with .amp);
         • At small font sizes text-decoration: underline;
           can render descender characters (g, j, p, q, y)
           difficult to read – use border-bottom: 1px solid;;
Web Typography                                                     32




       . e little things (cond’t)
         • Don’t forget to set an ample leading (line height)
           for running text! Done using the line-height
           property and you can use a unit-less number
           (i.e. . which acts as a multiplier of the font size
           (em if you’re font sizing in ems);

            e leading spans from the baseline (don’t worry
            about descenders or ascenders.
Web Typography                                                33




       . e little things (cond’t)
         • Don’t be afraid to mark new paragraphs with
           indents, outdents, a plain white-line, a pilcrow
           (¶) or other ornament, drop cap and/or headers;
Web Typography                                                33




       . e little things (cond’t)
         • Don’t be afraid to mark new paragraphs with
           indents, outdents, a plain white-line, a pilcrow
           (¶) or other ornament, drop cap and/or headers;
         • Generally use flush-le (text-align: left;) for
           running text, particularly when set in a narrow
           measure – justification can work at ample
           measures and better with serif typefaces.
Web Typography                                                33




       . e little things (cond’t)
         • Don’t be afraid to mark new paragraphs with
           indents, outdents, a plain white-line, a pilcrow
           (¶) or other ornament, drop cap and/or headers;
         • Generally use flush-le (text-align: left;) for
           running text, particularly when set in a narrow
           measure – justification can work at ample
           measures and better with serif typefaces.
         • High-contrasting link colours in running text
           distract: use the smallest effective difference;
Web Typography                34




       . I lied – one more
Web Typography                                              34




       . I lied – one more
            Please don’t use Comic Sans unless you have a
            very, very good reason.
Web Typography                                                  25




            Free desktop specific
            Stick fonts into ~/.fonts

            To reload your font cache:
            fc-cache -fv


            Generally use a serif for printed type; make sure
            you grab a copy of the Liberation font package
            from Redhat!
            [https://www.redhat.com/promo/fonts/]
ISBN : ---
Web Typography                                               KLEPAS @ KLEPAS . ORG




            Other reading & references
          • http://webtypography.net

          • http://alistapart.com/topics/design/typography

          • http://usabletype.org

          • http://ilovetypography.com


            Ta.
Web Typography                         KLEPAS @ KLEPAS . ORG




            Inspirational type nuts
          • http://cameronmoll.com

          • http://jeffcro.com

          • http://zeldman.com

          • http://markboulton.co.uk

Contenu connexe

En vedette

Typography Essentials: Part 1
Typography Essentials: Part 1Typography Essentials: Part 1
Typography Essentials: Part 1Jennifer Janviere
 
Typography Essentials: Part 2
Typography Essentials: Part 2Typography Essentials: Part 2
Typography Essentials: Part 2Jennifer Janviere
 
Graphic Design, Illustration and Typography Portfolio [past work]
Graphic Design, Illustration and Typography Portfolio [past work]Graphic Design, Illustration and Typography Portfolio [past work]
Graphic Design, Illustration and Typography Portfolio [past work]sjacobsohn
 
User Experience Expertise for Business Applications
User Experience Expertise for Business ApplicationsUser Experience Expertise for Business Applications
User Experience Expertise for Business ApplicationsSkyron
 
Best Ad Banners Ever - Arunesh Chand Mankotia
Best Ad Banners Ever  - Arunesh Chand MankotiaBest Ad Banners Ever  - Arunesh Chand Mankotia
Best Ad Banners Ever - Arunesh Chand MankotiaConsultonmic
 
Better user stories by Matteo Cavucci
Better user stories by Matteo CavucciBetter user stories by Matteo Cavucci
Better user stories by Matteo CavucciAgile ME
 
The State of Web Typography
The State of Web TypographyThe State of Web Typography
The State of Web TypographyDerek Bender
 
Continuous Delivery Distilled
Continuous Delivery DistilledContinuous Delivery Distilled
Continuous Delivery DistilledMatt Callanan
 
Ten learnings from Wolff Olins on setting up a marketing department for success
Ten learnings from Wolff Olins on setting up a marketing department for successTen learnings from Wolff Olins on setting up a marketing department for success
Ten learnings from Wolff Olins on setting up a marketing department for successWolff Olins
 
The NEW Web Typography: Where the Sexy is 2016
The NEW Web Typography: Where the Sexy is 2016The NEW Web Typography: Where the Sexy is 2016
The NEW Web Typography: Where the Sexy is 2016Jason CranfordTeague
 
Typography on the Web
Typography on the WebTypography on the Web
Typography on the WebSara Cannon
 
Typography Fundamentals
Typography FundamentalsTypography Fundamentals
Typography FundamentalsSteve Hickey
 
WOLFF OLINS ON CULTURE
WOLFF OLINS ON CULTUREWOLFF OLINS ON CULTURE
WOLFF OLINS ON CULTUREWolff Olins
 
Typography - Graphic Design
Typography - Graphic DesignTypography - Graphic Design
Typography - Graphic DesignAbanoub Hanna
 
Digital UX trends 2017
Digital UX trends 2017Digital UX trends 2017
Digital UX trends 2017Mak Kordić
 
Ten learnings on thinking small for big impact
Ten learnings on thinking small for big impact Ten learnings on thinking small for big impact
Ten learnings on thinking small for big impact Wolff Olins
 

En vedette (20)

Typography Essentials: Part 1
Typography Essentials: Part 1Typography Essentials: Part 1
Typography Essentials: Part 1
 
Typography ppt
Typography pptTypography ppt
Typography ppt
 
Typography Essentials: Part 2
Typography Essentials: Part 2Typography Essentials: Part 2
Typography Essentials: Part 2
 
5 Reasons Typography is Powerful
5 Reasons Typography is Powerful5 Reasons Typography is Powerful
5 Reasons Typography is Powerful
 
Graphic Design, Illustration and Typography Portfolio [past work]
Graphic Design, Illustration and Typography Portfolio [past work]Graphic Design, Illustration and Typography Portfolio [past work]
Graphic Design, Illustration and Typography Portfolio [past work]
 
User Experience Expertise for Business Applications
User Experience Expertise for Business ApplicationsUser Experience Expertise for Business Applications
User Experience Expertise for Business Applications
 
Best Ad Banners Ever - Arunesh Chand Mankotia
Best Ad Banners Ever  - Arunesh Chand MankotiaBest Ad Banners Ever  - Arunesh Chand Mankotia
Best Ad Banners Ever - Arunesh Chand Mankotia
 
Better user stories by Matteo Cavucci
Better user stories by Matteo CavucciBetter user stories by Matteo Cavucci
Better user stories by Matteo Cavucci
 
The State of Web Typography
The State of Web TypographyThe State of Web Typography
The State of Web Typography
 
Continuous Delivery Distilled
Continuous Delivery DistilledContinuous Delivery Distilled
Continuous Delivery Distilled
 
Design for User Stories
Design for User StoriesDesign for User Stories
Design for User Stories
 
Ten learnings from Wolff Olins on setting up a marketing department for success
Ten learnings from Wolff Olins on setting up a marketing department for successTen learnings from Wolff Olins on setting up a marketing department for success
Ten learnings from Wolff Olins on setting up a marketing department for success
 
The NEW Web Typography: Where the Sexy is 2016
The NEW Web Typography: Where the Sexy is 2016The NEW Web Typography: Where the Sexy is 2016
The NEW Web Typography: Where the Sexy is 2016
 
Typography on the Web
Typography on the WebTypography on the Web
Typography on the Web
 
Better Typography
Better TypographyBetter Typography
Better Typography
 
Typography Fundamentals
Typography FundamentalsTypography Fundamentals
Typography Fundamentals
 
WOLFF OLINS ON CULTURE
WOLFF OLINS ON CULTUREWOLFF OLINS ON CULTURE
WOLFF OLINS ON CULTURE
 
Typography - Graphic Design
Typography - Graphic DesignTypography - Graphic Design
Typography - Graphic Design
 
Digital UX trends 2017
Digital UX trends 2017Digital UX trends 2017
Digital UX trends 2017
 
Ten learnings on thinking small for big impact
Ten learnings on thinking small for big impact Ten learnings on thinking small for big impact
Ten learnings on thinking small for big impact
 

Similaire à Beautiful Web Typography: 7 tips on de-sucking the web

Responsive Web Design & Typography
Responsive Web Design & TypographyResponsive Web Design & Typography
Responsive Web Design & TypographyDanny Calders
 
Web Typography5 090725053013 Phpapp02
Web Typography5 090725053013 Phpapp02Web Typography5 090725053013 Phpapp02
Web Typography5 090725053013 Phpapp02F Blanco
 
Hooray Icon Fonts workshop
Hooray Icon Fonts workshopHooray Icon Fonts workshop
Hooray Icon Fonts workshopjameswillweb
 
Designing Type for User Interface
Designing Type for User InterfaceDesigning Type for User Interface
Designing Type for User InterfaceAndi Galpern
 
Web Typography 101
Web Typography 101Web Typography 101
Web Typography 101breahnag
 
Mobile ui trends present future – meaningful mobile typography
Mobile ui trends present future  – meaningful mobile typographyMobile ui trends present future  – meaningful mobile typography
Mobile ui trends present future – meaningful mobile typographyHalil Eren Çelik
 
Typography For The Web
Typography For The WebTypography For The Web
Typography For The WebChristy Gurga
 
Controlling Web Typography
Controlling Web TypographyControlling Web Typography
Controlling Web TypographyTrent Walton
 
How to effective_power_point_presentation
How to effective_power_point_presentationHow to effective_power_point_presentation
How to effective_power_point_presentationbkshukla6669
 
10 tips for a usable website
10 tips for a usable website10 tips for a usable website
10 tips for a usable websiteBart De Waele
 
The Third Screen: Using HTML+CSS to format for Print
The Third Screen: Using HTML+CSS to format for PrintThe Third Screen: Using HTML+CSS to format for Print
The Third Screen: Using HTML+CSS to format for PrintWilliam Hertling
 
Design for developers (april 25, 2017)
Design for developers (april 25, 2017)Design for developers (april 25, 2017)
Design for developers (april 25, 2017)Thinkful
 
Be your own publisher seminar calif april 2010-session1_c_darkbkgd
Be your own publisher seminar  calif april 2010-session1_c_darkbkgdBe your own publisher seminar  calif april 2010-session1_c_darkbkgd
Be your own publisher seminar calif april 2010-session1_c_darkbkgdJ T "Tom" Johnson
 
Typography and Colors for GUI Designers
Typography and Colors for GUI DesignersTypography and Colors for GUI Designers
Typography and Colors for GUI DesignersRavi Bhadauria
 

Similaire à Beautiful Web Typography: 7 tips on de-sucking the web (20)

Responsive Web Design & Typography
Responsive Web Design & TypographyResponsive Web Design & Typography
Responsive Web Design & Typography
 
Fonts
FontsFonts
Fonts
 
Web Typography
Web TypographyWeb Typography
Web Typography
 
Web Typography5 090725053013 Phpapp02
Web Typography5 090725053013 Phpapp02Web Typography5 090725053013 Phpapp02
Web Typography5 090725053013 Phpapp02
 
Hooray Icon Fonts workshop
Hooray Icon Fonts workshopHooray Icon Fonts workshop
Hooray Icon Fonts workshop
 
Designing Type for User Interface
Designing Type for User InterfaceDesigning Type for User Interface
Designing Type for User Interface
 
Web Typography 101
Web Typography 101Web Typography 101
Web Typography 101
 
Digital Typography Guide For Magazine Publishers
Digital Typography Guide  For Magazine Publishers Digital Typography Guide  For Magazine Publishers
Digital Typography Guide For Magazine Publishers
 
Mobile ui trends present future – meaningful mobile typography
Mobile ui trends present future  – meaningful mobile typographyMobile ui trends present future  – meaningful mobile typography
Mobile ui trends present future – meaningful mobile typography
 
Typography For The Web
Typography For The WebTypography For The Web
Typography For The Web
 
Controlling Web Typography
Controlling Web TypographyControlling Web Typography
Controlling Web Typography
 
How to effective_power_point_presentation
How to effective_power_point_presentationHow to effective_power_point_presentation
How to effective_power_point_presentation
 
10 tips for a usable website
10 tips for a usable website10 tips for a usable website
10 tips for a usable website
 
new fonts for the web
new fonts for the webnew fonts for the web
new fonts for the web
 
The Third Screen: Using HTML+CSS to format for Print
The Third Screen: Using HTML+CSS to format for PrintThe Third Screen: Using HTML+CSS to format for Print
The Third Screen: Using HTML+CSS to format for Print
 
Web Typography
Web TypographyWeb Typography
Web Typography
 
Fontjoy
FontjoyFontjoy
Fontjoy
 
Design for developers (april 25, 2017)
Design for developers (april 25, 2017)Design for developers (april 25, 2017)
Design for developers (april 25, 2017)
 
Be your own publisher seminar calif april 2010-session1_c_darkbkgd
Be your own publisher seminar  calif april 2010-session1_c_darkbkgdBe your own publisher seminar  calif april 2010-session1_c_darkbkgd
Be your own publisher seminar calif april 2010-session1_c_darkbkgd
 
Typography and Colors for GUI Designers
Typography and Colors for GUI DesignersTypography and Colors for GUI Designers
Typography and Colors for GUI Designers
 

Dernier

Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 

Dernier (20)

Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 

Beautiful Web Typography: 7 tips on de-sucking the web

  • 1. Beautiful Web Typography  tips on de-sucking the web Simon Pascal Klein
  • 2. Web Typography 1 Introduction
  • 3. Web Typography 2 I’m Pascal Klein
  • 4. Web Typography 3 I...
  • 5. Web Typography 3 I... • work for a small web-dev company based in Canberra and also operate on a free-lance basis;
  • 6. Web Typography 3 I... • work for a small web-dev company based in Canberra and also operate on a free-lance basis; • try to use, and support Open Source soware;
  • 7. Web Typography 3 I... • work for a small web-dev company based in Canberra and also operate on a free-lance basis; • try to use, and support Open Source soware; • write about typography and whatever else strikes me at the time on klepas.org.
  • 9. Web Typography 4 What is typography?
  • 10. Web Typography 4 What is typography? ty•pog•ra•phy |tīˈpägrəfē| •n Typography is the art of creating and setting type with the purpose of honoring the text it sets.
  • 11. Web Typography 4 serif sans-serif
  • 12. Web Typography 4 e difference serif sans-serif
  • 13. Web Typography 5 e Intertubes today
  • 14. Web Typography 5 e Intertubes today Lots of information.
  • 15. Web Typography 5 e Intertubes today Lots of information. Information Architecture deals with this primarily but there is another:
  • 16. Web Typography 5 e Intertubes today Lots of information. Information Architecture deals with this primarily but there is another: Typography.
  • 18. Web Typography 5 Typography exists to bring order to information by dividing and organizing – aiding readers in finding what they are looking for.
  • 19. Web Typography 6 “Typography is not picking a ‘cool’ font.” – Jeff Cro
  • 20. Web Typography 7  tips to de-suck the web
  • 21. Web Typography 8 . Starting out: reset All the browsers have their own default styling for various ( X ) HTML elements. is makes it a pain for cross-browser consistency.
  • 22. Web Typography 8 . Starting out: reset All the browsers have their own default styling for various ( X ) HTML elements. is makes it a pain for cross-browser consistency. Fix? Simply reset everything.
  • 23. Web Typography 9 body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,in put,textarea,p,blockquote,th,td {margin:0;padding:0;} table {border-collapse:collapse;border-spacing:0;} fieldset,img {border:0;} address,caption,cite,code,dfn,em,strong,th,var {font- style:normal;font-weight:normal;} ol,ul {list-style:none;} caption,th {text-align:left;} h1,h2,h3,h4,h5,h6 {font-size:100%;font-weight:normal;} q:before,q:after {content:'';} abbr,acronym {border:0;} Googling “CSS reset stylesheets” should land you with numerous examples. is one above is from the Yahoo! UI library.
  • 24. Web Typography 10 . Font sizing Font sizing is done using font-size. It uses any of the CSS numerical measurements and is either done in absolute or relative terms. Sizing in pixels is absolute whilst sizing in ems or percentages are an example of relative terms.
  • 25. Web Typography 11 . Use ems An em is a relative unit best to be thought of as a box. It is relative to the point size of a specific font (i.e.  em in a  point typeface is  point).
  • 26. Web Typography 11 . Use ems An em is a relative unit best to be thought of as a box. It is relative to the point size of a specific font (i.e.  em in a  point typeface is  point). To calculate, find what one pixel is in ems and then multiply by the desired font size (in pixels): 1 ÷ parent font-size × required pixel value = em value
  • 27. Web Typography 11 . Use ems An em is a relative unit best to be thought of as a box. It is relative to the point size of a specific font (i.e.  em in a  point typeface is  point). To calculate, find what one pixel is in ems and then multiply by the desired font size (in pixels): 1 ÷ parent font-size × required pixel value = em value Note this means sizing in ems can easily have you using values with three decimal places.
  • 28. Web Typography 12 .. e . trick Relative font sizes are either relative to the browser default font size (commonly  pixels) or their parent element. Consider: p { font-size: 80%; } blockquote { font-size: 80%; }
  • 29. Web Typography 12 .. e . trick Relative font sizes are either relative to the browser default font size (commonly  pixels) or their parent element. Consider: p { font-size: 80%; } blockquote { font-size: 80%; } 80% of 16px is 12.8px, so p and blockquote elements will be that size, but what happens when we put a p element inside a blockquote element? e parent (blockquote) is 12.8px so the p will be rendered at 80% of that – 10.42px.
  • 30. Web Typography  .. e . trick (cont’d) In 2004 Richard Rutter wrote an article outlining a trick used to make these calculations simpler: because browsers have a common default font size of 16px we can set the body font size to be 62.5%, resetting the default value to 10px. From here on, using ems is much easier: px in ems is .em, px is .em. Remember this only holds up for direct child elements of the body; nested elements will be relative to their parents.
  • 31. Web Typography 14 .. Differences in browser rounding
  • 32. Web Typography 14 .. Differences in browser rounding Make sure your actual font size in absolute terms is either an integer or half-way in between (i.e. 13px, 13.5px or 14px).
  • 33. Web Typography 14 .. Differences in browser rounding Make sure your actual font size in absolute terms is either an integer or half-way in between (i.e. 13px, 13.5px or 14px). To find an element’s font size in absolute terms (i.e. pixels) you can use the Firefox Web Develop Extension, Information → Display Element Information.
  • 34. Web Typography 15 . Stick it to a scale Use a scale when setting type. Find what suits you best for a given project and stick to it. 6, 7, 8, 9, 10, 11, 12, 14, 16, 18, 21, 24, 36, 48, 60, 72. the “classic scale” 9, 10, 11, another scale 24,12, 13, 14, 18, 36, 48, 64, 72, 96. 8, 13, 21, 34, 55, scale based on the Fibonacci sequence 89.
  • 35. Web Typography 16 . Use Smartypants or similar Smartypants is a script that translates plain ASCII punctuation characters into “smart” typographic punctuation HTML entities. • Smartypants (PHP, PERL, & Movable Type); • Typogrify (Python/Django); • wp-typogrify (WordPress); • …?
  • 36. Web Typography 17 . Quotation marks & apostrophes ‘’ “” ’
  • 37. Web Typography 18 ' "
  • 38. Web Typography 19 1'61"
  • 39. Web Typography 20 "is is a group of words surrounded by a bunch of tick marks."
  • 40. Web Typography 21 “is is a quotation!” - Jeff Cro
  • 41. Web Typography 22 . Dashes
  • 42. Web Typography 22 . Dashes - hyphen Mary-Anne, Dominique Strauss-Kahn – en dash April–May, ages –, pp. – — em dash Phrase marker—not spaced—like this.* – minus 5–4=1
  • 43. Web Typography 23 . Advanced: hanging punctuation Traditionally punctuation marks, bullets, lists, hyphens, and brackets all hang in the margin. “Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Integer a odio. Vivamus placerat felis id risus. Cras mollis est. Suspendisse molestie imperdiet libero. Etiam mollis libero vulputate lorem. Nullam ut leo. (Etiam at turpis non massa rhoncus sodales.)”
  • 44. Web Typography 24 . Advanced: hanging punctuation (cont’d) Easily done with lists by just setting their margins to zero. Possible for opening punctuation marks using background-image or a negative text-indent. CSS 3 will hopefully support hanging punctuation with the proposed hanging-punctuation property. [http://www.w3.org/TR/css3-text/#hanging-punctuation]
  • 45. Web Typography 25 . Select a good measure e measure is the length of a single line. It is important to select a good measure for running text. Do this with the width property. Ideally these should be relative to the font size, such that the type scales proportionately to the measure; use ems or percentages.
  • 46. Web Typography 26 . Select a good measure (cond’t) An apt measure for running text ranges from about - characters for serif type set in a single column on a page (print). On the web, type generally benefits from a smaller measure. When using multi-column you’ll need to go even smaller.
  • 47. Web Typography 26 . Select a good measure (cond’t) An apt measure for running text ranges from about - characters for serif type set in a single column on a page (print). On the web, type generally benefits from a smaller measure. When using multi-column you’ll need to go even smaller. Characters average at around two thirds of an em, so a width of  to  ems matches the above.
  • 48. Web Typography 27 . Treat text as part of the UI Distinguish content elements from application controls (i.e. a user’s username and description from a logout link or text-field title). Oen done with colour (i.e. setting controls gray), size (making them smaller) and typefaces.
  • 51. Web Typography 30 . Use grids Grids bring order to your page and help specify where things should go and their flow. Remember to put in apt “gutters” (margins between columns) to separate your columns particularly when neighbouring columns hold running text. Ruler guides help enormously – use the Web Developer extension for Firefox or ruler background images. Also see the YUI library.
  • 54. Web Typography 31 . e little things
  • 55. Web Typography 31 . e little things • Setting the body in a serif and headings in a san serif or visa-versa work to great effect;
  • 56. Web Typography 31 . e little things • Setting the body in a serif and headings in a san serif or visa-versa work to great effect; • Set abbr and acronym elements in small caps (using the font-variant property);
  • 57. Web Typography 31 . e little things • Setting the body in a serif and headings in a san serif or visa-versa work to great effect; • Set abbr and acronym elements in small caps (using the font-variant property); • For headings use the most stylish ampersand available (Typogrify wraps them with .amp);
  • 58. Web Typography 31 . e little things • Setting the body in a serif and headings in a san serif or visa-versa work to great effect; • Set abbr and acronym elements in small caps (using the font-variant property); • For headings use the most stylish ampersand available (Typogrify wraps them with .amp); • At small font sizes text-decoration: underline; can render descender characters (g, j, p, q, y) difficult to read – use border-bottom: 1px solid;;
  • 59. Web Typography 32 . e little things (cond’t) • Don’t forget to set an ample leading (line height) for running text! Done using the line-height property and you can use a unit-less number (i.e. . which acts as a multiplier of the font size (em if you’re font sizing in ems); e leading spans from the baseline (don’t worry about descenders or ascenders.
  • 60. Web Typography 33 . e little things (cond’t) • Don’t be afraid to mark new paragraphs with indents, outdents, a plain white-line, a pilcrow (¶) or other ornament, drop cap and/or headers;
  • 61. Web Typography 33 . e little things (cond’t) • Don’t be afraid to mark new paragraphs with indents, outdents, a plain white-line, a pilcrow (¶) or other ornament, drop cap and/or headers; • Generally use flush-le (text-align: left;) for running text, particularly when set in a narrow measure – justification can work at ample measures and better with serif typefaces.
  • 62. Web Typography 33 . e little things (cond’t) • Don’t be afraid to mark new paragraphs with indents, outdents, a plain white-line, a pilcrow (¶) or other ornament, drop cap and/or headers; • Generally use flush-le (text-align: left;) for running text, particularly when set in a narrow measure – justification can work at ample measures and better with serif typefaces. • High-contrasting link colours in running text distract: use the smallest effective difference;
  • 63. Web Typography 34 . I lied – one more
  • 64. Web Typography 34 . I lied – one more Please don’t use Comic Sans unless you have a very, very good reason.
  • 65. Web Typography 25 Free desktop specific Stick fonts into ~/.fonts To reload your font cache: fc-cache -fv Generally use a serif for printed type; make sure you grab a copy of the Liberation font package from Redhat! [https://www.redhat.com/promo/fonts/]
  • 67. Web Typography KLEPAS @ KLEPAS . ORG Other reading & references • http://webtypography.net • http://alistapart.com/topics/design/typography • http://usabletype.org • http://ilovetypography.com Ta.
  • 68. Web Typography KLEPAS @ KLEPAS . ORG Inspirational type nuts • http://cameronmoll.com • http://jeffcro.com • http://zeldman.com • http://markboulton.co.uk