Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Druckausgabe über LPT1 auf Netzwerkdrucker aber nur in kleiner Courier-Schrift (muß größer werden) #5210

Open
2 tasks done
Dirk-Richter opened this issue Sep 13, 2024 · 5 comments
Labels

Comments

@Dirk-Richter
Copy link

Question

Guten Tag,
habe DOSBOX-X installiert eine alte KHK Software(DOS) installiert kann über LPT1 -- Netzwerkdrucker unter Win 11pro drucken. Nun ist mein Problem-- ich bekomme die Schriftart nicht geändert (immer Courier klein) wenn ich in der DOSBOX-X drucke kommt auch nur Diese Schriftart. Wer kann mir da helfen??
MfG

Have you checked that no similar question(s) exist?

  • I have searched and didn't find any similar question.

Code of Conduct & Contributing Guidelines

  • I agree to follow the code of conduct and the contributing guidelines.
@Allofich
Copy link
Contributor

Anyone familiar with this feature (printing with different fonts)? I just tried to use it, putting a .ttf font in the default FONTS folder (fontpath = FONTS under [printer] in dosbox-x.conf) and specifying the .ttf file for the "font" value under [ttf] in dosbox-x.conf. I then printed from the "edit" program in DOSBox-X, but the produced .png uses courier font, not the font I specified. I also tried specifying a Windows-included font as the .conf file comment says, but no change.

Since I've never used the feature before I don't know if I'm not using it right, or if there is a bug.

@rderooy
Copy link
Contributor

rderooy commented Sep 17, 2024

I don't recall there being a way to set the font point size for the emulated Epson printer. And quickly looking at the Guide: https://dosbox-x.com/wiki/Guide%3ASetting-up-printing-in-DOSBox%E2%80%90X I don't see any such option listed.

TBH, printing is a feature that sees very little activity. The emulated Epson printer for instance can have weird rendering behaviour at non-default settings. e.g. in the Windows 3.1 Epson printer driver options, changing the output resolution from the default 180x180 to something else will cause corrupted output.

That is also why I normally suggest to use a Postscript printer option in the DOS application, and just save or redirect the output on the host to convert Postscript to PDF. This gives a much cleaner output if done correctly.

@Allofich
Copy link
Contributor

Looking at the question again, maybe they did want to change font size. I thought they wanted to change the font to something other than Courier so was trying to do that, but couldn't do so even though that's supposed to be possible.

@rderooy
Copy link
Contributor

rderooy commented Sep 18, 2024

From the description, I think he is selecting a different font type in the DOS application and it is not working as expected. But this depends on a combination of the DOS application (or rather its printer driver), and the emulated Epson printer implementation in DOSBox-X (which is not great).

Nobody is maintaining the emulated Epson printer implementation.

@maron2000
Copy link
Contributor

Just a workaround.
If you put a ttf font where specified in fontpath and rename it to courier.ttf the printout will use that font.
The image below uses Nouveau_IBM.ttf.
image

Explanation of fontpath in the Wiki

fontpath

    Default value: FONTS

The path (directory) where the TrueType fonts (courier.ttf, ocra.ttf, roman.ttf, sansserif.ttf, script.ttf) are stored. Defaults to the FONTS subdirectory in the current working directory (or where the DOSBox-X executable is located).

TrueType fonts are used when printing text to the virtual Epson printer. They are not used when printing in graphics mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants