Fix the dimensions of wide geometric shapes in quasi-proportional (#1941).
This commit is contained in:
parent
80fa4f0c60
commit
46db4b9d5f
2 changed files with 6 additions and 5 deletions
|
@ -1 +1,2 @@
|
||||||
* Fix leaning marks of LATIN SMALL LETTER T WITH CEDILLA (`U+0163`) (#1914).
|
* Fix leaning marks of LATIN SMALL LETTER T WITH CEDILLA (`U+0163`) (#1914).
|
||||||
|
* Fix the dimensions of wide geometric shapes in quasi-proportional (#1941).
|
||||||
|
|
|
@ -9,7 +9,7 @@ glyph-block Symbol-Geometric-Shared : begin
|
||||||
glyph-block-export GeometricDim
|
glyph-block-export GeometricDim
|
||||||
define [GeometricDim unitWidth fullWidth] : begin
|
define [GeometricDim unitWidth fullWidth] : begin
|
||||||
define s : fullWidth / unitWidth
|
define s : fullWidth / unitWidth
|
||||||
define sb : 0.625 * SB * s * s
|
define sb : 0.625 * SB * s * s * [Math.pow (unitWidth / Width) 2]
|
||||||
define tallSize : 0.5 * para.arrowHeight * (unitWidth - sb) * [Math.pow s (1 / 3)]
|
define tallSize : 0.5 * para.arrowHeight * (unitWidth - sb) * [Math.pow s (1 / 3)]
|
||||||
define size : Math.min (0.5 * fullWidth - sb) tallSize
|
define size : Math.min (0.5 * fullWidth - sb) tallSize
|
||||||
return : object
|
return : object
|
||||||
|
@ -39,11 +39,11 @@ glyph-block Symbol-Geometric-Shared : begin
|
||||||
define [GeometricSizes Geom] : object
|
define [GeometricSizes Geom] : object
|
||||||
Large {.size [DesignParameters.GeometricLargeX Geom.Width Geom.UnitWidth]}
|
Large {.size [DesignParameters.GeometricLargeX Geom.Width Geom.UnitWidth]}
|
||||||
Medium {.size DesignParameters.geometric_medium_x}
|
Medium {.size DesignParameters.geometric_medium_x}
|
||||||
MediumSmall {.size DesignParameters.geometric_medium_small_x .sw [Math.min GeometryStroke : AdviceStroke 5 Geom.Scalar]}
|
MediumSmall {.size DesignParameters.geometric_medium_small_x .sw [Math.min GeometryStroke : AdviceStroke 5 Geom.Scalar]}
|
||||||
Small {.size DesignParameters.geometric_small_x .sw [Math.min GeometryStroke : AdviceStroke 6 Geom.Scalar]}
|
Small {.size DesignParameters.geometric_small_x .sw [Math.min GeometryStroke : AdviceStroke 6 Geom.Scalar]}
|
||||||
SlightlySmall {.size DesignParameters.geometric_slightly_small_x .sw [Math.min GeometryStroke : AdviceStroke 6.5 Geom.Scalar]}
|
SlightlySmall {.size DesignParameters.geometric_slightly_small_x .sw [Math.min GeometryStroke : AdviceStroke 6.5 Geom.Scalar]}
|
||||||
VerySmall {.size DesignParameters.geometric_very_small_x .sw [Math.min GeometryStroke : AdviceStroke 7 Geom.Scalar]}
|
VerySmall {.size DesignParameters.geometric_very_small_x .sw [Math.min GeometryStroke : AdviceStroke 7 Geom.Scalar]}
|
||||||
Tiny {.size DesignParameters.geometric_tiny_x .sw [Math.min GeometryStroke : AdviceStroke 8 Geom.Scalar]}
|
Tiny {.size DesignParameters.geometric_tiny_x .sw [Math.min GeometryStroke : AdviceStroke 8 Geom.Scalar]}
|
||||||
|
|
||||||
Oblique { .sw [Math.min GeometryStroke : AdviceStroke 4.75 Geom.Scalar] }
|
Oblique { .sw [Math.min GeometryStroke : AdviceStroke 4.75 Geom.Scalar] }
|
||||||
MediumOblique { .size DesignParameters.geometric_medium_x .sw [Math.min GeometryStroke : AdviceStroke 4.75 Geom.Scalar] }
|
MediumOblique { .size DesignParameters.geometric_medium_x .sw [Math.min GeometryStroke : AdviceStroke 4.75 Geom.Scalar] }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue