Test 11: Variable Font Support

ทดสอบฟอนต์แบบ Variable (Inter Variable) — ไฟล์เดียว รองรับหลาย weight

Test 11.1 — Inter Variable Regular

The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789

Test 11.2 — Inter Variable Bold (weight: bold)

Bold: The quick brown fox jumps over the lazy dog.
This text uses font-weight: bold with a variable font file.

Test 11.3 — Inter Variable Italic

Italic: The quick brown fox jumps over the lazy dog.
"Typography is the craft of endowing human language with a durable visual form." — Robert Bringhurst

Test 11.4 — Variable Font Weight Comparison

เปรียบเทียบ weight ต่างๆ จากไฟล์ font เดียว:

Weight 400 (Regular): Quick brown fox
Weight Bold (700): Quick brown fox
หมายเหตุ: Inter Variable รองรับ weight 100-900 แต่ปัจจุบัน LynPDF แมป bold → ไฟล์เดียวกัน (variable instance)

Test 11.5 — Ligatures (Variable Font)

fi fl ff ffi ffl
office, difficult, affluent, efficient, traffic, sufficient
fifty, final, flame, float, buffer, coffee, offline

Test 11.6 — Kerning Pairs (Variable Font)

AV AW AY AT VA
To Te Ty We Yo

Test 11.7 — Comparison: TTF vs OTF vs Variable

Sarabun (TTF) — Thai font
office fi fl ff AV To — สวัสดีครับ ทดสอบภาษาไทย
Inter (TTF) — Latin with kerning & ligatures
office fi fl ff AV To — The quick brown fox
IBM Plex Sans (OTF) — OpenType ligatures
office fi fl ff AV To — The quick brown fox
Inter Variable (Variable TTF) — Single file
office fi fl ff AV To — The quick brown fox

Test 11.8 — Paragraph in Variable Font

Inter is a typeface carefully crafted and designed for computer screens. It features a tall x-height to aid in readability of mixed-case and lower-case text. Inter is a variable font with several OpenType features like contextual alternates, tabular numbers, and case alternates. The variable font file contains the full design space allowing continuous variation of the weight axis from Thin (100) to Black (900). This test verifies that LynPDF can correctly render variable fonts with proper kerning between letters like AV, AW, To and ligatures in words like office, efficient, and sufficient.