Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to generate a bitmap font > 600dpi?

3 views
Skip to first unread message

bartek maj

unread,
Jun 13, 2001, 9:35:30 AM6/13/01
to
hello,

I would like to ask how to force miktex to generate the bitmap fonts at
the resolutions greater than 600dpi (default device: ljfour)? should I
change any line at the configuration file or make some new formats etc?
please help.

sincerely,
bartek

Gert und Ulrike Fischer

unread,
Jun 13, 2001, 10:19:02 AM6/13/01
to

bartek maj schrieb:

In YAP change under view/option the display- and/or printerdevice. Then
when you preview or print a file, YAP will generate the appropriate
fonts.

Ulrike Fischer

Dan Luecking

unread,
Jun 14, 2001, 1:35:44 PM6/14/01
to
bartek maj <barte...@usa.net> wrote in message news:<MPG.15918a8dd...@news.vogel.pl>...

In YAP, under View/Options adjust the appropriate Display and Printer
settings.

For dvips, edit texmf\dvips\config\config.ps in three places: The
metafont mode line (line beginning with M), the resolution lines
(lines beginning with D, X and Y) and perhaps also the Other Resolutions
(line beginning with R).

For pdftex/pdflatex, edit the file texmf\pdftex\config\pdftex.cfg and change
(or add) the line for pk_resolution. Mine says:
pk_resolution 600
but I can't remember if that was already there or I added it. You generally
want to avoid pk fonts in pdf output anyway so this is maybe not crucial.
(However, pdftex really _should_ have a way to also set the metafont mode.
Currently it relies on makepk to guess the mode from the resolution.)

You may also want to edit the file texmf\metafont\misc\modes.mf. Near the
end, where it says
localfont:=ljfour;
replace the ljfour with some mode name chosen from the mode_defs in the
rest of the file. (Reading this file is also the way to find out what is
acceptable in editing config.ps mentioned above.)

Perhaps newer MiKTeX will have a config program that will do all these
things for you.

Dan Luecking

bartek maj

unread,
Jun 15, 2001, 7:08:30 AM6/15/01
to
hello again,

In article <66e0420f.01061...@posting.google.com>,
luec...@uark.edu says...
> > hello,
>
> [...]


> For dvips, edit texmf\dvips\config\config.ps in three places: The
> metafont mode line (line beginning with M), the resolution lines
> (lines beginning with D, X and Y) and perhaps also the Other Resolutions
> (line beginning with R).

> [...]


> You may also want to edit the file texmf\metafont\misc\modes.mf. Near the
> end, where it says
> localfont:=ljfour;
> replace the ljfour with some mode name chosen from the mode_defs in the
> rest of the file. (Reading this file is also the way to find out what is
> acceptable in editing config.ps mentioned above.)
>

> Dan Luecking

thanks Dan, Gert and Ulrike. it works, at least partially :-). I changed
appropriate D, X, Y, R lines in config.ps (it is the resolution from 600
to 1200). I also modified the definition of ljfour in modes.mf, just
by putting again 1200 instead of 600. when I run dvips with option -D
1200 it's fine: the font is generated. but when I run dvips without this
option the page is blank. the worse situation is when I do all
modifications but instead of 1200 I put 2400. dvips creates 1200dpi font
when run with option -D 1200 but again creates a blank page when run with
option -D 2400 or no option at all. I've tried to watch the
appropriate font log file but it's empty. then I took a screenshot to
contemplate all the messages. here they are:

output written on humpll10.600gf
[...]
gftopk humpll10.2400gf humpll10.pk
[...]
humpll10.2400gf: No such file or directory

and I don't know what it's going on.

Although it is fine with me that I can make 1200dpi font (of course, 2400
would be better) I just want to understand why it goes as it does. if you
have any suggestions or ideas, please share them with me.

again, thank you all
best regards,
bartek


Gert und Ulrike Fischer

unread,
Jun 18, 2001, 6:46:07 AM6/18/01
to

bartek maj schrieb:

I don't think it was a good idea to change the definition of ljfour.
There are modes with resolution 1200 and 2400 already defined in
modes.mf. Why don't you use that modes?

Change the line with M in config.ps, or better make you a personal
config-file config.my and use that with dvips -P my.

Ulrike Fischer

bartek maj

unread,
Jun 18, 2001, 7:54:03 AM6/18/01
to
> I don't think it was a good idea to change the definition of ljfour.
> I don't think it was a good idea to change the definition of ljfour.
> There are modes with resolution 1200 and 2400 already defined in
> modes.mf. Why don't you use that modes?

well, you're right. I just wanted to make a "fast-check" of the ideas to
be sure they work... suppose I'll add my mode to modes.mf based on
ljfour.

best regards,
bartek

Gert und Ulrike Fischer

unread,
Jun 18, 2001, 8:37:10 AM6/18/01
to

bartek maj schrieb:


>
> > I don't think it was a good idea to change the definition of ljfour.
> > There are modes with resolution 1200 and 2400 already defined in
> > modes.mf. Why don't you use that modes?
>
> well, you're right. I just wanted to make a "fast-check" of the ideas to
> be sure they work... suppose I'll add my mode to modes.mf based on
> ljfour.

There is another file you perhaps need to take in account: mfmodes in
miktex/config. I'm not sure, but I think that at least YAP needs this
file to connect a mode with a resolution.

You should be aware that there not only the problem of how metafont
should be called to make fonts but also the problem where should the
fonts be stored and retrieved. The directory-structure is a combination
of the mode-name, the fontname and a number that has been build of the
fontsize and the resolution.
You can confuse the system if you are changing on the fly the resolution
of a mode, or trying to use a mode with a resolution it doesn't know.

Ulrike Fischer

0 new messages