Merge branch 'master' into releases

This commit is contained in:
be5invis 2016-11-23 09:35:10 +08:00
commit d8894ce6b9
25 changed files with 62 additions and 34 deletions

View File

@ -1,4 +1,4 @@
# 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) # Iosevka ![Version](https://img.shields.io/github/release/be5invis/Iosevka.svg) [![Donate](https://img.shields.io/badge/donate-alipay-orange.svg)](http://7xpdnl.dl1.z0.glb.clouddn.com/T1v4huXnleXXXXXXXX.png)
Coders' typeface, built from code. //[→ Inziu Iosevka for Chinese and Japanese.](http://be5invis.github.io/Iosevka/inziu.html) Coders' typeface, built from code. //[→ Inziu Iosevka for Chinese and Japanese.](http://be5invis.github.io/Iosevka/inziu.html)
@ -66,7 +66,7 @@ Iosevka comes with several visual styles, however they are inactive using the de
* `STYLE_COMMON` for both uprights and italics, * `STYLE_COMMON` for both uprights and italics,
* `STYLE_UPRIGHT` for upright and oblique, and * `STYLE_UPRIGHT` for upright and oblique, and
* `STYLE_ITALICS` for itaics only. * `STYLE_ITALIC` for itaics only.
You can add arbitary styles for these variables, for example, `make STYLE_UPRIGHT='v-l-zshaped v-i-zshaped'` to create a variant with Z-shaped letter `l` and `i` for uprights. You can add arbitary styles for these variables, for example, `make STYLE_UPRIGHT='v-l-zshaped v-i-zshaped'` to create a variant with Z-shaped letter `l` and `i` for uprights.
@ -111,6 +111,9 @@ The current avaliable styles are:
## Release Notes ## Release Notes
* **1.9.6**
- Make the font conformal with MS FontVal.
- Make backslash less slant.
* **1.9.5** * **1.9.5**
- Fixed the bug that FireFox reject to display. - Fixed the bug that FireFox reject to display.
* **1.9.4** * **1.9.4**

View File

@ -5,7 +5,6 @@ glyf = []
[head] [head]
checkSumAdjustment = 369537602 checkSumAdjustment = 369537602
created = "2014-12-06T22:05:19.000Z"
flags = 11 flags = 11
fontDirectionHint = 2 fontDirectionHint = 2
fontRevision = 1 fontRevision = 1
@ -14,7 +13,8 @@ indexToLocFormat = 0
lowestRecPPEM = 8 lowestRecPPEM = 8
macStyle = 0 macStyle = 0
magickNumber = 1594834165 magickNumber = 1594834165
modified = "2014-12-06T22:20:03.000Z" created = 3562553439
modified = 3562553439
unitsPerEm = 1000 unitsPerEm = 1000
version = 1 version = 1
xMax = 306 xMax = 306

View File

@ -3,6 +3,7 @@ $$include '../meta/macros.ptl'
import 'unorm' as unorm import 'unorm' as unorm
import [mix linreg clamp fallback suggestGC] from '../support/utils' import [mix linreg clamp fallback suggestGC] from '../support/utils'
import [designParameters] from '../meta/aesthetics'
define customDecompositions : object define customDecompositions : object
# Latvians use comma instead of cedillas in several letters. # Latvians use comma instead of cedillas in several letters.
@ -748,8 +749,8 @@ export : define [apply] : begin
define [createLigatures shrink1 shrink2 wadj1 wadj2 records] : if [not recursive] : begin define [createLigatures shrink1 shrink2 wadj1 wadj2 records] : if [not recursive] : begin
local pendingGlyphs1 : records.map : [record] => record.1 local pendingGlyphs1 : records.map : [record] => record.1
local pendingGlyphs2 : records.map : [record] => record.2 local pendingGlyphs2 : records.map : [record] => record.2
local df1 : Thinner pendingGlyphs1 shrink1 local df1 : Thinner pendingGlyphs1 [if (para.spacing == 3) 1 shrink1]
local df2 : Thinner pendingGlyphs2 shrink2 local df2 : Thinner pendingGlyphs2 [if (para.spacing == 3) 1 shrink2]
foreach [{unicode c1 c2 mark} : items-of records] : begin foreach [{unicode c1 c2 mark} : items-of records] : begin
local glyphName "\(c1)_\(c2)" local glyphName "\(c1)_\(c2)"
@ -757,7 +758,14 @@ export : define [apply] : begin
local j 2 local j 2
while glyphs.(glyphName + j) : inc j while glyphs.(glyphName + j) : inc j
set glyphName (glyphName + j) set glyphName (glyphName + j)
if (para.spacing == 3) : begin
sketch
include df2.(c2)
include : Translate WIDTH 0
include df1.(c1)
set-width FULLWIDTH
save glyphName unicode
: else
local kern : SB * 7/8 * (shrink1 + shrink2) local kern : SB * 7/8 * (shrink1 + shrink2)
local refw : WIDTH * (shrink1 * wadj1 + shrink2 * wadj2) - kern local refw : WIDTH * (shrink1 * wadj1 + shrink2 * wadj2) - kern
sketch sketch

View File

@ -4,6 +4,7 @@ import '../support/transform' as : Transform && [object [transformPoint tp] [unt
import '../support/fairify' as fairify import '../support/fairify' as fairify
import [mix linreg clamp fallback] from '../support/utils' import [mix linreg clamp fallback] from '../support/utils'
import [designParameters] from '../meta/aesthetics'
export : define [apply] : begin export : define [apply] : begin
glyph-module-entry glyph-module-entry

View File

@ -6,6 +6,7 @@ $$include '../meta/macros.ptl'
import '../support/transform' as : Transform && [object [transformPoint tp] [untransform utp] inverse] import '../support/transform' as : Transform && [object [transformPoint tp] [untransform utp] inverse]
import [mix linreg clamp fallback] from '../support/utils' import [mix linreg clamp fallback] from '../support/utils'
import [designParameters] from '../meta/aesthetics'
export : define [apply] : begin export : define [apply] : begin
glyph-module-entry commonShapes overmarks glyph-module-entry commonShapes overmarks

View File

@ -1,6 +1,7 @@
$$include '../meta/macros.ptl' $$include '../meta/macros.ptl'
import [mix linreg clamp fallback] from '../support/utils' import [mix linreg clamp fallback] from '../support/utils'
import [designParameters] from '../meta/aesthetics'
export : define [apply] : begin export : define [apply] : begin
glyph-module-entry commonShapes overmarks letterBasic glyph-module-entry commonShapes overmarks letterBasic

View File

@ -1,6 +1,7 @@
$$include '../meta/macros.ptl' $$include '../meta/macros.ptl'
import [mix linreg clamp fallback] from '../support/utils' import [mix linreg clamp fallback] from '../support/utils'
import [designParameters] from '../meta/aesthetics'
###### NUMBERS ###### NUMBERS
export : define [apply] : begin export : define [apply] : begin

View File

@ -1,6 +1,7 @@
$$include '../meta/macros.ptl' $$include '../meta/macros.ptl'
import [mix linreg clamp fallback] from '../support/utils' import [mix linreg clamp fallback] from '../support/utils'
import [designParameters] from '../meta/aesthetics'
export : define [apply] : begin export : define [apply] : begin
glyph-module-entry commonShapes glyph-module-entry commonShapes

View File

@ -2,6 +2,7 @@
$$include '../meta/macros.ptl' $$include '../meta/macros.ptl'
import [mix linreg clamp fallback] from '../support/utils' import [mix linreg clamp fallback] from '../support/utils'
import [designParameters] from '../meta/aesthetics'
export : define [apply] : begin export : define [apply] : begin
glyph-module-entry commonShapes overmarks glyph-module-entry commonShapes overmarks

View File

@ -3,6 +3,7 @@ $$include '../meta/macros.ptl'
import '../support/transform' as : Transform && [object [transformPoint tp] [untransform utp] inverse] import '../support/transform' as : Transform && [object [transformPoint tp] [untransform utp] inverse]
import [mix linreg clamp fallback] from '../support/utils' import [mix linreg clamp fallback] from '../support/utils'
import [designParameters] from '../meta/aesthetics'
export : define [apply] : begin export : define [apply] : begin
glyph-module-entry commonShapes overmarks glyph-module-entry commonShapes overmarks

View File

@ -3,6 +3,7 @@
$$include '../meta/macros.ptl' $$include '../meta/macros.ptl'
import [mix linreg clamp fallback] from '../support/utils' import [mix linreg clamp fallback] from '../support/utils'
import [designParameters] from '../meta/aesthetics'
export : define [apply] : begin export : define [apply] : begin
glyph-module-entry commonShapes overmarks letterBasic glyph-module-entry commonShapes overmarks letterBasic

View File

@ -2,6 +2,7 @@
$$include '../meta/macros.ptl' $$include '../meta/macros.ptl'
import [mix linreg clamp fallback] from '../support/utils' import [mix linreg clamp fallback] from '../support/utils'
import [designParameters] from '../meta/aesthetics'
export : define [apply] : begin export : define [apply] : begin
glyph-module-entry commonShapes overmarks letterBasic letterExt glyph-module-entry commonShapes overmarks letterBasic letterExt
@ -102,8 +103,8 @@ export : define [apply] : begin
include glyphs.plus include glyphs.plus
save 'plusminus' 0xB1 save 'plusminus' 0xB1
turned 'minusplus' 0x2213 'plusminus' MIDDLE parenMid turned 'minusplus' 0x2213 'plusminus' MIDDLE parenMid
local equalHalfSpace : (parenTop - parenBot) * 0.11
local equalHalfSpace : (parenTop - parenBot) * designParameters.equal_wideness
sketch # equal sketch # equal
include : HBar SB RIGHTSB (parenMid + equalHalfSpace) OPERATORSTROKE include : HBar SB RIGHTSB (parenMid + equalHalfSpace) OPERATORSTROKE
include : HBar SB RIGHTSB (parenMid - equalHalfSpace) OPERATORSTROKE include : HBar SB RIGHTSB (parenMid - equalHalfSpace) OPERATORSTROKE

View File

@ -2,6 +2,7 @@
$$include '../meta/macros.ptl' $$include '../meta/macros.ptl'
import [mix linreg clamp fallback] from '../support/utils' import [mix linreg clamp fallback] from '../support/utils'
import [designParameters] from '../meta/aesthetics'
export : define [apply] : begin export : define [apply] : begin
glyph-module-entry commonShapes overmarks geometricSymbols glyph-module-entry commonShapes overmarks geometricSymbols
@ -322,9 +323,11 @@ export : define [apply] : begin
save ('lighyphen.' + subclass) save ('lighyphen.' + subclass)
# => # =>
local dblarrowd : XH * [linreg 18 0.15 126 0.275 STROKE] # local dblarrowd : XH * [linreg 18 0.15 126 0.275 STROKE]
local sw : Math.min OPERATORSTROKE (dblarrowd * [clamp 0.45 0.75 ((1 - WHITENESS) * 1)]) # local sw : Math.min OPERATORSTROKE (dblarrowd * [clamp 0.45 0.75 ((1 - WHITENESS) * 1)])
local dblextend [clamp 0 WIDTH (RIGHTSB - (dblarrowd - sw / 2) * arrowheadSlope)] local sw OPERATORSTROKE
local dblarrowd ((parenTop - parenBot) * designParameters.equal_wideness + sw / 2)
local dblextend : clamp 0 WIDTH (RIGHTSB - (dblarrowd - sw / 2) * arrowheadSlope)
local dblarrowj : clamp 0 WIDTH (SB + (dblarrowd - sw / 2) * arrowheadSlope) local dblarrowj : clamp 0 WIDTH (SB + (dblarrowd - sw / 2) * arrowheadSlope)
foreach [{subclass left right} : items-of [ArrowBarConfig dblextend arrowheadsKern dblarrowj]] : sketch foreach [{subclass left right} : items-of [ArrowBarConfig dblextend arrowheadsKern dblarrowj]] : sketch
include : HBarTop left right (parenMid + dblarrowd) sw include : HBarTop left right (parenMid + dblarrowd) sw

View File

@ -2,6 +2,7 @@
$$include '../meta/macros.ptl' $$include '../meta/macros.ptl'
import [mix linreg clamp fallback] from '../support/utils' import [mix linreg clamp fallback] from '../support/utils'
import [designParameters] from '../meta/aesthetics'
export : define [apply] : begin export : define [apply] : begin
glyph-module-entry commonShapes overmarks letterBasic glyph-module-entry commonShapes overmarks letterBasic
@ -427,11 +428,12 @@ export : define [apply] : begin
save 'slash' '/' save 'slash' '/'
sketch # backslash sketch # backslash
local cor : HVCONTRAST / [Math.sqrt (1 - [Math.pow ((RIGHTSB - SB - STROKE) / (parenTop - parenBot)) 2])] local width : (RIGHTSB - SB) * (1 + TANSLANT * 2)
start-from SB parenTop local cor : HVCONTRAST / [Math.sqrt (1 - [Math.pow ((width - STROKE) / (parenTop - parenBot)) 2])]
line-to (SB + STROKE * cor) parenTop start-from (MIDDLE - width / 2) parenTop
line-to RIGHTSB parenBot line-to (MIDDLE - width / 2 + STROKE * cor) parenTop
line-to (RIGHTSB - STROKE * cor) parenBot line-to (MIDDLE + width / 2) parenBot
line-to (MIDDLE + width / 2 - STROKE * cor) parenBot
reverse-last reverse-last
save 'backslash' "\\" save 'backslash' "\\"
alias 'solidus' 0x2044 'slash' alias 'solidus' 0x2044 'slash'

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 408 KiB

After

Width:  |  Height:  |  Size: 409 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 KiB

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 689 KiB

After

Width:  |  Height:  |  Size: 689 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 354 KiB

After

Width:  |  Height:  |  Size: 354 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 260 KiB

After

Width:  |  Height:  |  Size: 260 KiB

View File

@ -174,3 +174,6 @@ export : define [setFontMetrics para metrics font] : begin
set font.OS_2.sxHeight XH set font.OS_2.sxHeight XH
set font.OS_2.sCapHeight CAP set font.OS_2.sCapHeight CAP
set font.post.italicAngle (0 - para.slantAngle) set font.post.italicAngle (0 - para.slantAngle)
export : define designParameters : object
equal_wideness 0.1

View File

@ -1,6 +1,6 @@
[iosevka] [iosevka]
family = 'Iosevka' family = 'Iosevka'
version = '1.9.5' version = '1.9.6'
codename = 'Ingrid' codename = 'Ingrid'
copyright = 'Copyright (c) 2015-2016 Belleve Invis.' copyright = 'Copyright (c) 2015-2016 Belleve Invis.'
licence = '''This font software is licenced under the SIL Open Font Licence, Version 1.1. This is licence is avaliable with a FAQ at: http://scripts.sil.org/OFL. This font software is distributes on an 'AS IS' basis, without warranties or conditions of any kind, either express or implied. See the SIL Open Font licence fot the specific language, premissions and limitations governing your use of this font software.''' licence = '''This font software is licenced under the SIL Open Font Licence, Version 1.1. This is licence is avaliable with a FAQ at: http://scripts.sil.org/OFL. This font software is distributes on an 'AS IS' basis, without warranties or conditions of any kind, either express or implied. See the SIL Open Font licence fot the specific language, premissions and limitations governing your use of this font software.'''