lmodern or newtxtext with pdfLaTeX, and use fontspec with XeLaTeX or LuaLaTeX when you want system fonts such as Times New Roman, Arial, or EB Garamond.
Quick answer: use pdfLaTeX with font packages for traditional LaTeX workflows, and use XeLaTeX or LuaLaTeX with
fontspec when you need system fonts or modern OpenType features.Related topics: Text formatting | Document classes | Choosing a compilerHow to Change the Font in LaTeX
Font Basics
The Three Font Attributes
LaTeX fonts have three independent attributes:- Code
- Rendered output
Combining Font Attributes
- Code
- Rendered output
Font Packages (pdfLaTeX)
Popular Font Packages
- Code
- Rendered output
Font Package Comparison
System Fonts (XeLaTeX/LuaLaTeX)
Using System Fonts
- Code
- Rendered output
Font Selection by Name
- Code
- Rendered output
Font Features
OpenType Features (XeLaTeX/LuaLaTeX)
- Code
- Rendered output
Microtype Package
- Code
- Rendered output
Font Sizes
Changing Font Size
- Code
- Rendered output
Size Commands Reference
Mathematical Fonts
Math Font Packages
- Code
- Rendered output
Unicode Math (XeLaTeX/LuaLaTeX)
- Code
- Rendered output
Special Typography
Drop Caps
- Code
- Rendered output
Custom Fonts for Special Text
- Code
- Rendered output
Font Troubleshooting
Common Issues and Solutions
- Code
- Rendered output
Best Practices
Font Comparison
For Traditional Documents
- Times (mathptmx)
- Palatino (mathpazo)
- Computer Modern (default)
- Latin Modern (lmodern)
For Modern Documents
- Helvetica (helvet)
- Open Sans
- Source Sans Pro
- Roboto
For Technical Documents
- Computer Modern
- STIX Two
- Libertinus
- KP Fonts
For Books
- Minion Pro
- Sabon
- Garamond
- Baskerville
Quick Reference
Next: Learn about Mathematical equations to create complex mathematical expressions with proper formatting.
