Skip to content

Commit

Permalink
fix: add additional font character sets #3031
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Sep 16, 2024
1 parent db5b787 commit b6e3093
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
Binary file added assets/Fonts/NotoSansGurmukhi-Regular.ttf
Binary file not shown.
Binary file added assets/Fonts/NotoSansSC-Regular.ttf
Binary file not shown.
2 changes: 2 additions & 0 deletions companion/lib/Graphics/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ class GraphicsController extends CoreBase {
GlobalFonts.registerFromPath(generateFontUrl('NotoMusic-Regular.ttf'), 'Companion-symbols4')
GlobalFonts.registerFromPath(generateFontUrl('NotoSansLinearA-Regular.ttf'), 'Companion-symbols5')
GlobalFonts.registerFromPath(generateFontUrl('NotoSansLinearB-Regular.ttf'), 'Companion-symbols6')
GlobalFonts.registerFromPath(generateFontUrl('NotoSansGurmukhi-Regular.ttf'), 'Companion-gurmukhi')
GlobalFonts.registerFromPath(generateFontUrl('NotoSansSC-Regular.ttf'), 'Companion-simplified-chinese')
GlobalFonts.registerFromPath(generateFontUrl('NotoColorEmoji-compat.ttf'), 'Companion-emoji')
GlobalFonts.registerFromPath(generateFontUrl('pf_tempesta_seven.ttf'), '5x7')

Expand Down
2 changes: 1 addition & 1 deletion companion/lib/Graphics/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import LogController from '../Log/Controller.js'
import { PNG } from 'pngjs'

const DEFAULT_FONTS =
'Companion-sans, Companion-symbols1, Companion-symbols2, Companion-symbols3, Companion-symbols4, Companion-symbols5, Companion-symbols6, Companion-emoji'
'Companion-sans, Companion-symbols1, Companion-symbols2, Companion-symbols3, Companion-symbols4, Companion-symbols5, Companion-symbols6, Companion-gurmukhi, Companion-simplified-chinese, Companion-emoji'

/**
* @param {string | Buffer} pngData
Expand Down

0 comments on commit b6e3093

Please sign in to comment.