🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #556

Re: Underline font

#556
From: Vidiot
Date: Thu, 16 Apr 1992 20:51
61 lines
3199 bytes
In article <FJ.92Apr13112734@loke.iesd.auc.dk> fj@iesd.auc.dk (Frank Jensen) writes:
<In article <3245@vidiot.UUCP> brown@vidiot.UUCP (Vidiot) writes:
<
<   In article <1992Apr7.024443.20428@serval.net.wsu.edu> hakimian@yoda.eecs.wsu.edu (Karl Hakimian - staff) writes:
<   <This may be a stupid question, but how do you under line a word in a particular
<   <font?
<   <
<   <What I hope the answer is not is to draw a line under it. Fonts seem to come
<   <with underline information built in (ie. underline postion and underline width).
<   <How do you use this information.
<
<   You draw a line under it.  Sorry, but PostScript fonts do not have underline
<   stuff in them, only the info about the character itself.
<
<Not quite correct.  Here is the top portion of Utopia-Regular:
<
<%!PS-AdobeFont-1.0: Utopia-Regular 001.001
<%%CreationDate: Wed Oct  2 19:10:38 1991
<%%VMusage: 32987 39879
<%% Utopia is a registered trademark of Adobe Systems Incorporated.
<11 dict begin
</FontInfo 10 dict dup begin
</version (001.001) readonly def
</Notice (Copyright (c) 1989, 1991 Adobe Systems Incorporated.  All Rights Reserved.Utopia is a registered trademark of Adobe Systems Incorporated.) readonly def
</FullName (Utopia Regular) readonly def
</FamilyName (Utopia) readonly def
</Weight (Regular) readonly def
</ItalicAngle 0 def
</isFixedPitch false def
</UnderlinePosition -100 def
</UnderlineThickness 50 def
<end readonly def
<
<The FontInfo dictionary for the font may contain UnderlinePosition and
<UnderlineThickness.  The Adobe Font Metric Files Specification Version
<3.0 has the following to say about this info:
<
<UnderlinePosition number
<
<(Optional.)  Distance from the baseline for centering underlining
<strokes. This may be interpreted as a y-displacement for writing
<direction 0, and an x-displacement for writing direction 1.
<
<UnderlineThickness number
<
<(Optional.)  This is the stroke width for underlining, expressed in
<character coordinate space (proportional to the characters in the font
<program.)

All well and good.  Notice how it says (optional), not much good if it isn't
there.  My point was that each individual character doesn't have information
directly related to underlining.  That is what I believe the original poster
asked for.  You can obtain many things about a particular character, but
underlining doesn't appear to be one of them.

All relative I guess.
-- 
      harvard\     att!nicmad\          spool.cs.wisc.edu!astroatc!vidiot!brown
Vidiot  ucbvax!uwvax..........!astroatc!vidiot!brown
      rutgers/            INTERNET:vidiot!brown%astroatc.UUCP@spool.cs.wisc.edu
                                   brown@wi.extrel.com
Technical Details
Message-ID: <3256@vidiot.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!rutgers!uwvax!astroatc!vidiot!brown
References: <1992Apr7.024443.20428@serval.net.wsu.edu> <3245@vidiot.UUCP> <FJ.92Apr13112734@loke.iesd.auc.dk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!rutgers!uwvax!astroatc!vidiot!brown
From: brown@vidiot.UUCP (Vidiot)
Newsgroups: comp.lang.postscript
Subject: Re: Underline font
Message-ID: <3256@vidiot.UUCP>
Date: 16 Apr 92 20:51:29 GMT
Article-I.D.: vidiot.3256
References: <1992Apr7.024443.20428@serval.net.wsu.edu> <3245@vidiot.UUCP> <FJ.92Apr13112734@loke.iesd.auc.dk>
Reply-To: brown@vidiot.UUCP (Vidiot)
Organization: Vidiot's Hangout
Lines: 61