Trial Fonts
If you would like to offer trial fonts to your prospective clients, you can use the subsetting function of Corretto to create a copy of your fonts with a reduced character set, and Trial added to the family name.
In the YAML file, we first define an entry under the charsets
key with the unique ID demo
and a list of Unicode values in hexadecimal notation:
charsets:
- id: demo
unicodes:
- "000D"
- "0020"
- "0021"
- "0022"
- "0027"
- "0028"
- "0029"
- "002A"
- "002C"
- "002D"
- "002E"
- "0030"
- "0031"
- "0032"
- "0033"
- "0034"
- "0035"
- "0036"
- "0037"
- "0038"
- "0039"
- "003A"
- "003F"
- "0041"
- "0042"
- "0043"
- "0044"
- "0045"
- "0046"
- "0047"
- "0048"
- "0049"
- "004A"
- "004B"
- "004C"
- "004D"
- "004E"
- "004F"
- "0050"
- "0051"
- "0052"
- "0053"
- "0054"
- "0055"
- "0056"
- "0057"
- "0058"
- "0059"
- "005A"
- "0061"
- "0062"
- "0063"
- "0064"
- "0065"
- "0066"
- "0067"
- "0068"
- "0069"
- "006A"
- "006B"
- "006C"
- "006D"
- "006E"
- "006F"
- "0070"
- "0071"
- "0072"
- "0073"
- "0074"
- "0075"
- "0076"
- "0077"
- "0078"
- "0079"
- "007A"
- "00AB"
- "00AD"
- "00BB"
- "2018"
- "2019"
- "201A"
- "201C"
- "201D"
- "201E"
- "2039"
- "203A"
Then, under the subsets
key, we add an entry referencing our charset ID. We also tell Corretto that the fonts’ family names should be suffixed with “Trial”, and that the modified fonts should be saved in the directory “MyFamily-Trial”. The directory will be created if necessary. The out_dir
directory path is relative to the export destination.
subsets:
- charset: demo
family:
suffix: Trial
out_dir: MyFamily-Trial
Download the full YAML file: trial.corretto.yaml