Table of Contents
Preface v
1 Understanding Text Layout 1
The Language of Text 1
Text Layout on the Web 7
Text Within Scalable Vector Graphics 17
2 SVG Text Basics 21
Letters on a Page 21
Big Words, Little Words 24
Styling Text 31
Labeling a Graphic 37
3 Colorful Language 47
Fill and Stroke 47
Coordinating Colors 52
Painted Effects 58
Switching Styles 63
4 Multiline SVG Text 67
Stepping Up 67
Waxing Poetic 72
5 Off-Kilter Characters 81
Multiple Positions 81
Conflicting Positions 84
Twisted Letters 87
6 Casting Anchor 93
Start, Middle, or End 93
Text Chunks 95
Working with Whitespace 98
7 Anchoring in International Waters 103
Starting from the Other End 104
Head to Toe Layout 109
8 Lining Up 121
Baseline Basics 122
Super (and Sub) Baselines 128
Mimicking Baseline Control 132
9 Beyond Straight Lines 135
Creating Curved Text 135
Positioning on a Path 139
Integrating Other Text Effects 143
10 Fonts, Families, Faces 151
Generic Styles 151
Making the Most of System Fonts 154
The Perfect Face 158
Finding Fonts 166
Faking Fonts 168
11 The Perfect Fit 171
Fixing Font Size 171
Measuring SVG Text 177
Fun with Font Adjustments 179
12 Extending Your Toolbox 185
A Foreigner in an SVG File 185
A Text Elements and Attributes 195
B Text and Font Style Properties 201
Index 211