diff --git a/README.md b/README.md index fe37ac8..9a81237 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Iosevka ![Version](https://img.shields.io/github/release/be5invis/Iosevka.svg) [![Donate](https://img.shields.io/badge/donate-alipay-orange.svg)](http://7xpe0v.com1.z0.glb.clouddn.com/aeqr9bewtqtvpkpl18.png) -Coders' typeface, built from code. +Coders' typeface, built from code. //[→ Inziu Iosevka for Chinese and Japanese.](http://be5invis.github.io/Iosevka/inziu.html) ![](https://raw.githubusercontent.com/be5invis/Iosevka/master/images/preview-all.png) diff --git a/buildglyphs.ptl b/buildglyphs.ptl index 4a3e99c..4f2a259 100644 --- a/buildglyphs.ptl +++ b/buildglyphs.ptl @@ -495,11 +495,18 @@ export as build : define [buildFont para recursive recursiveCodes] : begin set font.OS_2.usWeightClass para.weight set font.OS_2.panose.3 9 # Monospaced set font.OS_2.panose.2 : 1 + para.weight / 100 - set font.OS_2.fsSelection : [if para.isOblique 512 0] + [if para.isBold 32 0] + [if (para.isItalic || para.isOblique) 1 0] + [if ([not para.isBold] && [not para.isItalic] && [not para.isOblique]) 64 0] + 128 + set font.OS_2.fsSelection : object + oblique : not : not para.isOblique + bold : not : not para.isBold + italic : not : not (para.isItalic || para.isOblique) + regular : not : not ([not para.isBold] && [not para.isItalic] && [not para.isOblique]) + useTypoMetrics true set font.OS_2.sFamilyClass : 8 * 0x100 + 9 set font.OS_2.xAvgCharWidth WIDTH set font.post.isFixedPitch true - set font.head.macStyle : [if para.isBold 1 0] + [if para.isItalic 2 0] + set font.head.macStyle : object + bold : not : not para.isBold + italic : not : not (para.isItalic || para.isOblique) # Metric metadata # Note: we use 1000upm in design, and (1000 * upmsacle)upm in production, to avoid rounding error. diff --git a/emptyfont.toml b/emptyfont.toml index 5f8751e..d242884 100644 --- a/emptyfont.toml +++ b/emptyfont.toml @@ -52,8 +52,6 @@ sTypoAscender = 812 sTypoDescender = -212 sTypoLineGap = 92 sxHeight = 792 -ulCodePageRange1 = 1 -ulCodePageRange2 = 0 ulUnicodeRange1 = 1 ulUnicodeRange2 = 268435456 ulUnicodeRange3 = 0 @@ -80,6 +78,19 @@ ySuperscriptXSize = 665 ySuperscriptYOffset = 491 ySuperscriptYSize = 716 +[OS_2.ulCodePageRange1] +latin1 = true +latin2 = true +greek = true +cyrillic = true +turkish = true +vietnamese = true +macRoman = true +[OS_2.ulCodePageRange2] +cp852 = true +cp850 = true +ascii = true + [name] fontFamily = "node-sfnt" fontSubFamily = "regular"