X-Windows Configuring and Using Fonts and X Windows (Chapter 10)

Slides:



Advertisements
Similar presentations
 Use the Left and Right arrow keys or the Page Up and Page Down keys to move between the pages. You can also click on the pages to move forward.  To.
Advertisements

Microsoft Word – Lesson 1
Chapter 3 Drawing and Composing an Illustration. Objectives Draw straight lines Draw curved lines Draw elements of an illustration Apply attributes to.
XWN740 X-Windows Configuring and Using Fonts – The New Way (Chapter 11)‏
Microsoft Word 2003 Tutorial 2 – Editing and Formatting a Document.
Microsoft Office Illustrated Fundamentals Unit E: Enhancing a Document Unit E: Enhancing a Document.
Lesson 2 — Working with Text
DIGITAL GRAPHICS & ANIMATION Complete LESSON 4 ADDING TEXT TO GRAPHICS.
CIS101 Introduction to Computing Week 05. Agenda Your questions CIS101 Survey Introduction to the Internet & HTML Online HTML Resources Using the HTML.
Text, Masks, and Live Effects – Lesson 41 Text, Masks, and Live Effects Lesson 4.
Chapter 10 Formatting a Document.
Guide to Linux Installation and Administration, 2e1 Chapter 6 Using the Shell and Text Files.
Developing a Basic Web Page with HTML
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
XWN740 X-Windows Configuring and Using Fonts and X Windows (Chapter 10)‏
Introduction to Interactive Media 06: Text: Static Interactive Media Component.
Chapter 9 Text. So, chapter 10 is about Photography, now Chapter 9 is about text What should it look like, how big should it be, how do colors contrast,
Typography Terms. o.php?viewkey=d26eb03e91d5741a4a 3b.
Lesson 2 – Formatting Text Microsoft Word Learning Goals The goal of this lesson is for the students to successfully apply formatting to a document.
B.Sc. Multimedia ComputingMedia Technologies Character Representation & Font Technology.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
CHAPTER 9 Introducing Microsoft Office Learning Objectives Start Office programs and explore common elements Use the Ribbon Work with files Use.
CHAPTER 9 Introducing Microsoft Office Learning Objectives Start Office programs and explore common elements Use the Ribbon Work with files Use.
Microsoft Access Lesson 1 Lexington Technology Center February 11, 2003 Bob Herring On the Web at
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
XP 1 Microsoft Word 2002 Tutorial 1 – Creating a Document.
Microsoft Word ITE115 Trisha Cummings. MsWord - Word Processing Program Allows you to create Letters, Envelopes, Mailing Labels, Memo’s , Fax’s.
Introduction to Interactive Media Interactive Media Components: Text.
Basic Editing Lesson 2.
Desktop Publishing Review. What is a rough sketch used in planning a layout and design?
LOGO Chapter II Entering Excel Formulas and Formatting Data Friday, November 20, 2015.
1.01b Investigate typefaces and fonts.. Fonts It’s easier to understand fonts if you begin with the original definition of a font. Before desktop publishing,
1.01b Investigate typefaces and fonts.. Fonts It’s easier to understand fonts if you begin with the original definition of a font. Before desktop publishing,
WORD BASICS: THE HOME MENU READ THROUGH THE FOLLOWING SLIDES AND FILL OUT YOUR STUDY GUIDE.
Lesson 6 Formatting Cells and Ranges. Objectives:  Insert and delete cells  Manually format cell contents  Copy cell formatting with the Format Painter.
UsingWindows programs including WordPad and Paint Windows 7 Operating System 1.
Microsoft PowerPoint 2007 Part 1. Agenda Formatting Presentation Text I Formatting Presentation Text II Editing and Proofing Text Using the Outline Tab.
MS WORD INFORMATION TECHNOLOGY MANAGEMENT SERVICE Training & Research Division.
Desktop Publishing Lesson 3 — Formatting Pages. Lesson 3 – Formatting Pages2 Objectives  Set up pages.  Set guides.  Use master pages.  Insert page.
Desktop Publishing Lesson 2 — Working with Text. Lesson 2 – Working with Text2 Objectives  Create a blank document.  Work with text boxes.  Work with.
© Ms. Masihi.  A Web page contains text and images that convey specific information to viewers.  To create a new web page, open Dreamweaver and select.
© 2004 The McGraw-Hill Companies, Inc. All rights reserved. The Advantage Series Microsoft Office Word 2003 CHAPTER 4 Printing and Web Publishing.
Practical Office 2007 Chapter 2
HTML5 and CSS3 Illustrated Unit D: Formatting Text with CSS
Formatting Text with CSS
Microsoft Official Academic Course, Microsoft Word 2013
Vector vs. Bitmap.
DFP 4113 MULTIMEDIA TECHNOLOGY
Using Cascading Style Sheets Module B: CSS Structure
Understanding Spacing
Exploring Microsoft Word 2003
Understanding and Applying Typography in CSS
XWN740 X-Windows Configuring and Using X Utility Programs
Tutorial 1 – Creating a Document
Microsoft Official Academic Course, Microsoft Word 2016
Introducing Microsoft Office 2010
Windows Internet Explorer 7-Illustrated Essentials
Basic Editing Lesson 2.
Digital Media Dr. Jim Rowan ITEC 2110.
Chapter Lessons Use the Macromedia Flash drawing tools
CSC020, Computer Graphics Type tools 1.
POWER POINT WHY HAVE WE USE THIS PROGRAM? TO SHOW YOUR STUDY..
Key Applications Module Lesson 16 — Excel Essentials
CSC/FAR 020, Computer Graphics, October 30, 2013
Title of presentation | Presentation by [Enter details in 'Header & Footer' field 18/05/2019.
Layout Terms Visual Hierarchy
Microsoft Office Illustrated Fundamentals
XWN740 X-Windows Configuring and Using X Utility Programs
CSC/FAR 020, Computer Graphics, October 26-31, 2011
TERMS AND CONDITIONS   These PowerPoint slides are a tool for lecturers, and as such: YOU MAY add content to the slides, delete content from the slides,
Presentation transcript:

X-Windows Configuring and Using Fonts and X Windows (Chapter 10) XWN740 X-Windows Configuring and Using Fonts and X Windows (Chapter 10)

Agenda Working with Fonts: Why Study Fonts in X? Font Basics Core Fonts Using Fonts the Old Way Configuring Font Path Font Names Installing / Removing Fonts

Configuring X Windows Why Study Fonts in X? X has two font systems: one that was invented in 1984, and one that was invented in 2000. Both systems are in wide use today. We will study the old system in today's lesson. Why study fonts in X Windows? Running font servers to increase efficiency when rendering documents with fonts require knowledge of fonts. You may need the ability to add different types of fonts when clients/users request them...

Fonts and X Windows Font Basics A font is a description of how to display a given set of characters in a particular size, typeface, and style. It includes information about each character shape, spacing, and usage. Font sizes have traditionally been measured in points, a unit of measure now considered equal to 1/72 inch or 0.3527 mm. Line-to-line spacing (leading) is also measured in points. A typeface is a coordinated collection of glyphs or character shapes. Font styles alter the glyphs for special applications; typical styles include italic and bold.

Fonts and X Windows Font Basics Horizontally, a font's glyphs may be monospaced, meaning that the start of each character is the same distance from the start of the preceding and following characters, regardless of the characters. Fonts may alternately be proportionally spaced, with the amount of space adjusted to the width of the character.

Fonts and X Windows Font Basics Note the difference between fixed spaced and proportionally spaced fonts displayed below: Proportionally Spaced: Hello, How are you? Narrow Character: l Wide Character: W Fixed Spaced (Monospaced): Hello, How are you? Narrow Character: l Wide Character: W

Fonts and X Windows Font Basics Proportionally-spaced characters can also be kerned: the amount of space can be adjusted according to the combination of characters used. For example, the letters oa would be placed closer together than the characters ab, because the curved sides of the characters create the visual appearance of more space. Digital fonts can be specified in two different ways: as a bitmap (pattern of dots) or as a scalable font pattern (series of elements such as lines, arcs, and fills).

Fonts and X Windows Bitmapped vs. Scalable Fonts Bitmapped fonts are specific to a particular size, display resolution and style. They tend to be fairly large files and are quite inflexible, but they have the advantage of being easy to place on the screen. Scalable fonts can be rendered at any resolution and font size, and in many cases they can be rendered in different weights and styles. However, they must be rendered into an internal bitmap format before being drawn on the screen.

Fonts and X Windows Fonts the Old Way (Core Fonts) The original X11 font system is called core fonts. It can use bitmapped fonts or (more recently) scalable fonts; these fonts are managed on the server using the X11 protocol. The problem with core fonts is that they are monochrome only, meaning they are only one color, and as a result, produce a “staircase effect” referred to as “aliasing” that give the font a blocky appearance.

Fonts and X Windows Defining core fonts A Font Server can be used in X windows so that catalogs of fonts can easily be made available to a large number of desktop systems (i.e. improve efficiency of rendering fonts). The xfs command is used to start the font server. The server can also find the fonts using the font path usually defined in the xorg.conf file, which can also be set or viewed using the xset command. The fonts must be on a file system that are accessible to the X server, or they must be available through a font server.

Fonts and X Windows Defining core fonts The font path specification for a font server takes this form: protocol/host:port/catalog The protocol is either "tcp" or "unix" (in which case the host is left blank); the port is usually 7100; and the catalog is the set of fonts to be accessed (leave the slash and catalog off to access all fonts from that font server).

Fonts and X Windows Font Names Core fonts are named and selected using the X Logical Font Descriptor (XLFD). This is a set of 14 fields starting with a dash and separated by dashes. Refer to section 10.4 in X Power Tools textbook for a listing of font name fields (i.e. font characteristics). X Window clients applications (such as xterm) usually allow an option to use a particular font: eg. xterm -font -bitstream-terminal-medium-*-*-*-18-*-*-100-c-*-iso8859-*

Fonts and X Windows Viewing / Selecting Fonts xlsfonts Used to list the font name for all installed fonts. xfontsel Used as a graphical method to preview, copy and paste font name to an application such as xterm.

Fonts and X Windows Installing Fonts To install fonts, you can download zipped font files to a general directory. The problem with core fonts with the long 14 field descriptors is that those long file names are incompatible with older Unix systems with a maximum filename size of 14 characters. The utilities contained in the next slides allows aliases or “nick-names” to be used to represent the larger font filenames....

Fonts and X Windows Installing Fonts mkfontdir Used to create a new directory to store a bitmapped font. eg. cd /usr/share/X11/fonts/100dpi mkfontdir mkfontscale Used to setup a scalable font prior to using mkfontdir. eg. cd /usr/share/X11/fonts mkfontscale mkfontdir

Fonts and X Windows Adding/Removing Fonts Paths xset [+fp pathname] [-fp pathname] Used to add or remove fonts from font server. A + sign before the pathname adds to the beginning of the path list, a + sign after the pathname adds to the end of the path list. You can also use = to ignore current font path and set a new value, but space must be between = and the font path.. Examples: xset +fp /newfontdirectory xset -fp /newfontdirectory xset fp= /newfontdirectory

Fonts and X Windows Next Lesson Although core fonts are still used by older applications, these type of fonts are starting to disappear from the X windows environment. In the next lesson, we will learn how to use a newer font system that was adopted in 2000...