Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(71)  |  Call(41)  |  Derive(0)  |  Import(30)
Wraps up CIDFont to hide explicit encoding choice;
encodes text for output as UTF16.

lang should be one of 'jpn',chs','cht','kor' for now.
if vertical is set, it will select a different widths array
and possibly glyphs for some punctuation marks.

halfWidth is only for Japanese.

(more...)

src/d/j/django-admin-report-HEAD/example/lib/reportlab/pdfbase/_can_cmap_data.py   django-admin-report(Download)
 
from reportlab.pdfbase._cidfontdata import defaultUnicodeEncodings
from reportlab.pdfbase.cidfonts import UnicodeCIDFont
 
 
        #this does just about all of it for us, as all the info
        #we need is present.
        font = UnicodeCIDFont(fontName)
 
        widthsByCID = font.face._explicitWidths

src/d/j/django-admin-report-HEAD/example/lib/reportlab/lib/codecharts.py   django-admin-report(Download)
        font = pdfmetrics.getFont(fontName)
    except KeyError:
        font = cidfonts.UnicodeCIDFont(fontName)
        pdfmetrics.registerFont(font)
 

src/m/w/mwlib.ext-0.13.2/upstream-src/src/reportlab/pdfbase/_can_cmap_data.py   mwlib.ext(Download)
 
from reportlab.pdfbase._cidfontdata import defaultUnicodeEncodings
from reportlab.pdfbase.cidfonts import UnicodeCIDFont
 
 
        #this does just about all of it for us, as all the info
        #we need is present.
        font = UnicodeCIDFont(fontName)
 
        widthsByCID = font.face._explicitWidths

src/i/t/itools-0.75.1/pdf/pml.py   itools(Download)
# CJK
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.cidfonts import UnicodeCIDFont
 
 
# CJK font registration
# register font for simplified Chinese
pdfmetrics.registerFont(UnicodeCIDFont('STSong-Light'))
# register font for Japanese
pdfmetrics.registerFont(UnicodeCIDFont('HeiseiMin-W3'))
# register font for Korean
pdfmetrics.registerFont(UnicodeCIDFont('HYSMyeongJo-Medium'))

src/r/e/reportlab-3.1.8/src/reportlab/pdfbase/_can_cmap_data.py   reportlab(Download)
 
from reportlab.pdfbase._cidfontdata import defaultUnicodeEncodings
from reportlab.pdfbase.cidfonts import UnicodeCIDFont
 
 
        #this does just about all of it for us, as all the info
        #we need is present.
        font = UnicodeCIDFont(fontName)
 
        widthsByCID = font.face._explicitWidths

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/python/Lib/site-packages/sk1libs/libpdf/pdfbase/_can_cmap_data.py   Spherebot-Host-GUI(Download)
 
from reportlab.pdfbase._cidfontdata import defaultUnicodeEncodings
from reportlab.pdfbase.cidfonts import UnicodeCIDFont
 
 
        #this does just about all of it for us, as all the info
        #we need is present.
        font = UnicodeCIDFont(fontName)
 
        widthsByCID = font.face._explicitWidths

src/i/t/itools-HEAD/pdf/pml.py   itools(Download)
# CJK
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.cidfonts import UnicodeCIDFont
 
 
# CJK font registration
# register font for simplified Chinese
pdfmetrics.registerFont(UnicodeCIDFont('STSong-Light'))
# register font for Japanese
pdfmetrics.registerFont(UnicodeCIDFont('HeiseiMin-W3'))
# register font for Korean
pdfmetrics.registerFont(UnicodeCIDFont('HYSMyeongJo-Medium'))

src/r/e/ReportLab-HEAD/src/reportlab/pdfbase/_can_cmap_data.py   ReportLab(Download)
 
from reportlab.pdfbase._cidfontdata import defaultUnicodeEncodings
from reportlab.pdfbase.cidfonts import UnicodeCIDFont
 
 
        #this does just about all of it for us, as all the info
        #we need is present.
        font = UnicodeCIDFont(fontName)
 
        widthsByCID = font.face._explicitWidths

src/m/w/mwlib.ext-0.13.2/upstream-src/src/reportlab/lib/codecharts.py   mwlib.ext(Download)
        font = pdfmetrics.getFont(fontName)
    except KeyError:
        font = cidfonts.UnicodeCIDFont(fontName)
        pdfmetrics.registerFont(font)
 

src/r/e/reportlab-3.1.8/src/reportlab/lib/codecharts.py   reportlab(Download)
        font = pdfmetrics.getFont(fontName)
    except KeyError:
        font = cidfonts.UnicodeCIDFont(fontName)
        pdfmetrics.registerFont(font)
 

  1 | 2 | 3 | 4  Next