Skip to content

Latest commit

 

History

History
489 lines (260 loc) · 10.8 KB

Gothic.md

File metadata and controls

489 lines (260 loc) · 10.8 KB

@kurgm/kage-engine / Gothic

Class: Gothic

Gothic style font.

Hierarchy

Implements

  • FontInterface

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Gothic()

Inherited from

Mincho.constructor

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

Inherited from

Mincho.kAdjustKakatoL

Defined in

font/mincho/index.ts:260


kAdjustKakatoR

kAdjustKakatoR: number[]

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

Inherited from

Mincho.kAdjustKakatoR

Defined in

font/mincho/index.ts:263


kAdjustKakatoRangeX

kAdjustKakatoRangeX: number

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

Inherited from

Mincho.kAdjustKakatoRangeX

Defined in

font/mincho/index.ts:266


kAdjustKakatoRangeY

kAdjustKakatoRangeY: number[]

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

Inherited from

Mincho.kAdjustKakatoRangeY

Defined in

font/mincho/index.ts:269


kAdjustKakatoStep

kAdjustKakatoStep: number

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

Inherited from

Mincho.kAdjustKakatoStep

Defined in

font/mincho/index.ts:272


kAdjustMageStep

kAdjustMageStep: number

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

Inherited from

Mincho.kAdjustMageStep

Defined in

font/mincho/index.ts:297


kAdjustTateStep

kAdjustTateStep: number

Parameter for thinning adjustment of mincho-style vertical strokes.

Inherited from

Mincho.kAdjustTateStep

Defined in

font/mincho/index.ts:295


kAdjustUroko2Length

kAdjustUroko2Length: number

Parameter for shrinking adjustment of ウロコ using density of horizontal strokes.

Inherited from

Mincho.kAdjustUroko2Length

Defined in

font/mincho/index.ts:293


kAdjustUroko2Step

kAdjustUroko2Step: number

Number of ウロコ shrinking levels by adjustment using density of horizontal strokes.

Inherited from

Mincho.kAdjustUroko2Step

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

Inherited from

Mincho.kAdjustUrokoLength

Defined in

font/mincho/index.ts:282


kAdjustUrokoLengthStep

kAdjustUrokoLengthStep: number

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

Inherited from

Mincho.kAdjustUrokoLengthStep

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

Inherited from

Mincho.kAdjustUrokoLine

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

Inherited from

Mincho.kAdjustUrokoX

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

Inherited from

Mincho.kAdjustUrokoY

Defined in

font/mincho/index.ts:279


kKakato

kKakato: number

Size of カカト in gothic.

Inherited from

Mincho.kKakato

Defined in

font/mincho/index.ts:247


kL2RDfatten

kL2RDfatten: number

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

Inherited from

Mincho.kL2RDfatten

Defined in

font/mincho/index.ts:249


kMage

kMage: number

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

Inherited from

Mincho.kMage

Defined in

font/mincho/index.ts:251


kMinWidthT

kMinWidthT: number

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

Inherited from

Mincho.kMinWidthT

Defined in

font/mincho/index.ts:240


kMinWidthU

kMinWidthU: number

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

Inherited from

Mincho.kMinWidthU

Defined in

font/mincho/index.ts:238


kMinWidthY

kMinWidthY: number

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

Inherited from

Mincho.kMinWidthY

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. The smaller kRate will give smoother curves approximated with the larger number of points (roughly 2 × 1000 / kRate per one curve stroke).

Inherited from

Mincho.kRate

Defined in

font/mincho/index.ts:234


kUseCurve

kUseCurve: boolean

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

Implementation of

FontInterface.kUseCurve

Inherited from

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

Inherited from

Mincho.kWidth

Defined in

font/mincho/index.ts:245


shotai

Readonly shotai: KShotai = KShotai.kGothic

Implementation of

FontInterface.shotai

Overrides

Mincho.shotai

Defined in

font/gothic/index.ts:166

Methods

setSize

setSize(size?): void

Parameters

Name Type
size? number

Returns

void

Implementation of

FontInterface.setSize

Inherited from

Mincho.setSize

Defined in

font/mincho/index.ts:303