* Add Characters
- LATIN SMALL LIGATURE FI (`U+FB01`) (#1497). - LATIN SMALL LIGATURE FFI (`U+FB03`) (#1497). - LATIN SMALL LIGATURE FFL (`U+FB04`) (#1497). - LATIN SMALL LIGATURE LONG S T (`U+FB05`) (#1497). - LATIN SMALL LIGATURE ST (`U+FB06`) (#1497).
This commit is contained in:
parent
8311194896
commit
da10f30b65
11 changed files with 253 additions and 94 deletions
|
@ -159,10 +159,6 @@ function nameFontImpl(records, platformID, encodingID, languageID, nameID, value
|
|||
records.push({ platformID, encodingID, languageID, nameID, value });
|
||||
}
|
||||
|
||||
function isRBIZ(weight, slope) {
|
||||
return (weight === 400 || weight === 700) && (slope === "normal" || slope === "italic");
|
||||
}
|
||||
|
||||
function getStyle(weight, width, slope) {
|
||||
const weightPart = weightToMenuStyleMap[weight] ?? "W" + weight;
|
||||
const widthPart = widthToMenuStyleMap[width] ?? "Wd" + width;
|
||||
|
@ -182,6 +178,7 @@ const weightToMenuStyleMap = {
|
|||
100: "Thin",
|
||||
200: "Extralight",
|
||||
300: "Light",
|
||||
350: "SemiLight",
|
||||
400: "",
|
||||
450: "Book",
|
||||
500: "Medium",
|
||||
|
@ -210,6 +207,7 @@ const weightToMenuStyleMapShort = {
|
|||
100: "Th",
|
||||
200: "XLt",
|
||||
300: "Lt",
|
||||
350: "SmLt",
|
||||
400: "",
|
||||
450: "Bk",
|
||||
500: "Md",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue