- Docs: print dialog with live page preview and range selection; WYSIWYG print preview across apps - Docs: header/footer fidelity - alignment, color, size, images, and tab layout (w:tabs, w:ptab) - Docs: pagination and layout fixes - keepNext crash, blank pages, footnotes, line-height, font substitution, Tamil support - Sheets: import implicit cell addresses and row/column default styles; keep dialog inputs inside narrow grid columns - Slides: PowerPoint-style stage rulers, wheel page turning, and notes bar - Slides: insert 3-D pie and 3-D column charts; render 3-D chart variants as 2-D projections - PDF: comments margin with pin leader lines, note threads with replies, and selection-level text styles - PDF: searchable text insertion, page management, and auto-opening of extract/split output Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
51 lines
1.3 KiB
TypeScript
51 lines
1.3 KiB
TypeScript
import { describe, expect, it } from 'vitest'
|
|
|
|
import { isSymbolFontFamily } from '@genoffice/ui'
|
|
|
|
describe('isSymbolFontFamily (font pickers show symbol-font names in the UI font)', () => {
|
|
it('flags the classic symbol-encoded families', () => {
|
|
for (const family of [
|
|
'Webdings',
|
|
'Wingdings',
|
|
'Wingdings 2',
|
|
'Wingdings 3',
|
|
'Zapf Dingbats',
|
|
'ITC Zapf Dingbats',
|
|
'Symbol',
|
|
'Marlett',
|
|
'MS Outlook',
|
|
'MS Reference Specialty',
|
|
'MT Extra',
|
|
'Bookshelf Symbol 7',
|
|
'Segoe MDL2 Assets',
|
|
'Segoe Fluent Icons',
|
|
'HoloLens MDL2 Assets',
|
|
'Bodoni Ornaments',
|
|
]) {
|
|
expect(isSymbolFontFamily(family), family).toBe(true)
|
|
}
|
|
})
|
|
|
|
it('is case- and whitespace-insensitive', () => {
|
|
expect(isSymbolFontFamily('wingdings')).toBe(true)
|
|
expect(isSymbolFontFamily(' WEBDINGS ')).toBe(true)
|
|
})
|
|
|
|
it('keeps text fonts on the preview path, including Unicode symbol fonts', () => {
|
|
for (const family of [
|
|
'Arial',
|
|
'Calibri',
|
|
'宋体',
|
|
'PingFang SC',
|
|
'Zapfino',
|
|
// Unicode-encoded: letters render normally, so the preview stays useful
|
|
'Segoe UI Symbol',
|
|
'Apple Symbols',
|
|
'Noto Sans Symbols',
|
|
'Symbols Nerd Font',
|
|
]) {
|
|
expect(isSymbolFontFamily(family), family).toBe(false)
|
|
}
|
|
})
|
|
})
|