@kurgm/kage-engine / Gothic
Gothic style font.
-
↳
Gothic
FontInterface
- kAdjustKakatoL
- kAdjustKakatoR
- kAdjustKakatoRangeX
- kAdjustKakatoRangeY
- kAdjustKakatoStep
- kAdjustMageStep
- kAdjustTateStep
- kAdjustUroko2Length
- kAdjustUroko2Step
- kAdjustUrokoLength
- kAdjustUrokoLengthStep
- kAdjustUrokoLine
- kAdjustUrokoX
- kAdjustUrokoY
- kKakato
- kL2RDfatten
- kMage
- kMinWidthT
- kMinWidthU
- kMinWidthY
- kRate
- kUseCurve
- kWidth
- shotai
• new Gothic()
• 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 latter half of mincho-style 折れ strokes.
• kAdjustTateStep: number
Parameter for thinning adjustment of mincho-style vertical strokes.
• kAdjustUroko2Length: number
Parameter for shrinking adjustment of ウロコ using density of horizontal strokes.
• kAdjustUroko2Step: number
Number of ウロコ shrinking levels by adjustment using 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 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. The smaller kRate
will give
smoother curves approximated with the larger number of points (roughly
2 × 1000 / kRate
per one curve stroke).
• kUseCurve: boolean
Whether to use off-curve points to approximate curving strokes with quadratic Bézier curve (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.kGothic
FontInterface.shotai
▸ setSize(size?
): void
Name | Type |
---|---|
size? |
number |
void
FontInterface.setSize