comic-bubbles
Version:
Animated comic bubbles - what else?
17 lines (16 loc) • 450 B
JavaScript
export class Font {
constructor(parent) {
this.name = undefined
this.image = undefined
this.bold = undefined
this.italic = undefined
this.fontHeight = undefined
this.letterSpacing = undefined
this.lineSpacing = undefined
this.spaceWidth = undefined
this.parent = parent
}
getPrefStr() {
return this.parent === undefined ? 'font' : this.parent.getPrefStr() + '.font'
}
}