Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
font-patcher: Add option to select postscript name as name source
[why] In the post we used these information sources to determine the name and weights/styles of the to-be-patched font: * The filename * The fullname (ID 4) * The postscriptname (ID 6) Usually it is best to use the Fullname of a font to determine its real name and styles/weights: The Postscript name has the advantage to have a hyphen between name and styles/weight; but as it can not contain blanks the correct name can not be determined by this. To get the styles/weights back we use a list of all possible (?!) weights and styles and sort all the string parts. This works reasonably well and the fullname is usually best. Not so with Input Mono Condensed. Here are its names: ID4: "InputMonoCondensed LightIta" IF6: "InputMonoConsensed-LightItalic" [how] Add option to select between fullname and postscriptname as font naming source. For special purposes, also allow a custom (arbitrary) name input. If that is given the specified name will be used to name the patched font without adding any suffix - the user has full control on the name. Fixes: #1314 Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
- Loading branch information