Skip to content

Latest commit

 

History

History
352 lines (179 loc) · 7.59 KB

Mincho.md

File metadata and controls

352 lines (179 loc) · 7.59 KB

@kurgm/kage-engineDocs


@kurgm/kage-engine / Mincho

Class: Mincho

Mincho-style font (明朝体).

Extended by

Implements

  • FontInterface

Constructors

new Mincho()

new Mincho(): Mincho

Returns

Mincho

Defined in

font/mincho/index.ts:299

Properties

kAdjustKakatoL

kAdjustKakatoL: number[]

Length of 左下カド's カカト in mincho for each shortening level (0 to 3) and 413 (左下zh用新).

Defined in

font/mincho/index.ts:260


kAdjustKakatoR

kAdjustKakatoR: number[]

Length of 右下カド's カカト in mincho for each shortening level (0 to 3).

Defined in

font/mincho/index.ts:263


kAdjustKakatoRangeX

kAdjustKakatoRangeX: number

Width of the collision box below カカト for shortening adjustment.

Defined in

font/mincho/index.ts:266


kAdjustKakatoRangeY

kAdjustKakatoRangeY: number[]

Height of the collision box below カカト for each shortening adjustment level (0 to 3).

Defined in

font/mincho/index.ts:269


kAdjustKakatoStep

kAdjustKakatoStep: number

Number of カカト shortening levels. Must be set to 3.

Defined in

font/mincho/index.ts:272


kAdjustMageStep

kAdjustMageStep: number

Parameter for thinning adjustment of the latter half of mincho-style 折れ strokes.

Defined in

font/mincho/index.ts:297


kAdjustTateStep

kAdjustTateStep: number

Parameter for thinning adjustment of mincho-style vertical strokes.

Defined in

font/mincho/index.ts:295


kAdjustUroko2Length

kAdjustUroko2Length: number

Parameter for shrinking adjustment of ウロコ based on the density of horizontal strokes.

Defined in

font/mincho/index.ts:293


kAdjustUroko2Step

kAdjustUroko2Step: number

Number of ウロコ shrinking levels by adjustment based on the density of horizontal strokes.

Defined in

font/mincho/index.ts:291


kAdjustUrokoLength

kAdjustUrokoLength: number[]

Threshold length of horizontal strokes for shrinking its ウロコ for each adjustment level (kAdjustUrokoLengthStep to 1).

Defined in

font/mincho/index.ts:282


kAdjustUrokoLengthStep

kAdjustUrokoLengthStep: number

Number of ウロコ shrinking levels by adjustment using collision detection.

Defined in

font/mincho/index.ts:285


kAdjustUrokoLine

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).

Defined in

font/mincho/index.ts:288


kAdjustUrokoX

kAdjustUrokoX: number[]

Size of ウロコ at the 開放 end of mincho-style horizontal strokes for each shrinking level (0 to max(kAdjustUrokoLengthStep, kAdjustUroko2Step)).

Defined in

font/mincho/index.ts:276


kAdjustUrokoY

kAdjustUrokoY: number[]

Size of ウロコ at the 開放 end of mincho-style horizontal strokes for each shrinking level (0 to max(kAdjustUrokoLengthStep, kAdjustUroko2Step)).

Defined in

font/mincho/index.ts:279


kKakato

kKakato: number

Size of カカト in gothic.

Defined in

font/mincho/index.ts:247


kL2RDfatten

kL2RDfatten: number

Width at the end of 右払い relative to 2 * kMinWidthT.

Defined in

font/mincho/index.ts:249


kMage

kMage: number

Size of the curve at the end of 左ハネ, and at the middle of 折れ and 乙線 strokes.

Defined in

font/mincho/index.ts:251


kMinWidthT

kMinWidthT: number

Half of the width of mincho-style vertical (thicker) strokes.

Defined in

font/mincho/index.ts:240


kMinWidthU

kMinWidthU: number

Determines the size of ウロコ at the 開放 end of mincho-style horizontal strokes.

Defined in

font/mincho/index.ts:238


kMinWidthY

kMinWidthY: number

Half of the width of mincho-style horizontal (thinner) strokes.

Defined in

font/mincho/index.ts:236


kRate

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).

Defined in

font/mincho/index.ts:234


kUseCurve

kUseCurve: boolean

Whether to use off-curve points to approximate curving strokes with quadratic Bézier curves (experimental).

Implementation of

FontInterface.kUseCurve

Defined in

font/mincho/index.ts:256


kWidth

kWidth: number

Half of the width of gothic-style strokes. Also used to determine the size of mincho's ornamental elements.

Defined in

font/mincho/index.ts:245


shotai

readonly shotai: KShotai = KShotai.kMincho

Implementation of

FontInterface.shotai

Defined in

font/mincho/index.ts:226

Methods

setSize()

setSize(size?): void

Parameters

size?: number

Returns

void

Implementation of

FontInterface.setSize

Defined in

font/mincho/index.ts:303