Releases: DeutscheModelUnitedNations/badgeGenerator
Releases · DeutscheModelUnitedNations/badgeGenerator
1.2.7
1.2.6
1.2.5
1.2.4
1.2.2
1.2.1
v1.2.0 - Custom Font Support
What's New
Custom Font Support for Special Characters
This release replaces the built-in Helvetica font with the Inter font, enabling proper rendering of Unicode characters in generated PDFs.
Previously: Special characters like Turkish (ş, İ, ğ) and German umlauts (ü, ö, ä, ß) were sanitized to their ASCII equivalents (e.g., "Türkiye" → "Turkiye").
Now: All characters render correctly without sanitization.
Changes
- Added
@pdf-lib/fontkitfor custom font embedding - Added Inter fonts (Regular + Bold) with full Unicode coverage
- Updated all PDF generators (placards, vertical badges, horizontal badges)
- Removed the "Text enthält unzulässige Zeichen" warning
Supported Characters
- Turkish: ş, İ, ı, ğ, ü, ö, ç
- German: ü, ö, ä, ß
- French: é, è, ê, ç, à
- And many more Latin-extended characters
v1.1.6
What's Changed
- fix: Return JSON response for cross-origin session create requests - Cross-origin fetch requests now receive a JSON response with
tokenandurlfields instead of a redirect, allowing clients to handle navigation
API Response
JSON requests to /api/session/create now return:
{
"token": "uuid-here",
"url": "https://badges.dmun.de/?t=uuid-here"
}Full Changelog: 1.1.5...1.1.6
v1.1.5
What's Changed
- feat: Accept JSON in session create endpoint - The
/api/session/createendpoint now accepts bothapplication/jsonandmultipart/form-datarequests
Full Changelog: 1.1.4...1.1.5
1.1.4
What's New
Features
- Trim border option for badges: Added a user-configurable gray trim border for horizontal and vertical badges. The border is drawn at the exact edge with a thin line, so when cutting along it, the resulting badge is the same size as without the border. The setting appears as a tab selector and persists to localStorage.
Notes
- The trim border option only appears for badge types (not placards)