Home | History | Annotate | Download | only in octane

Lines Matching defs:cff

14903         var cff = (subtype == 'Type1C' || subtype == 'CIDFontType0C') ?
14906 // Wrap the CFF data inside an OTF font file
14907 data = this.convert(name, cff, properties);
16258 'CFF ': font.data,
17133 * The CFF class takes a Type1 file and wrap it into a
17527 var cff = [];
17531 cff.push(field.charCodeAt(i));
17534 return cff;
17543 var cff = parser.parse();
17544 var compiler = new CFFCompiler(cff);
17545 this.readExtra(cff);
17557 readExtra: function CFFFont_readExtra(cff) {
17560 var charset = cff.charset.charset;
17561 var encoding = cff.encoding ? cff.encoding.encoding : null;
17636 var cff = new CFF();
17637 this.cff = cff;
17648 var topDict = this.createDict(CFFTopDict, topDictParsed, cff.strings);
17650 cff.header = header.obj;
17651 cff.names = this.parseNameIndex(nameIndex.obj);
17652 cff.strings = this.parseStringIndex(stringIndex.obj);
17653 cff.topDict = topDict;
17654 cff.globalSubrIndex = globalSubrIndex.obj;
17656 this.parsePrivateDict(cff.topDict);
17658 cff.isCIDFont = topDict.hasName('ROS');
17661 cff.charStrings = this.parseCharStrings(charStringOffset);
17664 if (cff.isCIDFont) {
17669 cff.strings);
17671 cff.fdArray.push(fontDict);
17676 cff.charStrings.count, cff.strings, true);
17677 cff.fdSelect = this.parseFDSelect(topDict.getByName('FDSelect'),
17678 cff.charStrings.count);
17681 cff.charStrings.count, cff.strings, false);
17684 cff.strings, charset.charset);
17686 cff.charset = charset;
17687 cff.encoding = encoding;
17689 return cff;
17699 warn('cff data is shifted');
17859 // The CFF specification state that the 'dotsection' command
18029 error('Unknow encoding format: ' + format + ' in CFF');
18034 // The font sanitizer does not support CFF encoding with a
18084 var CFF = (function CFFClosure() {
18085 function CFF() {
18102 return CFF;
18398 // Takes a CFF and converts it to the binary representation.
18407 function CFFCompiler(cff) {
18408 this.cff = cff;
18412 var cff = this.cff;
18423 var header = this.compileHeader(cff.header);
18426 var nameIndex = this.compileNameIndex(cff.names);
18429 var compiled = this.compileTopDicts([cff.topDict], output.length);
18433 var stringIndex = this.compileStringIndex(cff.strings.strings);
18436 var globalSubrIndex = this.compileIndex(cff.globalSubrIndex);
18440 if (cff.encoding && cff.topDict.hasName('Encoding')) {
18441 if (cff.encoding.predefined) {
18442 topDictTracker.setEntryLocation('Encoding', [cff.encoding.format],
18445 var encoding = this.compileEncoding(cff.encoding);
18451 if (cff.charset && cff.topDict.hasName('charset')) {
18452 if (cff.charset.predefined) {
18453 topDictTracker.setEntryLocation('charset', [cff.charset.format],
18456 var charset = this.compileCharset(cff.charset);
18462 var charStrings = this.compileCharStrings(cff.charStrings);
18466 if (cff.isCIDFont) {
18470 var fdSelect = this.compileFDSelect(cff.fdSelect.raw);
18473 var compiled = this.compileTopDicts(cff.fdArray, output.length);
18478 this.compilePrivateDicts(cff.fdArray, fontDictTrackers, output);
18481 this.compilePrivateDicts([cff.topDict], [topDictTracker], output);
18659 var globalSubrIndex = this.cff.globalSubrIndex;