
SVG Text Layout
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
Scalable Vector Graphics (SVG) is an image format, so text isn't the first thing you might think of when considering its uses. But one of SVG's key features is its ability to encode text in a machine-readable form. This book takes a deep dive into the use of text within SVG to explore the creative possibilities as well as the potential pitfalls. You'll start with SVG's text basics, and then learn methods for using SVG to generate complex layouts.
If you're an intermediate SVG developer familiar with CSS-styled HTML text, you're ready to get going. This book covers:
- The SVG text and tspan elements, and basic attributes for positioning simple text labels within a graphic
- SVG's fill and stroke properties for controlling text's visual appearance
- Complex text layouts, using formatted poetry as examples
- Features to set the position and orientation of individual text characters
- Multidirectional text, including right-to-left horizontal text and vertical text
- Curved or complex text layouts with the textPath element
- Font options for your SVG, including web fonts, and their impact on text layout
More details
Other editions
Additional editions

Content
- Intro
- Copyright
- Table of Contents
- Preface
- What We'll Cover
- About This Book
- Conventions Used in This Book
- Using Code Examples
- Safari® Books Online
- How to Contact Us
- Acknowledgments
- Chapter 1. Understanding Text Layout
- The Language of Text
- Text Layout on the Web
- Character Data
- Font Data
- Text Layout Instructions
- Text Within Scalable Vector Graphics
- Chapter 2. SVG Text Basics
- Letters on a Page
- Big Words, Little Words
- Styling Text
- Labeling a Graphic
- Chapter 3. Colorful Language
- Fill and Stroke
- Coordinating Colors
- Painted Effects
- Switching Styles
- Chapter 4. Multiline SVG Text
- Stepping Up
- Waxing Poetic
- Chapter 5. Off-Kilter Characters
- Multiple Positions
- Conflicting Positions
- Twisted Letters
- Chapter 6. Casting Anchor
- Start, Middle, or End
- Text Chunks
- Working with Whitespace
- Chapter 7. Anchoring in International Waters
- Starting from the Other End
- Head to Toe Layout
- Chapter 8. Lining Up
- Baseline Basics
- Super (and Sub) Baselines
- Mimicking Baseline Control
- Chapter 9. Beyond Straight Lines
- Creating Curved Text
- Positioning on a Path
- Integrating Other Text Effects
- Chapter 10. Fonts, Families, Faces
- Generic Styles
- Making the Most of System Fonts
- The Perfect Face
- Finding Fonts
- Faking Fonts
- Chapter 11. The Perfect Fit
- Fixing Font Size
- Measuring SVG Text
- Fun with Font Adjustments
- Chapter 12. Extending Your Toolbox
- A Foreigner in an SVG File
- Appendix A. Text Elements and Attributes
- Appendix B. Text and Font Style Properties
- Index
- About the Authors
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.