update BACKERS.md; Add target for unhinted fonts.
This commit is contained in:
parent
364c8ae221
commit
b829f7afae
2 changed files with 19 additions and 8 deletions
|
@ -22,3 +22,4 @@ You can join them in supporting Iosevka development by [pledging on Patreon](htt
|
||||||
- Matthew Piziak
|
- Matthew Piziak
|
||||||
- Winnie Quinn
|
- Winnie Quinn
|
||||||
- Clemens
|
- Clemens
|
||||||
|
- Pascal
|
||||||
|
|
26
maker.js
26
maker.js
|
@ -71,6 +71,7 @@ function createMake(mapping) {
|
||||||
const cmTarget = `$(BUILD)/${filename}.charmap`;
|
const cmTarget = `$(BUILD)/${filename}.charmap`;
|
||||||
|
|
||||||
const target = `$(DIST)/${dir}/ttf/${filename}.ttf`;
|
const target = `$(DIST)/${dir}/ttf/${filename}.ttf`;
|
||||||
|
const unhintedTarget = `$(DIST)/${dir}/ttf-unhinted/${filename}.ttf`;
|
||||||
const woffTarget = `$(DIST)/${dir}/woff/${filename}.woff`;
|
const woffTarget = `$(DIST)/${dir}/woff/${filename}.woff`;
|
||||||
const woff2Target = `$(DIST)/${dir}/woff2/${filename}.woff2`;
|
const woff2Target = `$(DIST)/${dir}/woff2/${filename}.woff2`;
|
||||||
|
|
||||||
|
@ -93,18 +94,16 @@ ${target} : ${tfname} | $(DIST)/${dir}/ttf/
|
||||||
@otfccbuild ${tfname} -o $(BUILD)/${filename}.1.ttf -O3 --keep-average-char-width
|
@otfccbuild ${tfname} -o $(BUILD)/${filename}.1.ttf -O3 --keep-average-char-width
|
||||||
@ttfautohint $(BUILD)/${filename}.1.ttf $@
|
@ttfautohint $(BUILD)/${filename}.1.ttf $@
|
||||||
@rm $(BUILD)/${filename}.1.ttf
|
@rm $(BUILD)/${filename}.1.ttf
|
||||||
`;
|
${unhintedTarget} : ${tfname} | $(DIST)/${dir}/ttf-unhinted/
|
||||||
|
@otfccbuild ${tfname} -o $@ -O3 --keep-average-char-width
|
||||||
buf += `
|
|
||||||
${woffTarget} : ${target} | $(DIST)/${dir}/woff/
|
${woffTarget} : ${target} | $(DIST)/${dir}/woff/
|
||||||
sfnt2woff $<
|
sfnt2woff $<
|
||||||
mv $(subst .ttf,.woff,$<) $@`;
|
mv $(subst .ttf,.woff,$<) $@
|
||||||
buf += `
|
|
||||||
${woff2Target} : ${target} | $(DIST)/${dir}/woff2/
|
${woff2Target} : ${target} | $(DIST)/${dir}/woff2/
|
||||||
woff2_compress $<
|
woff2_compress $<
|
||||||
mv $(subst .ttf,.woff2,$<) $@`;
|
mv $(subst .ttf,.woff2,$<) $@`;
|
||||||
|
|
||||||
return { buf, target, woffTarget, woff2Target, cmTarget };
|
return { buf, target, unhintedTarget, woffTarget, woff2Target, cmTarget };
|
||||||
}
|
}
|
||||||
|
|
||||||
let designGroups = [];
|
let designGroups = [];
|
||||||
|
@ -160,6 +159,7 @@ for (let dg of designGroups) {
|
||||||
upright: [],
|
upright: [],
|
||||||
italic: [],
|
italic: [],
|
||||||
oblique: [],
|
oblique: [],
|
||||||
|
ttf_unhinted: [],
|
||||||
woff: [],
|
woff: [],
|
||||||
woff2: []
|
woff2: []
|
||||||
};
|
};
|
||||||
|
@ -176,6 +176,11 @@ $(DIST)/${groupMapping.dir}/ttf/ : | $(DIST)/${groupMapping.dir}/
|
||||||
);
|
);
|
||||||
makes.push(
|
makes.push(
|
||||||
`
|
`
|
||||||
|
$(DIST)/${groupMapping.dir}/ttf-unhinted/ : | $(DIST)/${groupMapping.dir}/
|
||||||
|
-@mkdir -p $@`
|
||||||
|
);
|
||||||
|
makes.push(
|
||||||
|
`
|
||||||
$(DIST)/${groupMapping.dir}/woff/ : | $(DIST)/${groupMapping.dir}/
|
$(DIST)/${groupMapping.dir}/woff/ : | $(DIST)/${groupMapping.dir}/
|
||||||
-@mkdir -p $@`
|
-@mkdir -p $@`
|
||||||
);
|
);
|
||||||
|
@ -194,15 +199,20 @@ $(DIST)/${groupMapping.dir}/woff2/ : | $(DIST)/${groupMapping.dir}/
|
||||||
mapping.cm = true;
|
mapping.cm = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
let { buf, target, woffTarget, woff2Target, cmTarget } = createMake(mapping);
|
let { buf, target, unhintedTarget, woffTarget, woff2Target, cmTarget } = createMake(
|
||||||
|
mapping
|
||||||
|
);
|
||||||
makes.push(buf);
|
makes.push(buf);
|
||||||
groupTargets.ttf.push(target);
|
groupTargets.ttf.push(target);
|
||||||
groupTargets[slantness].push(target);
|
groupTargets[slantness].push(target);
|
||||||
|
groupTargets.ttf_unhinted.push(unhintedTarget);
|
||||||
groupTargets.woff.push(woffTarget);
|
groupTargets.woff.push(woffTarget);
|
||||||
groupTargets.woff2.push(woff2Target);
|
groupTargets.woff2.push(woff2Target);
|
||||||
}
|
}
|
||||||
|
|
||||||
makes.push(`fonts-${dg.name} : ${groupTargets.ttf.join(" ")}`);
|
makes.push(
|
||||||
|
`fonts-${dg.name} : ${[...groupTargets.ttf, ...groupTargets.ttf_unhinted].join(" ")}`
|
||||||
|
);
|
||||||
makes.push(`fonts-${dg.name}-upright : ${groupTargets.upright.join(" ")}`);
|
makes.push(`fonts-${dg.name}-upright : ${groupTargets.upright.join(" ")}`);
|
||||||
makes.push(`fonts-${dg.name}-italic : ${groupTargets.italic.join(" ")}`);
|
makes.push(`fonts-${dg.name}-italic : ${groupTargets.italic.join(" ")}`);
|
||||||
makes.push(`fonts-${dg.name}-oblique : ${groupTargets.oblique.join(" ")}`);
|
makes.push(`fonts-${dg.name}-oblique : ${groupTargets.oblique.join(" ")}`);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue