Keyboard

Shortcuts

Command palette
K
Home
gh
About
ga
Projects
gp
Expertise
gx
Journal
gj
Contact
gc
Copy email
e
Call
c
Toggle theme
t
Show this help
?

↑↓ to navigate · Enter to open · Esc to close

Mobile

Flutter PDFs for RSE: typography outside the theme, print quality

TL;DR PDFs have their own type system. Do not recycle the Material theme inside `pdf`.

19 Feb 2026 · Albert Nicolas

  • flutter
  • pdf
  • rse
  • dart
Flutter PDFs for RSE: typography outside the theme, print quality

1 min read Reading 0%

A PDF that looks fine on screen and is unreadable once printed helps nobody. On Carnet, the day / RSE report goes to admin or a temp agency.

Classic trap

AppTextStyles (Flutter UI) and pw.TextStyle (pdf package) do not share the same font stack. Mixing them means surprises.

// OK — dedicated PDF style
final title = pw.TextStyle(
  fontSize: 14,
  fontWeight: pw.FontWeight.bold,
);

Content

Duty time, driving, breaks — the same numbers as the RSE screen. One calculation function, two renders (UI + PDF). Otherwise you explain why the app and PDF disagree by a 15-minute break.

← Back to journal

Contact me Call