repo.or.cz
/
PyX
/
mjg.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
t1strip: access writet1 (from pdftex) for t1 font handling (including stripping)
[PyX/mjg.git]
/
pyx
/
t1strip
/
test_t1strip.py
blob
fa14a09f963d71be5d5677bb4b0329c967bf1b47
1
#!/usr/bin/env python
2
3
from
t1strip
import
t1strip
4
5
glyphs
= [
0
] *
256
6
for
c
in
"Hello World"
:
7
glyphs
[
ord
(
c
)] =
1
8
9
outfile
=
open
(
"cmr10.part.pfa"
,
"w"
)
10
t1strip
(
outfile
,
"cmr10.pfb"
,
glyphs
)
11
outfile
.
close
()