Measure Korean and English text dimensions
Uses canvas-based text measurement to calculate accurate bounds for bilingual text before rendering. Prevents text overflow.
Korean text content
English text content
Font size in pixels
Font family to use (default: FONT_FAMILY.KOREAN)
Text layout direction ('vertical' | 'horizontal')
Text measurement with width and height
const bounds = measureTextBounds('공격', 'Attack', 16, FONT_FAMILY.KOREAN, 'vertical');// Returns: { width: 48, height: 42, koreanWidth: 32, englishWidth: 48 } Copy
const bounds = measureTextBounds('공격', 'Attack', 16, FONT_FAMILY.KOREAN, 'vertical');// Returns: { width: 48, height: 42, koreanWidth: 32, englishWidth: 48 }
텍스트경계측정
Measure Korean and English text dimensions
Uses canvas-based text measurement to calculate accurate bounds for bilingual text before rendering. Prevents text overflow.