MCPcopy
hub / github.com/ShizukuIchi/pdf-editor / encodeText

Method encodeText

public/makeTextPDF.js:60919–60929  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

60917
60918 break;
60919
60920 case 'CharMetrics':
60921 if (!/^CH?\s/.test(line)) {
60922 continue;
60923 }
60924
60925 var name = line.match(/\bN\s+(\.?\w+)\s*;/)[1];
60926 this.glyphWidths[name] = +line.match(/\bWX\s+(\d+)\s*;/)[1];
60927 break;
60928
60929 case 'KernPairs':
60930 match = line.match(/^KPX\s+(\.?\w+)\s+(\.?\w+)\s+(-?\d+)/);
60931
60932 if (match) {

Callers 1

encodeMethod · 0.80

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected