SlideShare uma empresa Scribd logo
1 de 37
Baixar para ler offline
Web Typography & Drupal
           Putting Arial Out To Pasture


           DrupalCon London                    Jason Pamental (@jpamental)
           23 August 2011                              thinkinginpencil.com


                         .com

Tuesday, August 23, 11
What We’ll Cover
                    ✤ Design & Typography: what & why
                    ✤ Web Fonts:
                         ✦ How they work (& don’t)
                         ✦ Where they work (... & don’t)
                         ✦ Why developers hate them...
                         ✦ ...and why they don’t have to

                    ✤ How they can be a bit more awesome

                          .com

Tuesday, August 23, 11
I Will Not Bash Helvetica*


                    ✤ But it’s not always the best tool in
                         our toolbox as designers
                    ✤ Why? Because...


                                               *or its low-rent cousin Arial



                         .com

Tuesday, August 23, 11
(but yours doesn’t have to)



                         .com

Tuesday, August 23, 11
Type is Important

                         The typefaces we use become the
                         physical embodiment of the
                         information we convey through the
                         sites we design




                          .com

Tuesday, August 23, 11
Type is Important

                    ✤ Companies (read: our clients &
                         employers) spend lots of money
                         developing their brand image
                    ✤ Much of that image is conveyed
                         through specific selection & design
                         of their typefaces



                          .com

Tuesday, August 23, 11
Type & Its Importance
                                 (in 120 seconds or less)
                    ✤ Basic design tools to convey
                         meaning, emotion & message:
                         1. image
                         2. color
                         3. composition
                         4. language (prose)…
                         5. and the typeface itself


                          .com

Tuesday, August 23, 11
Why Give One Up?

                    ✤ The Swiss style dictates that type
                         should convey only the meaning of
                         the words it spells out
                    ✤ But that eliminates the one tool that
                         covers most of the page



                         .com

Tuesday, August 23, 11
Josef Müller-Brockmann
                Was Livin’ The Dream

                    ✤ 17 years of the web & still no decent
                         alternatives in sight
                    ✤ Admit it: text-as-gif was a worse
                         hack than the transparent spacer.gif



                         .com

Tuesday, August 23, 11
A Slow Boat To China

                    ✤ Options have been few & flawed
                         ✦ Text-as-GIF
                            (hard to maintain)
                         ✦ Font tags in HTML & CSS
                            (constrained by availability)
                         ✦ Cufon & sIFR
                            (if you’ve used it, you understand)




                          .com

Tuesday, August 23, 11
So What’s a Designer
                       To Do?


                         .com

Tuesday, August 23, 11
Turns Out, Lots

                    ✤ With adoption of @font-face and
                         related font download specs in CSS3
                    ✤ ...and the involvement of the type
                         foundries themselves
                    ✤ ...and even more persistence on the
                         part of the web design community


                         .com

Tuesday, August 23, 11
Enter: Typekit
                    ✤ Typekit launched in 2009, followed
                         by Fontdeck, Fonts.com & more
                    ✤ Enables easy embedding & broad
                         support for thousands of fonts
                    ✤ (Yes, you can also use free/open
                         source options and host yourself.
                         You should try it – it’s fun.)
                    ✤ Don’t forget: it’s new. There are
                         rough edges. It pays to remember...
                         .com

Tuesday, August 23, 11
Web Fonts Are
                                Still a Bit of a
                                Wild West Affair
                         .com

Tuesday, August 23, 11
Let Me Give You a Hint
                    ✤ Fonts were made to be printed;
                         screen appearance was secondary
                         (in order to aid in that whole
                         ‘writing’ part)
                    ✤ Explosion of devices, OS’s &
                         resolutions requires adjusting screen
                         appearance often at sub-pixel level
                    ✤ That practice is known as ‘hinting’
                         (or 'dumping hundreds of man-hours & untold mounds of
                         money into making type not suck on Windows')


                          .com

Tuesday, August 23, 11
Hinting is Tricky
                    ✤ See: ‘How to draw a line on the
                         screen that falls between two pixels’
                    ✤ or ‘Things that are like painting a
                         portrait while blindfolded with one
                         color & no hands’
                    ✤ See the blogs at Fonts.com &
                         Typekit.com to learn more


                         .com

Tuesday, August 23, 11
Open Source Type
                    ✤ We’re all fans of Open Source –
                    ✤ So why wouldn’t we all use Google
                         Web Fonts or just host ourselves?
                    ✤ Google is a tech company – not a
                         type one
                    ✤ Commercial services are dedicated
                         to bettering the web font
                         experience and release updates &
                         new features all the time

                         .com

Tuesday, August 23, 11
Um, I Thought This Was
                  a Drupal Conference
                    ✤ So what’s the point, you ask?
                    ✤ Over a dozen (& counting) web font
                         services, all with slightly different
                         syntax & features
                    ✤ Scott Reynen’s @font-your-face
                         module handles many (more if you
                         help) – even allowing mixing
                         services on same page

                          .com

Tuesday, August 23, 11
Do That Drupal
                          Voodoo You Do
                    ✤ We use Drupal because it saves us
                         time & lets us do more
                    ✤ We’ve all got a ‘secret sauce’ of
                         modules, configurations & themes
                    ✤ Web fonts are no different – having
                         a plan & a starter setup is huge


                         .com

Tuesday, August 23, 11
So What Does It Take?
                    ✤ Font selection & pairing: don’t be
                         shy about body text too
                    ✤ Research & test: no substitute for
                         actually seeing it yourself in IE (< 9)
                    ✤ Note well: ClearType won’t fix
                         everything, and XP shipped with it
                         off anyway



                         .com

Tuesday, August 23, 11
So What Does It Take?
                    ✤ Font selection & pairing: don’t be
                         shy about body text too
                    ✤ Research & test: no substitute for
                         actually seeing it yourself in IE (< 9)
                    ✤ Note well: ClearType won’t fix
                         everything, and XP shipped with it
                         off anyway
                    ✤ Take it for a spin - it’s easy to try
                      (seriously - it’s one line of code)
                         .com

Tuesday, August 23, 11
Now You Might Cry
                                (maybe just a little bit)




                    ✤ Ready? Fire up that new design for
                         your client or your boss and...




                         .com

Tuesday, August 23, 11
Ugly or Nothing




   Firefox: displays page w/fallbacks first,   Webkit: draws page without rendering
   then ‘pops’ into web font                   any type until web font loads




                         .com

Tuesday, August 23, 11
Ugly or Nothing




   Firefox: displays page w/fallbacks first,   Webkit: draws page without rendering
   then ‘pops’ into web font                   any type until web font loads




                         .com

Tuesday, August 23, 11
What’s FOUT About
                    ✤ FOUT (Flash Of Unstyled Text) is what
                         happens before those lovely web
                         fonts load
                    ✤ Ugly or Nothing – either can be a
                         deal-breaker with clients
                    ✤ You can mitigate either with
                         Google’s WebFont Loader & some
                         creative layering of your CSS

                         .com

Tuesday, August 23, 11
WebFont Loader
                    ✤ Several services (Fonts.com, Typekit
                         & Google Web Fonts) support it
                    ✤ Injects classes into your HTML
                         indicating status of web fonts in your
                         page: loading, active, inactive
                    ✤ Allows you to craft ‘loading CSS’
                         using web-safe fallbacks, adjusting
                         size, line-height & letter-spacing

                         .com

Tuesday, August 23, 11
It’s the Responsive
                          Thing To Do
                    ✤ Adjusting your CSS can eliminate
                         jarring redraw/reflow of your text
                    ✤ Makes sure your design holds up
                         during loading & on older devices
                    ✤ Can even have <noscript> CSS-only
                         loading for further refinement
                         (Fonts.com only I think)
                    ✤ It’s the web – things go wrong, and
                         a professional will plan for that

                         .com

Tuesday, August 23, 11
Prove It Doesn’t Suck
                                (quoth the front-end dev)
                    ✤ Choose fonts with care & only
                         enable the weights you will use
                    ✤ Use WebFont Loader & CSS to even
                         out the experience & match design
                    ✤ Provide appropriate fallback options
                    ✤ Let someone else handle
                         bandwidth, distribution and updates
                         (most services use a CDN – do you?)

                         .com

Tuesday, August 23, 11
What About                       ?
                    ✤ File size for most weights of Western
                         fonts is ~40-60k
                    ✤ Could be ~200k+ for Arabic or...
                    ✤ Over ~2MB for Japanese
                    ✤ Embedding that would be... unwise
                    ✤ Fonts.com can dynamically subset
                         that font and deliver only the
                         characters used on the page

                         .com

Tuesday, August 23, 11
That’s a Lot of Work
                    ✤ But the user wins: better design,
                         enhanced readibility, richer
                         experience
                    ✤ And the client wins: better branding,
                         greater engagement
                    ✤ And we win: by pushing the
                         boundaries further, we take design
                         to a higher level – and get more &
                         better work because of it

                         .com

Tuesday, August 23, 11
What’s the Drupal
                          Connection?
                    ✤ Rewind to our ‘secret sauce’ from
                         Slide 19
                    ✤ Much of what’s required need only
                         be set up once & then tweaked
                    ✤ Just like styling the 404 page – it just
                         shows you care that little bit extra
                    ✤ I’ve included this & other Responsive
                         Web Design ideas in Schoolyard’s
                         ‘base’ theme, making it possible to
                         replicate baseline work quickly
                          .com

Tuesday, August 23, 11
And Now, a Demo
                    ✤ I’ve written about some of these
                         techniques for the Fonts.com blog,
                         the latest including a demo
                         download
                         Blog post:
                         http://bit.ly/pF5qlr




                                                Web fonts loaded
                          .com

Tuesday, August 23, 11
And Now, a Demo
                    ✤ I’ve written about some of these
                         techniques for the Fonts.com blog,
                         the latest including a demo
                         download
                         Blog post:
                         http://bit.ly/pF5qlr




                                                No web fonts, uncorrected
                          .com

Tuesday, August 23, 11
And Now, a Demo
                    ✤ I’ve written about some of these
                         techniques for the Fonts.com blog,
                         the latest including a demo
                         download
                         Blog post:
                         http://bit.ly/pF5qlr




                                                No web fonts, corrected
                          .com

Tuesday, August 23, 11
And Now, a Demo
                    ✤ I’ve written about some of these
                         techniques for the Fonts.com blog,
                         the latest including a demo
                         download
                         Blog post:
                         http://bit.ly/pF5qlr




                                                Web fonts loaded
                          .com

Tuesday, August 23, 11
Thank You!
                                Jason Pamental (@jpamental)
                                 jason@thinkinginpencil.com


                         many thanks to Monotype & Schoolyard for their support




                         .com

Tuesday, August 23, 11
Resources
                    ✤ Fonts.com & their blog
                         http://blog.fonts.com
                    ✤ Typekit & their blog
                         http://blog.typekit.com
                    ✤ Google’s Web Fonts
                         http://www.google.com/webfonts
                    ✤ Ethan Marcotte’s excellent book
                         Responsive Web Design
                         (from abookapart.com)

                         .com

Tuesday, August 23, 11

Mais conteúdo relacionado

Mais de Jason Pamental

Designing the Experience Continuum: Typography in the Age of the Connected Ev...
Designing the Experience Continuum: Typography in the Age of the Connected Ev...Designing the Experience Continuum: Typography in the Age of the Connected Ev...
Designing the Experience Continuum: Typography in the Age of the Connected Ev...Jason Pamental
 
Life of P FITC & CreateUpstate
Life of P FITC & CreateUpstateLife of P FITC & CreateUpstate
Life of P FITC & CreateUpstateJason Pamental
 
Responsive Typography: Design for meaning, not for screen size
Responsive Typography: Design for meaning, not for screen sizeResponsive Typography: Design for meaning, not for screen size
Responsive Typography: Design for meaning, not for screen sizeJason Pamental
 
Type, Responsively: Design for Readability & Meaning on Any Screen
Type, Responsively: Design for Readability & Meaning on Any ScreenType, Responsively: Design for Readability & Meaning on Any Screen
Type, Responsively: Design for Readability & Meaning on Any ScreenJason Pamental
 
Type, Responsively: A More Modern Approach to Typography on the Web
Type, Responsively: A More Modern Approach to Typography on the WebType, Responsively: A More Modern Approach to Typography on the Web
Type, Responsively: A More Modern Approach to Typography on the WebJason Pamental
 
Designing from the Inside Out
Designing from the Inside OutDesigning from the Inside Out
Designing from the Inside OutJason Pamental
 
The Battle Is Not the War
The Battle Is Not the WarThe Battle Is Not the War
The Battle Is Not the WarJason Pamental
 
Type, Responsively: A more modern approach to type on the web
Type, Responsively: A more modern approach to type on the webType, Responsively: A more modern approach to type on the web
Type, Responsively: A more modern approach to type on the webJason Pamental
 
Designing with Web Fonts: Type, Responsively (PVD)
Designing with Web Fonts: Type, Responsively (PVD)Designing with Web Fonts: Type, Responsively (PVD)
Designing with Web Fonts: Type, Responsively (PVD)Jason Pamental
 
Designing with Web Fonts: Type, Responsively
Designing with Web Fonts: Type, ResponsivelyDesigning with Web Fonts: Type, Responsively
Designing with Web Fonts: Type, ResponsivelyJason Pamental
 
Drawing on Quicksand: Visual Systems, Drupal & The Modern Web World
Drawing on Quicksand: Visual Systems, Drupal & The Modern Web WorldDrawing on Quicksand: Visual Systems, Drupal & The Modern Web World
Drawing on Quicksand: Visual Systems, Drupal & The Modern Web WorldJason Pamental
 
Death, Taxes & Viewport Chrome: Designing for Uncertainty
Death, Taxes & Viewport Chrome: Designing for UncertaintyDeath, Taxes & Viewport Chrome: Designing for Uncertainty
Death, Taxes & Viewport Chrome: Designing for UncertaintyJason Pamental
 
Death, Taxes & Viewport Chrome
Death, Taxes & Viewport ChromeDeath, Taxes & Viewport Chrome
Death, Taxes & Viewport ChromeJason Pamental
 

Mais de Jason Pamental (14)

Designing the Experience Continuum: Typography in the Age of the Connected Ev...
Designing the Experience Continuum: Typography in the Age of the Connected Ev...Designing the Experience Continuum: Typography in the Age of the Connected Ev...
Designing the Experience Continuum: Typography in the Age of the Connected Ev...
 
Life of P FITC & CreateUpstate
Life of P FITC & CreateUpstateLife of P FITC & CreateUpstate
Life of P FITC & CreateUpstate
 
Life of p
Life of pLife of p
Life of p
 
Responsive Typography: Design for meaning, not for screen size
Responsive Typography: Design for meaning, not for screen sizeResponsive Typography: Design for meaning, not for screen size
Responsive Typography: Design for meaning, not for screen size
 
Type, Responsively: Design for Readability & Meaning on Any Screen
Type, Responsively: Design for Readability & Meaning on Any ScreenType, Responsively: Design for Readability & Meaning on Any Screen
Type, Responsively: Design for Readability & Meaning on Any Screen
 
Type, Responsively: A More Modern Approach to Typography on the Web
Type, Responsively: A More Modern Approach to Typography on the WebType, Responsively: A More Modern Approach to Typography on the Web
Type, Responsively: A More Modern Approach to Typography on the Web
 
Designing from the Inside Out
Designing from the Inside OutDesigning from the Inside Out
Designing from the Inside Out
 
The Battle Is Not the War
The Battle Is Not the WarThe Battle Is Not the War
The Battle Is Not the War
 
Type, Responsively: A more modern approach to type on the web
Type, Responsively: A more modern approach to type on the webType, Responsively: A more modern approach to type on the web
Type, Responsively: A more modern approach to type on the web
 
Designing with Web Fonts: Type, Responsively (PVD)
Designing with Web Fonts: Type, Responsively (PVD)Designing with Web Fonts: Type, Responsively (PVD)
Designing with Web Fonts: Type, Responsively (PVD)
 
Designing with Web Fonts: Type, Responsively
Designing with Web Fonts: Type, ResponsivelyDesigning with Web Fonts: Type, Responsively
Designing with Web Fonts: Type, Responsively
 
Drawing on Quicksand: Visual Systems, Drupal & The Modern Web World
Drawing on Quicksand: Visual Systems, Drupal & The Modern Web WorldDrawing on Quicksand: Visual Systems, Drupal & The Modern Web World
Drawing on Quicksand: Visual Systems, Drupal & The Modern Web World
 
Death, Taxes & Viewport Chrome: Designing for Uncertainty
Death, Taxes & Viewport Chrome: Designing for UncertaintyDeath, Taxes & Viewport Chrome: Designing for Uncertainty
Death, Taxes & Viewport Chrome: Designing for Uncertainty
 
Death, Taxes & Viewport Chrome
Death, Taxes & Viewport ChromeDeath, Taxes & Viewport Chrome
Death, Taxes & Viewport Chrome
 

Último

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 

Último (20)

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 

Web Typography & Drupal: Putting Arial Out to Pasture

  • 1. Web Typography & Drupal Putting Arial Out To Pasture DrupalCon London Jason Pamental (@jpamental) 23 August 2011 thinkinginpencil.com .com Tuesday, August 23, 11
  • 2. What We’ll Cover ✤ Design & Typography: what & why ✤ Web Fonts: ✦ How they work (& don’t) ✦ Where they work (... & don’t) ✦ Why developers hate them... ✦ ...and why they don’t have to ✤ How they can be a bit more awesome .com Tuesday, August 23, 11
  • 3. I Will Not Bash Helvetica* ✤ But it’s not always the best tool in our toolbox as designers ✤ Why? Because... *or its low-rent cousin Arial .com Tuesday, August 23, 11
  • 4. (but yours doesn’t have to) .com Tuesday, August 23, 11
  • 5. Type is Important The typefaces we use become the physical embodiment of the information we convey through the sites we design .com Tuesday, August 23, 11
  • 6. Type is Important ✤ Companies (read: our clients & employers) spend lots of money developing their brand image ✤ Much of that image is conveyed through specific selection & design of their typefaces .com Tuesday, August 23, 11
  • 7. Type & Its Importance (in 120 seconds or less) ✤ Basic design tools to convey meaning, emotion & message: 1. image 2. color 3. composition 4. language (prose)… 5. and the typeface itself .com Tuesday, August 23, 11
  • 8. Why Give One Up? ✤ The Swiss style dictates that type should convey only the meaning of the words it spells out ✤ But that eliminates the one tool that covers most of the page .com Tuesday, August 23, 11
  • 9. Josef Müller-Brockmann Was Livin’ The Dream ✤ 17 years of the web & still no decent alternatives in sight ✤ Admit it: text-as-gif was a worse hack than the transparent spacer.gif .com Tuesday, August 23, 11
  • 10. A Slow Boat To China ✤ Options have been few & flawed ✦ Text-as-GIF (hard to maintain) ✦ Font tags in HTML & CSS (constrained by availability) ✦ Cufon & sIFR (if you’ve used it, you understand) .com Tuesday, August 23, 11
  • 11. So What’s a Designer To Do? .com Tuesday, August 23, 11
  • 12. Turns Out, Lots ✤ With adoption of @font-face and related font download specs in CSS3 ✤ ...and the involvement of the type foundries themselves ✤ ...and even more persistence on the part of the web design community .com Tuesday, August 23, 11
  • 13. Enter: Typekit ✤ Typekit launched in 2009, followed by Fontdeck, Fonts.com & more ✤ Enables easy embedding & broad support for thousands of fonts ✤ (Yes, you can also use free/open source options and host yourself. You should try it – it’s fun.) ✤ Don’t forget: it’s new. There are rough edges. It pays to remember... .com Tuesday, August 23, 11
  • 14. Web Fonts Are Still a Bit of a Wild West Affair .com Tuesday, August 23, 11
  • 15. Let Me Give You a Hint ✤ Fonts were made to be printed; screen appearance was secondary (in order to aid in that whole ‘writing’ part) ✤ Explosion of devices, OS’s & resolutions requires adjusting screen appearance often at sub-pixel level ✤ That practice is known as ‘hinting’ (or 'dumping hundreds of man-hours & untold mounds of money into making type not suck on Windows') .com Tuesday, August 23, 11
  • 16. Hinting is Tricky ✤ See: ‘How to draw a line on the screen that falls between two pixels’ ✤ or ‘Things that are like painting a portrait while blindfolded with one color & no hands’ ✤ See the blogs at Fonts.com & Typekit.com to learn more .com Tuesday, August 23, 11
  • 17. Open Source Type ✤ We’re all fans of Open Source – ✤ So why wouldn’t we all use Google Web Fonts or just host ourselves? ✤ Google is a tech company – not a type one ✤ Commercial services are dedicated to bettering the web font experience and release updates & new features all the time .com Tuesday, August 23, 11
  • 18. Um, I Thought This Was a Drupal Conference ✤ So what’s the point, you ask? ✤ Over a dozen (& counting) web font services, all with slightly different syntax & features ✤ Scott Reynen’s @font-your-face module handles many (more if you help) – even allowing mixing services on same page .com Tuesday, August 23, 11
  • 19. Do That Drupal Voodoo You Do ✤ We use Drupal because it saves us time & lets us do more ✤ We’ve all got a ‘secret sauce’ of modules, configurations & themes ✤ Web fonts are no different – having a plan & a starter setup is huge .com Tuesday, August 23, 11
  • 20. So What Does It Take? ✤ Font selection & pairing: don’t be shy about body text too ✤ Research & test: no substitute for actually seeing it yourself in IE (< 9) ✤ Note well: ClearType won’t fix everything, and XP shipped with it off anyway .com Tuesday, August 23, 11
  • 21. So What Does It Take? ✤ Font selection & pairing: don’t be shy about body text too ✤ Research & test: no substitute for actually seeing it yourself in IE (< 9) ✤ Note well: ClearType won’t fix everything, and XP shipped with it off anyway ✤ Take it for a spin - it’s easy to try (seriously - it’s one line of code) .com Tuesday, August 23, 11
  • 22. Now You Might Cry (maybe just a little bit) ✤ Ready? Fire up that new design for your client or your boss and... .com Tuesday, August 23, 11
  • 23. Ugly or Nothing Firefox: displays page w/fallbacks first, Webkit: draws page without rendering then ‘pops’ into web font any type until web font loads .com Tuesday, August 23, 11
  • 24. Ugly or Nothing Firefox: displays page w/fallbacks first, Webkit: draws page without rendering then ‘pops’ into web font any type until web font loads .com Tuesday, August 23, 11
  • 25. What’s FOUT About ✤ FOUT (Flash Of Unstyled Text) is what happens before those lovely web fonts load ✤ Ugly or Nothing – either can be a deal-breaker with clients ✤ You can mitigate either with Google’s WebFont Loader & some creative layering of your CSS .com Tuesday, August 23, 11
  • 26. WebFont Loader ✤ Several services (Fonts.com, Typekit & Google Web Fonts) support it ✤ Injects classes into your HTML indicating status of web fonts in your page: loading, active, inactive ✤ Allows you to craft ‘loading CSS’ using web-safe fallbacks, adjusting size, line-height & letter-spacing .com Tuesday, August 23, 11
  • 27. It’s the Responsive Thing To Do ✤ Adjusting your CSS can eliminate jarring redraw/reflow of your text ✤ Makes sure your design holds up during loading & on older devices ✤ Can even have <noscript> CSS-only loading for further refinement (Fonts.com only I think) ✤ It’s the web – things go wrong, and a professional will plan for that .com Tuesday, August 23, 11
  • 28. Prove It Doesn’t Suck (quoth the front-end dev) ✤ Choose fonts with care & only enable the weights you will use ✤ Use WebFont Loader & CSS to even out the experience & match design ✤ Provide appropriate fallback options ✤ Let someone else handle bandwidth, distribution and updates (most services use a CDN – do you?) .com Tuesday, August 23, 11
  • 29. What About ? ✤ File size for most weights of Western fonts is ~40-60k ✤ Could be ~200k+ for Arabic or... ✤ Over ~2MB for Japanese ✤ Embedding that would be... unwise ✤ Fonts.com can dynamically subset that font and deliver only the characters used on the page .com Tuesday, August 23, 11
  • 30. That’s a Lot of Work ✤ But the user wins: better design, enhanced readibility, richer experience ✤ And the client wins: better branding, greater engagement ✤ And we win: by pushing the boundaries further, we take design to a higher level – and get more & better work because of it .com Tuesday, August 23, 11
  • 31. What’s the Drupal Connection? ✤ Rewind to our ‘secret sauce’ from Slide 19 ✤ Much of what’s required need only be set up once & then tweaked ✤ Just like styling the 404 page – it just shows you care that little bit extra ✤ I’ve included this & other Responsive Web Design ideas in Schoolyard’s ‘base’ theme, making it possible to replicate baseline work quickly .com Tuesday, August 23, 11
  • 32. And Now, a Demo ✤ I’ve written about some of these techniques for the Fonts.com blog, the latest including a demo download Blog post: http://bit.ly/pF5qlr Web fonts loaded .com Tuesday, August 23, 11
  • 33. And Now, a Demo ✤ I’ve written about some of these techniques for the Fonts.com blog, the latest including a demo download Blog post: http://bit.ly/pF5qlr No web fonts, uncorrected .com Tuesday, August 23, 11
  • 34. And Now, a Demo ✤ I’ve written about some of these techniques for the Fonts.com blog, the latest including a demo download Blog post: http://bit.ly/pF5qlr No web fonts, corrected .com Tuesday, August 23, 11
  • 35. And Now, a Demo ✤ I’ve written about some of these techniques for the Fonts.com blog, the latest including a demo download Blog post: http://bit.ly/pF5qlr Web fonts loaded .com Tuesday, August 23, 11
  • 36. Thank You! Jason Pamental (@jpamental) jason@thinkinginpencil.com many thanks to Monotype & Schoolyard for their support .com Tuesday, August 23, 11
  • 37. Resources ✤ Fonts.com & their blog http://blog.fonts.com ✤ Typekit & their blog http://blog.typekit.com ✤ Google’s Web Fonts http://www.google.com/webfonts ✤ Ethan Marcotte’s excellent book Responsive Web Design (from abookapart.com) .com Tuesday, August 23, 11