[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problem with cibimos font



Hello

I had a problem with circ-tex. The problem was related to the font
cibimos, which contains e.g. transistor images. Everything was fine with
0-size transistors (when the circuit environment was specified with size
0), which use font size 600dpi, but if tried larger transistors,
actually the ones which used 864dpi font, texi2pdf couln't create the
derised pk font.

The problem was with the program mktexpk:

If I try the following, i get an error message:



fourier:~/tex# mktexpk --mfmode / --bdpi 600 --mag 1+264/600 --dpi 864 cibimos
mktexpk: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1+264/600; nonstopmode; input cibimos
This is METAFONT, Version 2.7182 (Web2C 7.4.5)

(/usr/share/texmf/fonts/source/public/circ/cibimos.mf
(/usr/share/texmf/fonts/source/public/circ/defcirc.mf
CIRC %<*cibimos>
CIRC \freecirc
CIRC \addCIRCfont cibimos
CIRC %</cibimos>
CIRC %<+doc> \optionline CIRC %<*cibimos,doc>
) (/usr/share/texmf/fonts/source/public/circ/csym.mf) [0] [1] [2] [3] [4]
[5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]
[21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35]
[36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50]
[51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65]
[66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79]
CIRC \cdefiviv npnPH T \CIRCcibimos 80 E C
CIRC %<+doc> {photo transistor}
[80] [81] [82] [83] [84] [85] [86] [87] )
Font metrics written on cibimos.tfm.
Output written on cibimos.1244gf (88 characters, 143336 bytes).
Transcript written on cibimos.log.
mktexpk: `mf-nowin -progname=mf \mode:=ljfour; mag:=1+264/600; nonstopmode; input cibimos' failed to make cibimos.864pk.
fourier:~/tex#


However, that worked on other fonts, such as cidiod:


fourier:~/tex# mktexpk --mfmode / --bdpi 600 --mag 1+264/600 --dpi 864 cidiod mktexpk: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1+264/600; nonstopmode; input cidiod
This is METAFONT, Version 2.7182 (Web2C 7.4.5)

(/usr/share/texmf/fonts/source/public/circ/cidiod.mf
(/usr/share/texmf/fonts/source/public/circ/csym.mf) [0] [1] [2] [3] [4]
[5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] )
Font metrics written on cidiod.tfm.
Output written on cidiod.864gf (20 characters, 23676 bytes).
Transcript written on cidiod.log.
mktexpk: /home/root/tex/cidiod.864pk: successfully generated.
/home/root/tex/cidiod.864pk
fourier:~/tex#



If i try making cibimos the following way, instead:




fourier:~/tex# mktexpk --mfmode / --bdpi 600 --mag 1+120/600 --dpi 864 cibimos
mktexpk: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1+120/600; nonstopmode; input cibimos
This is METAFONT, Version 2.7182 (Web2C 7.4.5)

(/usr/share/texmf/fonts/source/public/circ/cibimos.mf
(/usr/share/texmf/fonts/source/public/circ/defcirc.mf
CIRC %<*cibimos>
CIRC \freecirc
CIRC \addCIRCfont cibimos
CIRC %</cibimos>
CIRC %<+doc> \optionline CIRC %<*cibimos,doc>
) (/usr/share/texmf/fonts/source/public/circ/csym.mf) [0] [1] [2] [3] [4]
[5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]
[21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35]
[36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50]
[51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65]
[66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79]
CIRC \cdefiviv npnPH T \CIRCcibimos 80 E C
CIRC %<+doc> {photo transistor}
[80] [81] [82] [83] [84] [85] [86] [87] )
Font metrics written on cibimos.tfm.
Output written on cibimos.864gf (88 characters, 95396 bytes).
Transcript written on cibimos.log.
mktexpk: /home/root/tex/cibimos.864pk: successfully generated.
/home/root/tex/cibimos.864pk
fourier:~/tex#


Everything works fine with circ-tex, and the transistors show up, even
on other than dpi600.

So, for other fonts like cidiod it seems that dpi -value and mag have a
linear ratio 600, but not for cibimos. For cibimos the relationship is
non-linear, like that:

dpi  600 <---> mag 1
dpi  864 <---> mag 1+120/600
dpi  973 <---> mag 1+164/600
dpi 1244 <---> mag 1+264/600


Maybe circ-tex should be aware of that detail, so it could make the
fonts correctly, also for cibimos, so transistors could be viewed.

mktexpk uses the program mf-nowin to create a gf-font. The reason
mktexpk didn't work for cibimos is that the output file of mf-nowin
doen't match the mag value:



fourier:~/tex# mf-nowin -progname=mf "\mode:=ljfour; mag:=1+264/600; nonstopmode; input cibimos"
This is METAFONT, Version 2.7182 (Web2C 7.4.5)

(/usr/share/texmf/fonts/source/public/circ/cibimos.mf
(/usr/share/texmf/fonts/source/public/circ/defcirc.mf
CIRC %<*cibimos>
CIRC \freecirc
CIRC \addCIRCfont cibimos
CIRC %</cibimos>
CIRC %<+doc> \optionline CIRC %<*cibimos,doc>
) (/usr/share/texmf/fonts/source/public/circ/csym.mf) [0] [1] [2] [3] [4]
[5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]
[21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35]
[36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50]
[51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65]
[66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79]
CIRC \cdefiviv npnPH T \CIRCcibimos 80 E C
CIRC %<+doc> {photo transistor}
[80] [81] [82] [83] [84] [85] [86] [87] )
Font metrics written on cibimos.tfm.
Output written on cibimos.1244gf (88 characters, 143336 bytes).
Transcript written on cibimos.log.
fourier:~/tex#



The output is cibimos.1244gf, not cibimos.864gf, so mktexpk can't
convert it to cibimos.864pk.

The related packages i have installed on Debian are:

circ-tex_1.0f.0-1_all.deb
tetex-bin_2.0.2-31_i386.deb

I also sent the circuit.tex file where the problem occurred as an
attachment.



regards,
 Sami Kivistö



Reply to: