@kurgm/kage-engine • Docs
@kurgm/kage-engine / Mincho
Mincho-style font (明朝体).
FontInterface
new Mincho():
Mincho
kAdjustKakatoL:
number
[]
Length of 左下カド's カカト in mincho for each shortening level (0 to 3) and 413 (左下zh用新).
kAdjustKakatoR:
number
[]
Length of 右下カド's カカト in mincho for each shortening level (0 to 3).
kAdjustKakatoRangeX:
number
Width of the collision box below カカト for shortening adjustment.
kAdjustKakatoRangeY:
number
[]
Height of the collision box below カカト for each shortening adjustment level (0 to 3).
kAdjustKakatoStep:
number
Number of カカト shortening levels. Must be set to 3.
kAdjustMageStep:
number
Parameter for thinning adjustment of the latter half of mincho-style 折れ strokes.
kAdjustTateStep:
number
Parameter for thinning adjustment of mincho-style vertical strokes.
kAdjustUroko2Length:
number
Parameter for shrinking adjustment of ウロコ based on the density of horizontal strokes.
kAdjustUroko2Step:
number
Number of ウロコ shrinking levels by adjustment based on the density of horizontal strokes.
kAdjustUrokoLength:
number
[]
Threshold length of horizontal strokes for shrinking its ウロコ for each adjustment level (kAdjustUrokoLengthStep to 1).
kAdjustUrokoLengthStep:
number
Number of ウロコ shrinking levels by adjustment using collision detection.
kAdjustUrokoLine:
number
[]
Size of the collision box to the left of ウロコ at the 開放 end of mincho-style horizontal strokes for each shrinking adjustment level (kAdjustUrokoLengthStep to 1).
kAdjustUrokoX:
number
[]
Size of ウロコ at the 開放 end of mincho-style horizontal strokes for each shrinking level (0 to max(kAdjustUrokoLengthStep, kAdjustUroko2Step)).
kAdjustUrokoY:
number
[]
Size of ウロコ at the 開放 end of mincho-style horizontal strokes for each shrinking level (0 to max(kAdjustUrokoLengthStep, kAdjustUroko2Step)).
kKakato:
number
Size of カカト in gothic.
kL2RDfatten:
number
Width at the end of 右払い relative to 2 * kMinWidthT
.
kMage:
number
Size of the curve at the end of 左ハネ, and at the middle of 折れ and 乙線 strokes.
kMinWidthT:
number
Half of the width of mincho-style vertical (thicker) strokes.
kMinWidthU:
number
Determines the size of ウロコ at the 開放 end of mincho-style horizontal strokes.
kMinWidthY:
number
Half of the width of mincho-style horizontal (thinner) strokes.
kRate:
number
=100
Precision for polygon approximation of curving strokes.
It must be a positive divisor of 1000. A smaller kRate
will result in
smoother curves approximated with a larger number of points (roughly
2 × 1000 / kRate
per curve stroke).
kUseCurve:
boolean
Whether to use off-curve points to approximate curving strokes with quadratic Bézier curves (experimental).
FontInterface.kUseCurve
kWidth:
number
Half of the width of gothic-style strokes. Also used to determine the size of mincho's ornamental elements.
readonly
shotai:KShotai
=KShotai.kMincho
FontInterface.shotai
setSize(
size
?):void
• size?: number
void
FontInterface.setSize