XSL-FO Tutorials - Herong's Tutorial Examples
∟Font Attributes and Font Families
This chapter provides tutorial notes and example codes on XSL-FO Font Attributes and Font Families. Topics include font attributes: font-family, font-size, font-style, and font-weight; XSL-FO generic font families; Adobe PDF Base-14 fonts.
What Is a Font?
Font Attributes and Generic Fonts
Adobe PDF Base-14 Fonts
Generic Font for Chinese Characters
Takeaways:
- A font consists of 5 specifications: family, size, style, weight and character set.
- XSL-FO defines 5 generic font families: sans-serif, serif, cursive, fantasy, and monospace.
- XSL-FO documents should use generic font families to avoid issues when generating outputs.
- Adobe PDF supports Base-14 fonts: 4 Helvetica fonts, 4 Times fonts, 4 Courier fonts,
1 Symbol font and 1 ZapfDingbats font.
- XSL-FO documents for PDF output can use Adobe Base-14 fonts.
- Adobe Base-14 fonts do not support Chinese characters.
Table of Contents
About This Book
Introduction of XSL-FO
Apache™ FOP (Formatting Objects Processor)
RenderX XEP as an XSL-FO Tool
Introduction of Area Model
XSL-FO Document Basics and Examples
Page Layout Masters
Block-Level Formatting Objects
Inline-Level Formatting Objects
Including Graphics in XSL-FO document
Table of Rows and Columns
List, Item, Label, and Body
Floating Blocks - "float" and "footnote"
Hyperlinks, Table of Contents and Indexes
Headers and Footers using "static-content"
►Font Attributes and Font Families
Apache FOP Font Configurations
RenderX XEP Font Configurations
Converting HTML to PDF
References
Full Version in PDF/ePUB