@@ -267,11 +267,11 @@ class FakeUnicodeFont {
267267 get fontDescriptorRef ( ) {
268268 if ( ! FakeUnicodeFont . _fontDescriptorRef ) {
269269 const fontDescriptor = new Dict ( this . xref ) ;
270- fontDescriptor . set ( "Type" , Name . get ( "FontDescriptor" ) ) ;
270+ fontDescriptor . setName ( "Type" , "FontDescriptor" ) ;
271271 fontDescriptor . set ( "FontName" , this . fontName ) ;
272272 fontDescriptor . set ( "FontFamily" , "MyriadPro Regular" ) ;
273273 fontDescriptor . set ( "FontBBox" , [ 0 , 0 , 0 , 0 ] ) ;
274- fontDescriptor . set ( "FontStretch" , Name . get ( "Normal" ) ) ;
274+ fontDescriptor . setName ( "FontStretch" , "Normal" ) ;
275275 fontDescriptor . set ( "FontWeight" , 400 ) ;
276276 fontDescriptor . set ( "ItalicAngle" , 0 ) ;
277277
@@ -285,9 +285,9 @@ class FakeUnicodeFont {
285285 get descendantFontRef ( ) {
286286 const descendantFont = new Dict ( this . xref ) ;
287287 descendantFont . set ( "BaseFont" , this . fontName ) ;
288- descendantFont . set ( "Type" , Name . get ( "Font" ) ) ;
289- descendantFont . set ( "Subtype" , Name . get ( "CIDFontType0" ) ) ;
290- descendantFont . set ( "CIDToGIDMap" , Name . get ( "Identity" ) ) ;
288+ descendantFont . setName ( "Type" , "Font" ) ;
289+ descendantFont . setName ( "Subtype" , "CIDFontType0" ) ;
290+ descendantFont . setName ( "CIDToGIDMap" , "Identity" ) ;
291291 descendantFont . set ( "FirstChar" , this . firstChar ) ;
292292 descendantFont . set ( "LastChar" , this . lastChar ) ;
293293 descendantFont . set ( "FontDescriptor" , this . fontDescriptorRef ) ;
@@ -330,11 +330,11 @@ class FakeUnicodeFont {
330330 get baseFontRef ( ) {
331331 const baseFont = new Dict ( this . xref ) ;
332332 baseFont . set ( "BaseFont" , this . fontName ) ;
333- baseFont . set ( "Type" , Name . get ( "Font" ) ) ;
334- baseFont . set ( "Subtype" , Name . get ( "Type0" ) ) ;
335- baseFont . set ( "Encoding" , Name . get ( "Identity-H" ) ) ;
333+ baseFont . setName ( "Type" , "Font" ) ;
334+ baseFont . setName ( "Subtype" , "Type0" ) ;
335+ baseFont . setName ( "Encoding" , "Identity-H" ) ;
336336 baseFont . set ( "DescendantFonts" , [ this . descendantFontRef ] ) ;
337- baseFont . set ( "ToUnicode" , Name . get ( "Identity-H" ) ) ;
337+ baseFont . setName ( "ToUnicode" , "Identity-H" ) ;
338338
339339 return this . xref . getNewPersistentRef ( baseFont ) ;
340340 }
@@ -463,7 +463,7 @@ class FakeUnicodeFont {
463463 const r0 = new Dict ( this . xref ) ;
464464 r0 . set ( "ca" , strokeAlpha ) ;
465465 r0 . set ( "CA" , strokeAlpha ) ;
466- r0 . set ( "Type" , Name . get ( "ExtGState" ) ) ;
466+ r0 . setName ( "Type" , "ExtGState" ) ;
467467 extGState . set ( "R0" , r0 ) ;
468468 resources . set ( "ExtGState" , extGState ) ;
469469 }
@@ -476,8 +476,8 @@ class FakeUnicodeFont {
476476 const appearance = buffer . join ( "\n" ) ;
477477
478478 const appearanceStreamDict = new Dict ( this . xref ) ;
479- appearanceStreamDict . set ( "Subtype" , Name . get ( "Form" ) ) ;
480- appearanceStreamDict . set ( "Type" , Name . get ( "XObject" ) ) ;
479+ appearanceStreamDict . setName ( "Subtype" , "Form" ) ;
480+ appearanceStreamDict . setName ( "Type" , "XObject" ) ;
481481 appearanceStreamDict . set ( "BBox" , [ 0 , 0 , w , h ] ) ;
482482 appearanceStreamDict . set ( "Length" , appearance . length ) ;
483483 appearanceStreamDict . set ( "Resources" , resources ) ;
0 commit comments