🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

string-pixel-width

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-pixel-width - npm Package Compare versions

Comparing version

to
1.5.0

@@ -26,2 +26,3 @@ import index from '../src/index';

expect(index('test string', { font: 'impact', size: 10 })).toBe(42);
expect(index('test string', { font: 'tahoma', size: 10 })).toBe(44.300000000000004);
});

@@ -28,0 +29,0 @@

@@ -1074,6 +1074,102 @@ "use strict";

"~": [57, 57, 55, 55]
},
"tahoma": {
"0": [55, 64, 55, 64],
"1": [55, 64, 55, 64],
"2": [55, 64, 55, 64],
"3": [55, 64, 55, 64],
"4": [55, 64, 55, 64],
"5": [55, 64, 55, 64],
"6": [55, 64, 55, 64],
"7": [55, 64, 55, 64],
"8": [55, 64, 55, 64],
"9": [55, 64, 55, 64],
" ": [31, 29, 31, 29],
"!": [33, 34, 33, 34],
"\"": [40, 49, 40, 49],
"#": [73, 82, 73, 82],
"$": [55, 64, 55, 64],
"%": [98, 120, 98, 120],
"&": [67, 78, 67, 78],
"'": [21, 28, 21, 28],
"(": [38, 45, 38, 45],
")": [38, 45, 38, 45],
"*": [55, 64, 55, 64],
"+": [73, 82, 73, 82],
",": [30, 31, 30, 31],
"-": [36, 43, 36, 43],
".": [30, 31, 30, 31],
"/": [38, 58, 38, 58],
":": [35, 36, 35, 36],
";": [35, 36, 35, 36],
"<": [73, 82, 73, 82],
"=": [73, 82, 73, 82],
">": [73, 82, 73, 82],
"?": [47, 57, 47, 57],
"@": [91, 92, 91, 92],
"A": [60, 68, 60, 68],
"B": [59, 69, 59, 69],
"C": [60, 67, 60, 67],
"D": [68, 76, 68, 76],
"E": [56, 62, 56, 62],
"F": [52, 58, 52, 58],
"G": [67, 75, 67, 75],
"H": [68, 76, 68, 76],
"I": [37, 48, 37, 48],
"J": [42, 50, 42, 50],
"K": [59, 70, 59, 70],
"L": [50, 57, 50, 57],
"M": [77, 89, 77, 89],
"N": [67, 77, 67, 77],
"O": [71, 77, 71, 77],
"P": [55, 66, 55, 66],
"Q": [71, 77, 71, 77],
"R": [62, 73, 62, 73],
"S": [56, 63, 56, 63],
"T": [58, 61, 58, 61],
"U": [66, 74, 66, 74],
"V": [60, 67, 60, 67],
"W": [90, 103, 90, 103],
"X": [58, 68, 58, 68],
"Y": [58, 67, 58, 67],
"Z": [56, 62, 56, 62],
"[": [38, 45, 38, 45],
"\\": [38, 58, 38, 58],
"]": [38, 45, 38, 45],
"^": [73, 82, 73, 82],
"_": [55, 64, 55, 64],
"`": [55, 55, 55, 55],
"a": [52, 60, 52, 60],
"b": [55, 63, 55, 63],
"c": [46, 53, 46, 53],
"d": [55, 63, 55, 63],
"e": [53, 59, 53, 59],
"f": [32, 38, 32, 38],
"g": [55, 63, 55, 63],
"h": [56, 64, 56, 64],
"i": [23, 30, 23, 30],
"j": [28, 36, 28, 36],
"k": [50, 60, 50, 60],
"l": [23, 30, 23, 30],
"m": [84, 95, 84, 95],
"n": [56, 64, 56, 64],
"o": [54, 62, 54, 62],
"p": [55, 63, 55, 63],
"q": [55, 63, 55, 63],
"r": [36, 43, 36, 43],
"s": [45, 51, 45, 51],
"t": [33, 42, 33, 42],
"u": [56, 64, 56, 64],
"v": [50, 58, 50, 58],
"w": [74, 89, 74, 89],
"x": [50, 60, 50, 60],
"y": [50, 58, 50, 58],
"z": [44, 53, 44, 53],
"{": [48, 62, 48, 62],
"|": [38, 64, 38, 64],
"}": [48, 62, 48, 62],
"~": [73, 82, 73, 82]
}
};
exports.default = widthsMap;
module.exports = exports["default"];
{
"name": "string-pixel-width",
"version": "1.4.0",
"version": "1.5.0",
"description": "String pixel width measurement on the backend in Javascript",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -32,2 +32,3 @@ [string-pixel-width](https://github.com/adambisek/string-pixel-width)

- Webdings
- Tahoma

@@ -34,0 +35,0 @@ Example