* Add characters:

- SUMMATION TOP (`U+23B2`);
   - SUMMATION BOTTOM (`U+23B3`);
This commit is contained in:
be5invis 2022-05-06 21:54:55 -07:00
parent 70b050b477
commit 9ad83be568
4 changed files with 22 additions and 3 deletions

View file

@ -1 +0,0 @@
* Enlarged `U+02BE` and `U+02BF` to match the dimensions of other quotes (#1346).

4
changes/15.3.0.md Normal file
View file

@ -0,0 +1,4 @@
* Add characters:
- SUMMATION TOP (`U+23B2`);
- SUMMATION BOTTOM (`U+23B3`);
* Enlarged `U+02BE` and `U+02BF` to match the dimensions of other quotes (#1346).

View file

@ -10,9 +10,9 @@ glyph-block Letter-Greek-Upper-Sigma : begin
glyph-block-import Common-Derivatives
glyph-block-export SigmaShape
define [SigmaShape] : params [df top bottom fine [noSerif false] [offsetLeft 0]] : glyph-proc
define [SigmaShape] : params [df top bottom fine [noSerif false] [pCenter 0.5] [offsetLeft 0]] : glyph-proc
local cor : DiagCor (top - bottom) (df.rightSB - df.leftSB)
local midx : df.middle - fine / 2
local midx : [mix df.leftSB df.rightSB pCenter] - fine / 2
include : union
HBarTop (offsetLeft + df.leftSB) df.rightSB top fine

View file

@ -13,6 +13,10 @@ glyph-block Symbol-Math-Large-Operators : for-width-kinds WideWidth1
glyph-block-import Letter-Greek-Pi : PiShape
glyph-block-import Letter-Blackboard : BBS BBD
define MosaicTop fontMetrics.os2.sTypoAscender
define MosaicBottom fontMetrics.os2.sTypoDescender
define MosaicHeight : MosaicTop - MosaicBottom
define diversityLargeOperators : Math.max para.diversityM (MosaicWidth / Width)
define df : DivFrame diversityLargeOperators 0 [if FMosaicWide diversityLargeOperators 1]
@ -20,6 +24,18 @@ glyph-block Symbol-Math-Large-Operators : for-width-kinds WideWidth1
set-width df.width
include : SigmaShape df BgOpTop BgOpBot OperatorStroke
create-glyph [MangleName 'sumUpper'] [MangleUnicode 0x23B2] : glyph-proc
set-width df.width
include : intersection
MaskAbove MosaicBottom
SigmaShape df BgOpTop (BgOpBot - MosaicHeight * 2) OperatorStroke (pCenter -- 0.75)
create-glyph [MangleName 'sumLower'] [MangleUnicode 0x23B3] : glyph-proc
set-width df.width
include : intersection
MaskBelow MosaicTop
SigmaShape df (BgOpTop + MosaicHeight * 2) BgOpBot OperatorStroke (pCenter -- 0.75)
create-glyph [MangleName 'mathbb/sum'] [MangleUnicode 0x2140] : glyph-proc
set-width df.width
local kDiag : DiagCorDs (BgOpTop - BgOpBot) (df.rightSB - df.leftSB) BBD