Configuration Examples
Basic Replacement
Use this configuration to swap fonts when you have a clean 1-to-1 mapping.
examples/simple_replace.json
{
"description": "Standard replacement of Type 3 fonts with local TrueType files.",
"rules": [
{
"source_font_name": "/R136",
"target_font_file": "fonts/Roboto-Regular.ttf",
"target_font_name": "Roboto-Regular"
},
{
"source_font_name": "/R20",
"target_font_file": "fonts/Arial.ttf",
"target_font_name": "ArialMT"
}
]
}
Advanced Mapping
Use this configuration if you need to fix broken character encodings or allow wider scaling limits.
examples/advanced_mapping.json
{
"description": "Advanced replacement with custom scaling limits and unicode mapping.",
"rules": [
{
"source_font_name": "/BrokenFont",
"target_font_file": "fonts/Symbol.ttf",
"strategy_options": {
"min_scale": 80.0,
"max_scale": 120.0
},
"encoding_map": {
"0x01": "A",
"0x02": "B",
"15": "space",
"LATIN SMALL LIGATURE FI": "fi"
}
}
]
}