Refine weight limits
This commit is contained in:
parent
9986d538d3
commit
fc149b0b1f
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ hintParams = ["-a", "sss"] # Optional custom parameters
|
||||||
# Override default building weights
|
# Override default building weights
|
||||||
# When buildPlans.<plan name>.weights is absent
|
# When buildPlans.<plan name>.weights is absent
|
||||||
# All weights would built and mapped to default shape/CSS
|
# All weights would built and mapped to default shape/CSS
|
||||||
# IMPORTANT : Currently "menu" property only support 100, 200, 300, 400, 450, 500, 600, 700, 800, 900.
|
# IMPORTANT : Currently "menu" and "css" property only support numbers between 0 and 1000.
|
||||||
# and "shape" properly only supports number between 100 and 900 (inclusive).
|
# and "shape" properly only supports number between 100 and 900 (inclusive).
|
||||||
[buildPlans.iosevka-custom.weights.regular]
|
[buildPlans.iosevka-custom.weights.regular]
|
||||||
shape = 400 # Weight for glyph shapes
|
shape = 400 # Weight for glyph shapes
|
||||||
|
|
|
@ -137,7 +137,7 @@ function vlShapeWeight(x) {
|
||||||
return x >= 100 && x <= 900;
|
return x >= 100 && x <= 900;
|
||||||
}
|
}
|
||||||
function vlCssWeight(x) {
|
function vlCssWeight(x) {
|
||||||
return x >= 0 && x <= 1000;
|
return x > 0 && x < 1000;
|
||||||
}
|
}
|
||||||
function vlMenuWeight(x) {
|
function vlMenuWeight(x) {
|
||||||
return vlCssWeight(x);
|
return vlCssWeight(x);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue