git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@18 1aa58f4a-7d42-0410-adbc-911cccaed67c

pull/1/head
yusuke.shinyama.dummy 2008-02-03 11:47:24 +00:00
parent 366143361f
commit 5c1aa960f5
2 changed files with 14 additions and 2 deletions

View File

@ -174,9 +174,14 @@ class PDFType1Font(PDFSimpleFont):
PDFSimpleFont.__init__(self, descriptor, widths, spec)
return
def __repr__(self):
return '<PDFType1Font: basefont=%r>' % self.basefont
# PDFTrueTypeFont
class PDFTrueTypeFont(PDFType1Font):
pass
def __repr__(self):
return '<PDFTrueTypeFont: basefont=%r>' % self.basefont
# PDFType3Font
class PDFType3Font(PDFSimpleFont):
@ -194,6 +199,10 @@ class PDFType3Font(PDFSimpleFont):
PDFSimpleFont.__init__(self, descriptor, widths, spec)
return
def __repr__(self):
return '<PDFType3Font>'
# PDFCIDFont
## TrueTypeFont
@ -339,6 +348,9 @@ class PDFCIDFont(PDFFont):
PDFFont.__init__(self, descriptor, widths, default_width)
return
def __repr__(self):
return '<PDFCIDFont: basefont=%r, cidcoding=%r>' % (self.basefont, self.cidcoding)
def is_vertical(self):
return self.vertical

View File

@ -3,7 +3,7 @@ import sys, re
stderr = sys.stderr
from utils import choplist
STRICT = 1
STRICT = 0
## PS Exceptions