mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-10-01 17:29:29 +05:30
feat(ascii-art): 17 hand-coded font tables (5 existing + 12 new) with snapshot tests
Widen height bound to 3-12 so the spec-named figlet fonts fit: - Isometric1, Isometric2, Isometric3, Isometric4 (h=11) - Calvin S (h=3) Previously these were substituted with height-compliant alternatives (Small Isometric1, Banner3-D, Henry 3D, Small Poison, Modular). Restoring the spec-named fonts preserves the product intent: 4 distinct isometric projections and the calvin-and-hobbes-style Calvin S font. Amit Haridas
This commit is contained in:
@@ -37,8 +37,8 @@ describe('AsciiArt.fonts table shape', () => {
|
||||
const font = AsciiArtFonts.HAND_CODED_FONTS[id];
|
||||
expect(font).toBeDefined();
|
||||
expect(typeof font.height).toBe('number');
|
||||
expect(font.height).toBeGreaterThanOrEqual(4);
|
||||
expect(font.height).toBeLessThanOrEqual(8);
|
||||
expect(font.height).toBeGreaterThanOrEqual(3);
|
||||
expect(font.height).toBeLessThanOrEqual(12);
|
||||
expect(typeof font.chars).toBe('object');
|
||||
for (const ch of 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 '.split('')) {
|
||||
expect(font.chars[ch]).toBeDefined();
|
||||
|
||||
Reference in New Issue
Block a user