Practical Responsive Typography
Table of Contents
Practical Responsive Typography
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Web Typography
Developing your knowledge
Anatomy of the character
Typeface or font? A guide to the distinction
Typefaces classification
Serifs
Old Style or Humanist
Transitional Serifs
Modern Serifs
Slab Serifs
Sans Serifs
Grotesque Sans
Neo-Grotesque Sans
Humanist font
Geometric font
Script typefaces
Formal script
Casual script
Monospaced typefaces
Display typefaces
Expressing different moods
Serifs vs Sans
Scripts vs scripts
Display typefaces
Combining typefaces
Typography properties
Kerning
Tracking
Ligatures
Leading
Information hierarchy – giving order to your text
Alignments
Rag
Justification of text
Summary
2. Responsive Typography
Creating the page
Let's wander through CSS
Up to letter and text group!
Ligatures
Hierarchy
Example and exercise!
The intrinsic nature of type
Summary
3. Web Fonts and Services
The free services for font embedding
CSS @font-face
The local property
Bold and italic
Problems with @font-face
Font Squirrel and its generator
And now what?
Google web fonts
Time for a couple of paid services
Typekit
Cloud typography
Summary
4. Modern Scale
What is a font scale?
Creating a new scale
What is an em?
Why are ems important?
Defect in the em element
The CSS3 solution
What to expect from rems?
Time to get back to the scale
A more complex exercise
Vertical rhythm
A little note on ems and rems
Summary
5. Viewport and Size
The viewport concept
CSS3 custom units
Summary
6. Media Queries
How to write them
Media queries for responsive design
Summary
7. Sass and Typography
CSS pre-processors and Sass
Sass and LESS: A comparison
Installing Sass
Your small Sass tutorial
More Sass properties
Sass for responsive typography
Too many breakpoints
Adding line-height
Summary
8. Three Step Responsive
It actually takes more than three steps
A Sass powered one page website
Another solution using JRibbble
Sass stylizing our carousel
Modular typography scale with Sass
Sass Mixin for easy responsiveness
A Sass generated responsive grid
Summary
9. Future Responsive – Hinting
What is font hinting?
The four different hinting processes
Black and white rendering
Gray-scale rendering
ClearType rendering
DirectWrite rendering
Difficulties for type designers – and hinting's future
Another problem with pixel densities
My solution for hinting on the Web
Summary
10. Future Responsive – Drop Caps and Shapes
What drop caps are and how to use them
Drop cap with an image
Letter over an image
Creating a class with no image
Drop caps with pseudo-elements
Onto the future – Shaping your text
A shape tutorial
Defining a shape using an image
CSS shapes in responsive web design
In the future
Summary
Index
Practical Responsive Typography
Copyright © 2016 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: July 2016
Production reference: 2260716
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78588-463-4
www.packtpub.com
Author
Dario Calonaci
Reviewer
Chen Hui Jing
Commissioning Editor
Amarabha Banerjee
Acquisition Editor
Tushar Gupta
Content Development Editor
Mamata Walkar
Technical Editor
Nirant Carvalho
Copy Editors
Safis Editing
Madhusudan Uchil
Project Coordinator
Shweta H Birwatkar
Proofreader
Safis Editing
Indexer
Pratik Shirodkar
Graphics
Kirk D'Penha
Production Coordinator
Arvindkumar Gupta
Cover Work
Arvindkumar Gupta
Dario Calonaci is a published author, correspondent, and professional advisor as well as design writer and reviewer for many publications, both print and online. Having worked on projects for The Ritz-Carlton and on Obama for America '12, The United Nations Rio+20 Conference, he's a well-known expert in the field of typography, which made him start teaching that and web design in his early twenties! As a member of various international groups, his art has been published worldwide in a plethora of books and magazines, from Phadon to Zeixs, and has been exposed in many openings, from New York's Times Square to the Senate Library in Rome.
He runs his own design firm at Kerned Studio in Florence for clients such as Gucci, Calvin Klein, and Berni among many others. You can take a look at his work on www.kernedstudio.com and www.dariocalonaci.com.
Chen Hui Jing is a self-taught designer and developer from Singapore. Reducing the lines of code in her web projects makes her extremely happy. She used to play basketball full time and launched her web career during downtime between training sessions.
As a strong believer of HTML and CSS being the foundation of the Web, and she started Talk.CSS, the first CSS-centric meetup in Singapore, to encourage developers to further their understanding of CSS and how it can improve our designs on the Web.
2323__per...