hewlett-packard home products & services support solutions How to buy
» contact hp
search:
more options
 
hp.com home


hp eurosign fonts



printable version
» 

business support home

tasks

» download drivers and software
» troubleshoot a problem
» setup, install and configure
» discover and use a product
» perform regular maintenance
» upgrade and migrate
» recycle and dispose

support resources

» contact support
» discussion groups
» frequently asked questions
» manuals
» parts information
» subscribe to notifications
» warranty information
» IT professionals
» developers
» help
» site map

developer's reference guide


Trademark Credits

Helvetica, Times Roman and Univers
are U.S. registered trademarks of Linotype AG and its subsidiaries.
CG Times
is a product of Agfa Corporation, Agfa Compugraphic Division.
Arial
and Times New Roman are U.S. registered trademarks of The Monotype Company, plc. Wingdings is a registered trademark of Microsoft Corporation.
Intellifont
is a U.S. registered trademark of Agfa Division, Miles Inc.
PostScript
is a trademark of Adobe Systems, Incorporated, which may be registered in certain jurisdictions.
TrueType
is a registered trademark of Apple Computer, Inc.
HP, LaserJet, PCL, PCL 5
and PCL 6 are U.S. registered trademarks of Hewlett Packard Company.

table of contents


Trademark Credits

Introduction

HP Eurosign Fonts

Font File Descriptions

Typeface Selection

PCL 5 Selection Commands

PCL 6 Selection Information

PostScript Font Selection Information

Symbol Set Information

Typeface Metrics

Calculating Bitmap Metrics

Calculating TrueType Metrics

Sample File Description


HP LASERJET PRINTERS AND THE EURO
A Non-Windows Euro Character Primer

Introduction

HP has produced two styles of Euro soft fonts, EuroSign and EuroSign Mono. Eurosign is a proportionally spaced typeface, while Eurosign Mono is a fixed-spaced or mono width typeface. These fonts contain only two characters - the space character and the Euro character. The design has allowed us to provide these fonts to you free of licensing, and we encourage you to use them in your applications that require a soft font solution.

It is the intent of this document, along with the accompanying sample files, to provide you with the information you need to implement the HP EuroSign Fonts.

font file descriptions


The HP EuroSign Fonts have been designed to work with all of the LaserJet printers that can accept soft fonts. This has been achieved by including a variety of soft font formats. To be specific, the HP EuroSign Fonts come in the following formats, TrueType, PCLeTTo, Bitmapped and PostScript Type 1 scalable.

Table 1 below provides a mapping between the HP Euro font files, their associated font format and pertinent charactersitics. Before you integrate any of these fonts into your application, make sure the targeted LaserJet printers can accept the font formats you choose!

table 1
file names resolution orientation spacing pitch point size
bitmapped eu300m10.sfp 300 dpi portrait mono 10 12
eu300m12.sfp 300 dpi portrait mono 12 10
eu300p08.sfp 300 dpi portrait proportional n/a 8
eu300p10.sfp 300 dpi portrait proportional n/a 10
eu300p12.sfp 300 dpi portrait proportional n/a 12
eu300m10.sfl 300 dpi landscape mono 10 12
eu300m12.sfl 300 dpi landscape mono 12 10
eu300p10.sfl 300 dpi landscape proportional n/a 10
eu300p12.sfl 300 dpi landscape proportional n/a 12
eu600m10.sfp 600 dpi portrait mono 10 12
eu600m12.sfp 600 dpi portrait mono 12 10
eu600p08.sfp 600 dpi portrait proportional n/a 8
eu600p10.sfp 600 dpi portrait proportional n/a 10
eu600p12.sfp 600 dpi portrait proportional n/a 12
PCLeTTo euromono.pcl all all mono n/a all
eurosign.pcl all all proportional n/a all
TrueType euromono.ttf all all mono n/a all
eurosign.ttf all all proportional n/a all
PostScript
Type 1
em-mem.ps all all mono n/a all
ep-mem.ps all all proportional n/a all
em-disk.ps all all mono n/a all
ep-disk.ps all all proportional n/a all

typeface selection


In order to use these fonts in the documents your application creates, you must supply the correct PCL 5, PCL 6 and/or PostScript font selection commands to the printer. In the tables that follow, you can find a summary of these commands.
PCL 5 selection commands - table 2
file name selection commands
eu300m10.sfp <esc>(80<esc>(s0p10h12v0s0b1070T
eu300m12.sfp <esc>(80<esc>(s0p12h10v0s0b1070T
eu300p08.sfp <esc>(80<esc>(s1p8v0s0b1070T
eu300p10.sfp <esc>(80<esc>(s1p10v0s0b1070T
eu300p12.sfp <esc>(80<esc>(s1p12v0s0b1070T
eu300m10.sfl <esc>(80<esc>(ss0p10h12v0s0b62510T
eu300m12.sfl <esc>(80<esc>(ss0p12h10v0s0b62510T
eu300p10.sfl <esc>(80<esc>(s1p10v0s0b62510T
eu300p12.sfl <esc>(80<esc>(s1p12v0s0b62510T
eu600m10.sfp <esc>(80<esc>(s0p10h12v0s0b1070T
eu600m12.sfp <esc>(80<esc>(s0p12h10v0s0b1070T
eu600p08.sfp <esc>(80<esc>(s1p8v0s0b1070T
eu600p10.sfp <esc>(80<esc>(s1p10v0s0b1070T
eu600p12.sfp <esc>(80<esc>(s1p12v0s0b1070T
euromono.pcl <esc>(80<esc>(s0p__v0s0b1070T
eurosign.pcl <esc>(80<esc>(s1p__v0s0b1070T

PCL 6 selection information - table 3
file name PCL 6 font name symbol set value
euromono.pcl [69 151 114 111 77 111 110 111] EuroMono 271
eurosign.pcl [69 151 114 111 83 105 103 110] EuroSign 271

PostScript font selection information - table 4
file name PostScript font name
em-mem.ps /Euro_Sign_Mono
ep-mem.ps /Euro_Sign
em-disk.ps* /Euro_Sign_Mono
ep-disk.ps* /Euro_Sign

symbol set information


You may have noticed that all of the HP EuroSign Fonts define the same symbol set. This symbol set is custom made, and includes a space character (32 decimal; 0x0020 Unicode) and the Euro character (101 decimal; 0x20AC Unicode). As you can see by examining the font data and sample files that are included with this document, the Euro has been assigned the same character code as the lowercase 'e'.

typeface metrics


This section provides the metric information for the Euro character. Table 5 below depicts each typeface and the Euro width value. The width value, expressed as HorzEsc, is taken either from the Bitmap or TrueType font directly. As a result, each value represents the width of the Euro relative to the Bitmap font resolution or the TrueType design window, respectively. You can find information for converting these data into PCL Units of Measure immediately following Table 5.

table 5
file name HorzEsc
eu300m10.sfp 30.0
eu300m12.sfp 25.0
eu300p08.sfp 24.0
eu300p10.sfp 30.0
eu300p12.sfp 36.0
eu300m10.sfl 30.0
eu300m12.sfl 25.0
eu300p10.sfl 30.0
eu300p12.sfl 36.0
eu600m10.sfp 60.0
eu600m12.sfp 50.0
eu600p08.sfp 49.0
eu600p10.sfp 60.0
eu600p12.sfp 73.0
euromono.pcl 1229
eurosign.pcl 1485

calculating bitmap metrics


In the case of bitmap typefaces, the metric data is resolution specific. The metric data describes the width of the Euro in either 1/300- or 1/600-inch increments. To convert this value inches, simply divide it by the appropriate resolution.


The following examples convert 300 and a 600 dpi, bitmap font metric data into inches:

eu300m10.sfp

30

----- = .10 inches per character

300

eu600p12.sfp

73

----- = .12167 inches per character

600

calculating TrueType metrics


In order to convert TrueType font metrics into PCL Units of Measure, you must use the following formula:

EMsize = round(c * b * dpi)

x = round(d/e * EMsize * uom/dpi)

Where:

EMsize = size of EM in device resolution dots

c = point size of font

b = inches per point

dpi = device resolution

x = desired metric value in units of measure

d = metric value in Design Units (HorzExt)

e = number of Design Units in the design EM

uom = PCL Units of Measure

As you can see, most of the values for these variables are supplied by your application, and depend upon the font selection criteria at print time. The exceptions are 'd' and 'e'. Table 5 supplies the value for the variable 'd', while 'e' is the constant value 2048.

Here's an example usage of the TrueType metric conversion formula supplied above.

TrueType Method:

Arial

11 point at 600 dpi, 300 uom

Assume the following values:

b = 1 inch/72 points

c = 11 points

d = 1485 Design Units

e = 2048 Design Units

dpi = 600 dots per inch

uom = 300 PCL Units of Measure

EMsize = round(11 * 1/72 * 600)

= round(91.66)

= 92 dots

x = round(1485/2048 * 92 * 300/600)

= round(33.354)

= 33 PCL Units of Measure

sample file description


We have provided some sample print jobs to help demonstrate the usage of the HP EuroSign Fonts. Table 6 provides a description of each sample. Each sample contains the font data as well as page data that selects and positions the Euro. Please feel free to use these files to aid your understanding of Euro implementation using HP's EuroSign Fonts.

table 6
file name description
example1.pcl PCL 5 print stream that downloads eu300m10.sfl and prints the Euro character in landscape orientation.
example2.pcl PCL 5 print stream that downloads eu600p12.sfp and prints the Euro character in portrait orientation.
example3.pcl PCL 5 print stream that downloads eurosign.pcl and prints the Euro character in portrait orientation.
example1.asm PCL 6 disassembled print stream that downloads eurosign.pcl and prints the Euro character in portrait orientation.
example1.ps PostScript print stream that creates a new font that contains the Euro, and prints the Euro character in portrait orientation.

» faq
» technical documents
» related links
privacy statement using this site means you accept its terms feedback to webmaster
© 1994-2003 Hewlett-Packard Company