TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Henk den Adel
date: 1996-12-02 22:06:26
subject: printersettings

Hi All,


+ The Situation:

OS/2 version 2.1, no patches or updates. I'm a commandline freak, got used
to computers by punched cards and paper tape. It's no use trying to convert
me into an icons clicker etc. I use OS/2 for working with multiple DOS
sessions and occasionally OS/2's Ghostview.


+ My problem:

I use a dot matrix printer, running in IBM 4201 Proprinter emulation. When
printing files within a DOS session, I use:

copy /b file lpt1

On the ?desktop? there is an icon "Printer", looking like a
typewriter with a sheet of paper. Clicking this icon with the right mouse
button I choose

     Open->Settings->Printer driver.

A ?sub desktop? pops up, then I choose Job properties, a new screen pops up
with several lists, one of which is "Default Font Typeface". This
list reads 6 items: System font, Draft 10, Draft 12, Draft 17.1, NLQ 10 and
NLQ 12.

I prefer a commandline tool which enables me to change the default font,
without browsing through numerous screens. So I want to write a tool, for
simplicity sake called "p", which gives me control over which
font is going to be the Default Font Typeface. Just p 17, p 12 or p n12 to
set the default font. A textmode application is preferable, since I did not
acquire the skills to write PM style programs.


+ My question:

How do I set the "Default Font Typeface" in plain C code?
(Borland BCC or IBM's ICC)

I have asked the local OS/2 programming guru for advice, unfortunately he
did not know the answer, nor could he find a solution in his docs, or even
give me a hint where to look for.

Does anyone of you know the answer, please let me know. The tool which I
hope to be able to develop, will be placed in the Public Domain.


Cu,
 Henk

--- GoldED 2.50+
* Origin: Henks Toolbox, Mail only, +31 10 220 54 61 (2:286/415)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 286/415 4 700 280/801 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.