Responsive Typography Code: http://bit.ly/jpatypicode Using Type - - PowerPoint PPT Presentation

responsive typography
SMART_READER_LITE
LIVE PREVIEW

Responsive Typography Code: http://bit.ly/jpatypicode Using Type - - PowerPoint PPT Presentation

Responsive Typography Code: http://bit.ly/jpatypicode Using Type Well on the Web WiFi: SIDLEE VISITORS | SidLovesLee The Day Ahead Our new typography Fonts on the web: sources, selection & use Putting them to use & managing


slide-1
SLIDE 1

Responsive Typography

Using Type Well on the Web

Code: http://bit.ly/jpatypicode WiFi: SIDLEE VISITORS | SidLovesLee

slide-2
SLIDE 2

The Day Ahead

  • Our new typography
  • Fonts on the web: sources, selection & use
  • Putting them to use & managing the user experience
  • Proportion: screen size, hierarchy & readability
  • Fine tuning: OpenType, orphans, initial caps & more
  • Fixed vs. dynamic text, subsetting & internationalization
  • Variable Fonts and how to use them

Code: http://bit.ly/jpatypicode • WiFi: PJATK EVENT | Atypi16!

slide-3
SLIDE 3

Our New Typography

slide-4
SLIDE 4

Text in a Gif-y (or pictures of a thousand words)

slide-5
SLIDE 5

And then there was ‘face’ (as of HTML 3.2)

<font face="verdana">This is some text!</font>

slide-6
SLIDE 6

Styles! (of sorts)

p { font-family: Arial, Helvetica, sans-serif; } <p>This is some text!</p>

slide-7
SLIDE 7

The sIFR & Cufon Years

:(

slide-8
SLIDE 8

2009

Typekit Google Web Fonts Fonts.com Cloud.Typography MyFonts

Finally font-ly!

and many many more

slide-9
SLIDE 9
slide-10
SLIDE 10 The point at which ghostsigns assume value is subjective and, currently, a matter of debate. By contrast, most would agree with the preservation of the 2,000-year-old remains
  • f painted advertising in Pompeii and Herculaneum.
Likewise, the painted caves of the Ardèche in France, and the rock art of Australia. While not explicitly advertising, they also served some communicative purpose and hold
  • bvious value as cultural relics. Ghostsigns are one
among many examples of humankind’s desire to leave a mark, whether for commercial, community or individual
  • ends. The age at which they assume the same value as
these older inscriptions is arbitrary and disputed. Given their ambiguous value, ghostsigns currently fall
  • utside of approaches taken to preserving cultural heritage
  • artefacts. They are not architectural features of note and are,
ultimately, just advertising ephemera. In addition, unlike
  • ther forms of advertising and printed matter, they cannot
be collected and displayed in archives and museums, at least not in their original form. Photographic archiving projects, such as the UK-based History of Advertising Trust Ghostsigns Archive, do catalogue and document material, but say nothing about how ghostsigns ‘in the wild’ should be treated. Attempts to develop systematic approaches to protection and restoration all face the problem of defjning which signs have merit: one person’s artwork is another’s eyesore. Further, ghostsigns often exhibit multiple layers of text, known as ‘palimpsests’, with some seeing a beautiful historical ‘onion’ , while others perceive nothing more than a mess. The signs often fall victim to today’s graffjti and street artists, getting whitewashed in efgorts to ‘clean up’ this more contemporary work. In some instances this coverage is only
  • partial. In Stamford Hill, London, advertising for a cigarette
“Ghostsigns are one among many examples
  • f humankind’s
desire to leave a mark, whether for commercial, community or individual ends.” This sign was ‘saved’ in 2010 with the rejection of a planning application that would have resulted in the demolition of the ‘host’ building. Oxford. Photograph:
  • Isisbridge. Image courtesy of History of Advertising Trust, hatads.org.uk
Recorder 01 / Summer 2014 Restoration Period —63 In Butte, Montana, a debate currently rages over what to do with the city’s many ‘ghostsigns’: the fading remains of advertising painted on walls. Jim Jarvis and the Historic Preservation Offjce have proposed having these repainted by the contemporary collective of mural artists and sign painters known as ‘The Walldogs’. However, local
  • pposition has surfaced, objecting to what is perceived as the
‘Disneyfjcation’ of the town and a lack of public consultation. This debate is not unique to Butte, which is just one example
  • f attempts around the world to resolve the question of what,
if anything, should be done about ghostsigns. The repainting
  • f a sign for Bile Beans in York, England, provoked reactions
both extreme (‘an act of public vandalism’) and acerbic (‘like an old friend having bad plastic surgery’), in addition to widespread praise for the job done. In the absence of any comprehensive and authoritative guidance in this relatively new area of historical interest, the decisions taken are typically at a local level. Community groups and property
  • wners adopt approaches that they believe are right, often
gaining support and inciting opposition in equal measure. As the evidence from Butte and York shows, these signs exist at an intersection of public and private interests. They are typically ‘hosted’ on the walls of private properties, and subject to the whim of building owners. However, the reactions to proposed or actual changes to their appearance demonstrate a parallel sense of public
  • wnership. The signs serve as way markers – often perceived
as ‘public art’ – and are records of local advertising and craft history. Confmict between these difgerent groups, with their respective claims to ownership, is brought about when decisions are taken that afgect the signs. These contentious interventions vary in degrees of extremity, from doing nothing, through to plans to repaint the signs en masse as in Butte. Some actions lead to the loss of ghostsigns; the demolition of buildings, whitewashing and sandblasting of walls are all more fjnal than the gradual weathering that usually takes them away. A whitewashing in Clapham led to a question being asked of London’s Mayor about what he was doing to protect these pieces of cultural and commercial history. His response delegated responsibility to local council level and, in this case, Michael Kate Hoey MP, responded that:

“The character

  • f things like

this is essentially ephemeral, and it is the fact that such things survive

  • nly rarely and

accidentally that gives them their charm and fascination.”

D i s t i n c t i v e ‘ s c a l l
  • p
c
  • r
n e r s ’
  • n
t h i s s i g n a d v e r t i s i n g , a n d p a i n t e d b y , E . R e e v e . C r
  • y
d
  • n
, S u r r e y . P h
  • t
  • g
r a p h : A n t h
  • n
y A v
  • n
. I m a g e c
  • u
r t e s y
  • f
H i s t
  • r
y
  • f
A d v e r t i s i n g T r u s t , h a t a d s .
  • r
g . u k Restoration Period —59 “The character of things like this is essentially ephemeral, and it is the fact that such things survive only rarely and accidentally that gives them their charm and fascination. Although their loss may be regretted, perhaps it is necessary to allow such changes to happen, untouched by a regulatory framework, so that in another hundred years’ time, people may be able to look at difgerent but equally curious survivals – of early 21st century ephemera.” There is much to commend in this response, although the longevity of today’s billboards and digital displays is clearly inferior to that of the ghostsigns that have survived. Further, it is interesting that the value placed upon the signwriting craft is in some way less than crafts which create more permanent artefacts such as furniture, jewellery and books. Many of these signs are antiques, yet the skills involved in producing them aren’t celebrated in the same way as those of jewellers, cabinet makers and book binders. Their commercial intent is the main point of difgerence between ghostsigns and these other crafts, making the motivations of those passionate about them even more
  • intriguing. There isn’t a comparable lobby arguing
for the protection and restoration of contemporary billboards, yet ghostsigns once served exactly the same advertising purpose. In 1960 Howard Gossage observed that billboards exist ‘for the sole and express purpose
  • f trespassing on your fjeld of vision’, representing
widespread resentment of overbearing outdoor advertising. Further back, in 1855, the ‘One Who Thinks Aloud’ lamented the form, although on very difgerent grounds, ‘Amid all the changes which this changing age has produced, that of the walls superceding the town’s bell-man is perhaps the most melancholy.’ The age of ghostsigns (most are from the early 20th century) triggers a similar nostalgia which, in turn, leads people to cherish them. However, in their day, they provoked opposition similar to that of Gossage and the One Who Thinks Aloud. Although they are
  • ften resented now, it is entirely conceivable that the
revealing of a printed billboard in 50 years could provoke a similarly nostalgic response, and calls for protection, in a future world dominated by digital advertising. Photograph: Brian Stubley “In 1960 Howard Gossage observed that billboards exist ‘for the sole and express purpose of trespassing
  • n your fjeld of vision’,
representing widespread resentment of overbearing
  • utdoor advertising.”
Restoration Period Recorder 01 / Summer 2014 —62
slide-11
SLIDE 11

http://rwt.io/code-samples/typober/

slide-12
SLIDE 12
slide-13
SLIDE 13
slide-14
SLIDE 14
slide-15
SLIDE 15
slide-16
SLIDE 16
slide-17
SLIDE 17

Real Fonts on the Web

slide-18
SLIDE 18

need screenshots of searching for fonts

slide-19
SLIDE 19

need screenshots of searching for fonts

slide-20
SLIDE 20

need screenshots of searching for fonts

slide-21
SLIDE 21

need screenshots of searching for fonts

slide-22
SLIDE 22

To Service or Self-host

Services

  • Variety/Cost
  • Hosting infrastructure
  • Updates
  • Support

Self-hosting

  • Cost/specifjc
  • Control
  • Consolidation
slide-23
SLIDE 23

Putting Fonts to Use & Managing the UX

slide-24
SLIDE 24

CSS Loading: one line to link up

<link href='https://fonts.googleapis.com/css?family=Alegreya: 400,900,400italic,700italic,700' rel='stylesheet' type='text/css'> p { font-family: 'Alegreya', Georgia, serif; } h1 { font-family: 'Alegreya', Georgia, serif; font-weight: 900; }

slide-25
SLIDE 25

Sad trombone (no correction, typical 3G)

12.15 sec

slide-26
SLIDE 26

Then, 2010 (Web Font Loader edit )

<script type="text/javascript"> WebFontConfig = { google: { families: [ 'Alegreya:400,900,400italic,700italic,700:latin'] } }; (function() { var wf = document.createElement('script'); wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'; wf.type = 'text/javascript'; wf.async = 'true'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wf, s); })(); </script>

slide-27
SLIDE 27

Body Level One

p { font-family: 'Alegreya', Georgia, serif; } .wf-inactive p { font-family: Georgia, serif; }

slide-28
SLIDE 28

Content fjrst, please

7.1 sec

slide-29
SLIDE 29

But we can do better

p { font-family: 'Alegreya', Georgia, serif; } .wf-inactive p { font-family: Georgia, serif; font-size: 0.975em; letter-spacing: -0.4px; }

slide-30
SLIDE 30

Best for both worlds (content and design)

5.1 sec

slide-31
SLIDE 31

but wait, there’s more

slide-32
SLIDE 32

Font Face Observer & Session Storage Magic

<script src="../js/vendor/fontfaceobserver.js"></script> <script type="text/javascript"> (function() { document.documentElement.className += " wf-inactive"; ... var fontA = new FontFaceObserver('Alegreya Sans', { weight: 400, style: 'normal' }); var fontB = new FontFaceObserver('Alegreya Sans', { weight: 900, style: 'normal' }); Promise.all([fontA.load(), fontB.load()]).then(function () { document.documentElement.classList.remove("wf-inactive"); document.documentElement.classList.add("wf-active"); // Optimization for Repeat Views sessionStorage.foutFontsLoaded = true; }); })(); </script>
slide-33
SLIDE 33

Font Face Observer & Session Storage Magic

// Optimization for Repeat Views if( sessionStorage.foutFontsLoaded ) { document.documentElement.classList.remove("wf-inactive"); document.documentElement.classList.add("wf-active"); return; }

slide-34
SLIDE 34

let’s go code

slide-35
SLIDE 35

Getting better, but not there yet

@font-face { font-family: "Alegreya Sans"; src: url('../fonts/alegreya-sans-v3-latin/alegreya-sans-v3-latin- regular.eot'); src: url('../fonts/alegreya-sans-v3-latin/alegreya-sans-v3-latin- regular.eot?#iefix') format('eot'), url("../fonts/alegreya-sans-v3- latin/alegreya-sans-v3-latin-regular.woff") format("woff"); font-weight: normal; font-style: normal; font-display: swap; }

slide-36
SLIDE 36

Proportion: A Matter of Scale

slide-37
SLIDE 37

What works in print…

slide-38
SLIDE 38

Works in print.

slide-39
SLIDE 39
slide-40
SLIDE 40

Units of Measure

slide-41
SLIDE 41

The (r)EMs have it

  • From the very start, pixels-per-inch have differed between Mac &

Windows, and it’s only grown from there

  • Reference Pixel Dimensions != Screen Resolution
  • Type, set at 100%, will always be readable
  • 100% is equivalent to 16px on desktop browsers (but not necessarily
  • n phones)
  • EM=1 unit of the current size of type
slide-42
SLIDE 42

A visual comparison of EMs and REMs

slide-43
SLIDE 43

let’s go code

slide-44
SLIDE 44

Fine Tuning (of devils & details)

slide-45
SLIDE 45
slide-46
SLIDE 46
slide-47
SLIDE 47

p { max-width: 38em; }

slide-48
SLIDE 48

let’s go code

slide-49
SLIDE 49

Subsets & Internationalization

slide-50
SLIDE 50

screenshots of Cloud Typography subsetting

slide-51
SLIDE 51
slide-52
SLIDE 52

let’s go code

slide-53
SLIDE 53

Slides http://bit.ly/jprwtworkshop Code http://bit.ly/jpatypicode https://github.com/TypeNetwork/fb-Amstelvar http://koe.berlin/variablefont/ Jason Pamental / @jpamental jpamental@isovera.com http://isovera.com colophon: Bodoni & Fira Sans

thank you