Neal Stublen Font Limitations  Browsers can only display the fonts installed on the device Arial, Verdana, Times, Georgia  Custom.

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

Font Usage on the Web. Used to be true that … Normally end users can only see the fonts that are already installed on their computers. Normally end users.
Introduction to CSS.
Tutorial 4: Creating page layout with css
Session Objectives Setting the font family Setting the font size Working with Web fonts Setting font faces and sizes Setting font and text appearances.
Week 3.  – now is the time.
Chapter 6 Web Typography
Week 7 Web Typography. 2 Understanding Type Design Principles.
The Future of EPUB IDPF Digital Book 2011 at BEA May 24, 2011 Garth Conboy Engineering Manager, Google Books Vice-Chair, EPUB Working Group.
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
Chapter 8 More on Links, Layout, and Mobile Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
RESPONSIVE DESIGN Sources: Kadlec, T. (2012). Implementing responsive design. Berkeley, California: New Riders Publishing. MarcotteMarcotte, E. (2010).
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 12: Building Responsive Webpages.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 13: Working with Web Fonts.
Acadia Institute for Teaching and Technology Basic Web Page Design for Courses.
Chapter 8 More on Links, Layout, and Mobile Copyright © 2013 Terry Ann Morris, Ed.D revised by Bill Pegram, 9/24/
CIS 1310 – HTML & CSS 7 More on Links, Layout & Mobile.
Week 5 HTML5 and Video + Web Fonts. Video and HTML5 Until now, there has not been a standard for showing a video/movie on a web page. In the past most.
© 2012 Adobe Systems Incorporated. All Rights Reserved. LEARNING THE LANGUAGE OF THE WEB INTRODUCTION TO HTML AND CSS.
Week 6.  Browser DOCTYPE switching What it means for you  – now is the time  CSS3 Web design for the 21 st Century.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
Principles of Web Design 6 th Edition Chapter 5 – Web Typography.
Understanding CSS Essentials: Content Flow, Positioning, and Styling
Today’s objectives  Complete web page  Using xhtml & CSS  Adding CSS to documents Embed url(File);  CSS.
Chapter 6 Web Typography. 2 Principles of Web Design Chapter 5 Objectives Understand principles for type design on a Web site Use the element Understand.
COMP 135 Web Site Design Intermediate Week 8. Responsive Web Design Responsive Design Adaptive Design.
Tutorial 4 Creating Special Effects with CSS
Cascading Style Sheets. Defines the presentation of one or more web pages Similar to a template Can control the appearance of an entire web site giving.
CIT 256 Dreamweaver Intro. Dr. Beryl Hoffman. Start Dreamweaver Start from Start Menu/Adobe Master Collection CS6/ Adobe Dreamweaver CS6 Choose Create.
Week 8 – Part 3 More on Links, Layout, and Mobile Key Concepts 1.
Cascading Style Sheets by Pavlovic Nenad by. Presentation Contents  What is CSS?  Why CSS?  Types of Style Sheets  Style Sheets Syntax  Box Formatting.
 A style sheet is a single page of formatting instructions that can control the appearance of many HTML pages at once.  If style sheets accomplished.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Copyright 2012 Adobe Systems Incorporated. All rights reserved. ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. ® Copyright 2012 Adobe.
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
XHTML/CSS Week 3. This Week  Quiz to revise last week (XHTML and DW)  CSS - Part 2  Using HTML Tables.
Class three: CSS review, backgrounds, font formatting, the box model.
Unit 2, cont. September 12 More HTML. Attributes Some tags are modifiable with attributes This changes the way a tag behaves Modifying a tag requires.
Tutorial 8 Enhancing a Web Site with Advanced CSS
CSS Cascading Style Sheets. CSS Advantages Greater typography and page layout control Style is separate from structure Styles can be stored in a separate.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML, CSS, and XML Tutorial 8 Enhancing a Web Site with Advanced CSS.
Fonts The following CSS properties will be described: 1.Font-family 2.Font-style 3.Font-variant 4.Font-weight 5.Font-size 6.Font.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts.
Web Foundations TUESDAY, OCTOBER 29, 2013 LECTURE 20: EMBEDDING WEB FONTS.
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
INTRODUCTION TO CSS. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features of CSS Features of CSS  Creating Style Sheet Creating Style Sheet.
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
XP Review 2 New Perspectives on JavaScript, Comprehensive1 Introducing Cascading Style Sheets Formatting Web Pages with CSS.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
INFO1300 LAB7 OCT.11TH RESPONSIVE DESIGN. WHAT IS RESPONSIVE WEB DESIGN A mix of flexible grids and layouts, images and an intelligent use of CSS media.
CSS Hadas Kahsay. Overview  What is CSS  Basic syntax of CSS Rules  How to link CSS style to html documents  Browsers and CSS  Advantages of CSS.
Cascading Style Sheets Primary readings Presentations Explain & review projects with class mates.
CSS Cascading Style Sheets *referenced from
1 Company Confidential Need a Mobile DotNetNuke Site? Get One the Quick and Easy Way Using CSS Media Queries Amelia Marschall Partner & Creative Director.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Unit 3 - Review. Topics 1. Tag, Attribute, Value 2. CSS Rule Syntax + link 3. Categories of Selectors 4. Inline vs Block Tags 5. CSS Layout 6. CSS Box.
Working with Cascading Style Sheets
HTML5 and CSS3 Illustrated Unit D: Formatting Text with CSS
Formatting Text with CSS
Styling For Print From Screen to Paper
HTML5 Level II Session II
Lesson 5: HTML Tables.
Session IV Chapter 15 - How Work with Fonts and Printing
Presentation transcript:

Neal Stublen

Font Limitations  Browsers can only display the fonts installed on the device Arial, Verdana, Times, Georgia  Custom fonts usually meant using images

 Instructs the browser to download a font and make it { font-family: ‘fontName’; src: url(…); font-weight: weight; font-style: style; }

Font Sources  Specify one or more font sources  Similar to specifying media sources Let the browser choose the supported format src: url(…) format(‘eot’), url(…) format(‘woff’), url(…) format(‘trutype’)

Font Types  EOT – proprietary font format for IE4-8  WOFF – Web Open Font Format  OTF – OpenType  TTF – TrueType  SVG – Scalable Vector Graphics (original iPhone)  Compatibility – Table 9.1, caniuse.com

EOT Support  IE browsers before IE9 need to be tricked into using a font src: url(‘font.eot?#iefix’), …  But with IE9+: src: url(‘font.eot’); src: url(‘font.eot?#iefix’), … See problemshttp:// problems

Font Property Descriptors properties, such as font- weight, don’t control the font – they describe the { font-family: ‘MyFont’; font-style: normal { font-family: ‘MyFont’; font-style: italic }

Unicode Range  Specifies the characters included in the font  May be necessary for specialized fonts or with some languages

Applying the Font  Refer to the font as any other font h1 { font-family: MyFont, sans-serif; }  Fallback fonts may be a good idea

Adding a Font  Let’s add fonts to the HTML Herald page  Add fonts

Fonts That Won’t Load  Some browsers (meaning IE) won’t load online fonts for an offline web page  Fonts from other sources, such as Google Fonts, may need to be copied

Legal Considerations  You can’t legally copy any font from your computer and use it on the web  Make sure you are licensed to use your font online  Many online resources for web fonts

Font Squirrel  If you need to create multiple font files, Font Squirrel can help  Upload a single font format, download multiple font formats

Exercise Caution  Downloading fonts can use a lot of bandwidth Do I need a custom font on mobile devices?  Only include fonts you use  Consider images for rare font use  Can the font size be reduced to only include the characters you need? Only uppercase, etc.

Mimic Newsletter Formats  CSS3 can wrap text into multiple columns column-count column-gap column-width  No columns if not supported

Columns and Height  How do columns wrap if the containing element has a specified height?  Columns are only created when needed  Text overflows out of the last column (use overlow: hidden to hide overflow content)  Use column-fill: balance to evenly spread content across all columns

Column Rules and Breaks  Use column-rule to display a line between columns  Use break-before, break-after, break- inside to prevent column breaks h2 { break-after: avoid }  Use column-span to force an element to span multiple columns

What are media queries?  Conditional CSS that depends on device attributes Screen vs. print Display width Pixel ratio (iOS)  Seen in the as media=“print”

Target Device Size  Prevent sidebar display if the maximum width of the device is 600px or (max-width: 600px) {.sidebar { display: none; } }

Target Device Orientation  Prevent sidebar display if the device is in portrait (orientation: portrait) {.sidebar { display: none; } }

Possible Queries  color (bits per pixel for colors)  aspect-ratio, device-aspect-ratio  device-height, device-width  height, width  orientation  resolution  Upcoming queries: