How to set font?

Yu Guo Victor.Yu.Guo at gmail.com
Wed Jan 31 15:04:54 PST 2007


Thanks!

In this , I found the utf-8, which should be what I am using.

In this file, there is:

0000 00FF ltor single Courier Courier-Bold Courier-Oblique Courier-BoldOblique
0100 01FF ltor single Courier Courier-Bold Courier-Oblique Courier-BoldOblique
0200 02FF ltor single Courier Courier-Bold Courier-Oblique Courier-BoldOblique
0300 03FF ltor single Symbol
0400 04FF ltor single Courier Courier-Bold Courier-Oblique Courier-BoldOblique
0500 05FF rtol single Courier
1E00 1EFF ltor single Courier Courier-Bold Courier-Oblique Courier-BoldOblique
2000 20FF ltor single Courier Courier-Bold Courier-Oblique Courier-BoldOblique
2100 21FF ltor single Courier Courier-Bold Courier-Oblique Courier-BoldOblique
2200 22FF ltor single Symbol
2300 23FF ltor single Symbol


I tried to replace all "Courier" above with "Times". Then, the printed font is changed.

Is this way right that I am replacing all "Courier" with other fonts?
Or I need set these lines using different fonts ?

YuGuo

> Yu Guo wrote:
> > Hi,
> >
> > I am writing a driver to convert raster data to commands and data of my printer. Now, my driver works on the CUPS 1.1.22.
> >
> > When I print a text file, I can see that the path is:
> >   texttops,pstops,pstoraster,mydriver.
> > And the file content can be printed corretly.
> >
> > But the font is always in Courier. In the PPD file, there is *DefaultFont: Courier and also a list of the font. I tried to set the font to others, but no work, the printing is still in Courier.
> >
> > So is there any way that I could change the font when I print a text file?
>
> The font is specified in the character set file in
> /usr/share/cups/charsets.
>
> --
> ______________________________________________________________________
> Michael Sweet, Easy Software Products           mike at easysw dot com
> Internet Printing and Document Software          http://www.easysw.com





More information about the cups-devel mailing list