Optimized the building sequence.
This commit is contained in:
parent
633d5bb40e
commit
c90b3e6e2c
5 changed files with 15 additions and 9 deletions
|
@ -157,7 +157,7 @@ if(argv.svg) {
|
|||
}
|
||||
Glyph.prototype.cleanup.call(g, 0.25);
|
||||
}
|
||||
var gd = '<glyph glyph-name="' + g.name + '" horiz-adv-x="' + g.advanceWidth + '" '+ (g.unicode && g.unicode.length ? 'unicode="&#x' + g.unicode[0].toString(16) + ';"' : '') +' d="' + toSVGPath(g) + '" />'
|
||||
var gd = '<' + (j === 0 ? 'missing-glyph' : 'glyph') + ' glyph-name="' + g.name + '" horiz-adv-x="' + g.advanceWidth + '" '+ (g.unicode && g.unicode.length ? 'unicode="&#x' + g.unicode[0].toString(16) + ';"' : '') +' d="' + toSVGPath(g) + '" />'
|
||||
svg += gd;
|
||||
}
|
||||
svg += '</font></defs></svg>'
|
||||
|
|
|
@ -890,7 +890,7 @@ symbol-block 'R and CyrYa'
|
|||
local right (RIGHTSB - O)
|
||||
include : dispiro
|
||||
widths.center
|
||||
g4.up.start (right - HALFSTROKE) 0 [heading UPWARD]
|
||||
g4.up.start (right - HALFSTROKE) DESCENDER [heading UPWARD]
|
||||
quadcontrols 0 0.4 8
|
||||
g4 MIDDLE ((top - STROKE) * bp)
|
||||
|
||||
|
@ -1057,13 +1057,13 @@ define {CShape} : symbol-block 'C'
|
|||
assign-unicode 0x187
|
||||
include glyphs.C AS_BASE
|
||||
include : VBarRight RIGHTSB (CAP - HOOK) CAP
|
||||
include : VerticalHook (RIGHTSB - HALFSTROKE * CORRECTION_HX) CAP HOOKX (-HOOK)
|
||||
include : VerticalHook (RIGHTSB - HALFSTROKE * CORRECTION_HX - OXHOOK) CAP HOOKX (-HOOK)
|
||||
|
||||
create-glyph 'chooktop' : glyph-construction
|
||||
assign-unicode 0x188
|
||||
include glyphs.c AS_BASE
|
||||
include : VBarRight RIGHTSB (XH - HOOK) XH
|
||||
include : VerticalHook (RIGHTSB - HALFSTROKE * CORRECTION_HX) XH HOOKX (-HOOK)
|
||||
include : VerticalHook (RIGHTSB - HALFSTROKE * CORRECTION_HX - OXHOOK) XH HOOKX (-HOOK)
|
||||
|
||||
create-glyph 'Cbar' : glyph-construction
|
||||
assign-unicode 0xA792
|
||||
|
@ -1193,13 +1193,13 @@ symbol-block 'G'
|
|||
assign-unicode 0x193
|
||||
include glyphs.G AS_BASE
|
||||
include : VBarRight RIGHTSB (CAP - HOOK) CAP
|
||||
include : VerticalHook (RIGHTSB - HALFSTROKE * CORRECTION_HX) CAP HOOKX (-HOOK)
|
||||
include : VerticalHook (RIGHTSB - HALFSTROKE * CORRECTION_HX - OXHOOK) CAP HOOKX (-HOOK)
|
||||
|
||||
create-glyph 'smcpGhooktop' : glyph-construction
|
||||
assign-unicode 0x29B
|
||||
include glyphs.smcpG AS_BASE
|
||||
include : VBarRight RIGHTSB (XH - HOOK) XH
|
||||
include : VerticalHook (RIGHTSB - HALFSTROKE * CORRECTION_HX) XH HOOKX (-HOOK)
|
||||
include : VerticalHook (RIGHTSB - HALFSTROKE * CORRECTION_HX - OXHOOK) XH HOOKX (-HOOK)
|
||||
|
||||
create-glyph 'Gbar' : glyph-construction
|
||||
assign-unicode 0x1E4
|
||||
|
|
|
@ -178,7 +178,13 @@ symbol-block 'Geometric'
|
|||
local angle : Math.PI * 2 * j / n
|
||||
local cx : MIDDLE + (right - MIDDLE) * [Math.cos angle]
|
||||
local cy : (XH / 2) + (right - MIDDLE) * [Math.sin angle]
|
||||
include : Ring (cy + fine) (cy - fine) (cx - fine) (cx + fine) true
|
||||
include : spiro-outline
|
||||
g4 cx (cy + fine)
|
||||
g4 (cx + fine) cy
|
||||
g4 cx (cy - fine)
|
||||
g4 (cx - fine) cy
|
||||
close
|
||||
#include : Ring (cy + fine) (cy - fine) (cx - fine) (cx + fine) true
|
||||
include eMarks
|
||||
apply-transform [Upright] true
|
||||
apply-transform [Translate 0 (parenMid - (XH / 2))] true
|
||||
|
|
|
@ -25,8 +25,6 @@ for i in font:
|
|||
glyph.removeOverlap()
|
||||
font.selection.all()
|
||||
font.replaceWithReference(2)
|
||||
font.selection.select(("ranges", "unicode", None), 0x20, 0x7e)
|
||||
font.unlinkReferences()
|
||||
|
||||
print " Simplify: ", font.fontname
|
||||
font.selection.all()
|
||||
|
|
|
@ -5,6 +5,8 @@ import math
|
|||
|
||||
source = sys.argv[1]
|
||||
font = fontforge.open(source)
|
||||
font.selection.select(("ranges", "unicode", None), 0x20, 0x7e)
|
||||
font.unlinkReferences()
|
||||
font.selection.all()
|
||||
font.removeOverlap()
|
||||
font.simplify(0.1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue