Installations
npm install font
Developer Guide
BETA
Typescript
No
Module System
CommonJS
Min. Node Version
0.6
Node Version
v0.7.7
NPM Version
1.1.15
Score
72.5
Supply Chain
97.5
Quality
74.9
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Download Statistics
Total Downloads
87,496
Last Day
26
Last Week
255
Last Month
1,018
Last Year
10,923
Bundle Size
55.67 kB
Minified
20.13 kB
Minified + Gzipped
Package Meta Information
Latest Version
0.0.4
Package Id
font@0.0.4
Size
15.77 kB
NPM Version
1.1.15
Node Version
v0.7.7
Total Downloads
Cumulative downloads
Total Downloads
87,496
Last day
-63.4%
26
Compared to previous day
Last week
-9.9%
255
Compared to previous week
Last month
2.6%
1,018
Compared to previous month
Last year
35.3%
10,923
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Versions
font
Work in progress but it currently reads a lot of info already.
Usage
npm install font
1var font = require('font'); 2 3// get an array of fonts from the OS's font directory 4font.listFonts(); 5 6// loads a file from either the font directory or a full path 7font.loadFont('filename.ttf') 8 9// the constructor and prototype 10font.Font
Provides
It's currently very much not done but here's what you get so far:
1{ name: 'THESANSMONO-9-BLACK', 2 index: 3 { version: [ 0, 1, 0, 0 ], 4 tables: 16, 5 range: 256, 6 selector: 4, 7 shift: 0, 8 tableIndex: 9 { LTSH: { checksum: 3244564258, offset: 1484, length: 253 }, 10 OS2: { checksum: 2283441823, offset: 392, length: 96 }, 11 VDMX: { checksum: 1818129373, offset: 1740, length: 1504 }, 12 cmap: { checksum: 2017951296, offset: 9048, length: 1858 }, 13 cvt: { checksum: 53611393, offset: 11468, length: 42 }, 14 fpgm: { checksum: 106535991, offset: 10908, length: 371 }, 15 glyf: { checksum: 401431820, offset: 11512, length: 48500 }, 16 hdmx: { checksum: 585734230, offset: 3244, length: 5804 }, 17 head: { checksum: 4007011577, offset: 268, length: 54 }, 18 hhea: { checksum: 101712464, offset: 324, length: 36 }, 19 hmtx: { checksum: 1161901745, offset: 488, length: 996 }, 20 loca: { checksum: 2345778054, offset: 60012, length: 500 }, 21 maxp: { checksum: 51053014, offset: 360, length: 32 }, 22 name: { checksum: 2013066169, offset: 60512, length: 776 }, 23 post: { checksum: 4163660325, offset: 61288, length: 582 }, 24 prep: { checksum: 1084743514, offset: 11280, length: 186 } } }, 25 os2: 26 { version: 3, 27 avgCharWidth: 600, 28 weightClass: 'Ultra-bold', 29 widthClass: 'Medium', 30 type: 0, 31 subscript: { size: { x: 650, y: 650 }, offset: { x: 0, y: 150 } }, 32 superscript: { size: { x: 650, y: 650 }, offset: { x: 0, y: 500 } }, 33 strikeout: { size: 50, position: 225 }, 34 class: 'No Classification', 35 subclass: 'No Classification', 36 panose: 37 { familyType: 'Text and Display', 38 weight: 'Heavy', 39 proportion: 'Monospaced' }, 40 unicodePages: 41 { '0000-007F': 'Basic Latin', 42 '0080-00FF': 'Latin-1 Supplement ', 43 '0100-017F': 'Latin Extended-A ', 44 '0180-024F': 'Latin Extended-B ', 45 '02B0-02FF': 'Spacing Modifier Letters ', 46 'A700-A71F': 'Modifier Tone Letters', 47 '0370-03FF': 'Greek and Coptic ', 48 '2000-206F': 'General Punctuation', 49 '2E00-2E7F': 'Supplemental Punctuation ', 50 '2100-214F': 'Letterlike Symbols ', 51 '2200-22FF': 'Mathematical Operators ', 52 '2A00-2AFF': 'Supplemental Mathematical Operators', 53 '27C0-27EF': 'Miscellaneous Mathematical Symbols-A ', 54 '2980-29FF': 'Miscellaneous Mathematical Symbols-B ', 55 '25A0-25FF': 'Geometric Shapes ', 56 'E000-F8FF': 'Private Use Area (plane 0) ', 57 'FB00-FB4F': 'Alphabetic Presentation Forms' }, 58 vendorID: 'MaPm', 59 selection: [], 60 firstCharIndex: 32, 61 lastCharIndex: 64258, 62 typographic: { ascender: 750, descender: -250, lineGap: 200 }, 63 windowTypographic: { ascender: 921, descender: 259 }, 64 codePages: 65 [ 'Latin 1', 66 'Turkish', 67 'Vietnamese', 68 'Macintosh Character Set (US Roman)', 69 'IBM Turkish', 70 'WE/Latin 1' ], 71 xHeight: 497, 72 capHeight: 675, 73 defaultChar: 0, 74 breakChar: 32, 75 maxContext: 0 } }
No vulnerabilities found.
No security vulnerabilities found.