🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #2530

Character side bearings

#2530
From: John Hascall
Date: Mon, 16 Jul 1990 14:38
18 lines
1049 bytes
Greetings fellow PSers,

   How does one determine the left side bearing of a character (in a
particular font)?  I am looking at section 5.5, "Font Metric Information",
of the Red Book, (pp 95-96), which says:  "The sequence

   charpath flattenpath pathbbox

may be used to determine character bounding boxes and side bearings."

   Well, I can see how it gives you the bounding box, but how do you
get the (left) side bearing?

Thanks,
John Hascall  /  hascall@atansoff.cs.iastate.edu

For those wondering what the devil I'm trying to do:  I am trying to position
a character so that the characters actual left edge is at a certain location.
Technical Details
Message-ID: <2259@dino.cs.iastate.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!dino!cs.iastate.edu!hascall

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!dino!cs.iastate.edu!hascall
From: hascall@cs.iastate.edu (John Hascall)
Newsgroups: comp.lang.postscript
Subject: Character side bearings
Message-ID: <2259@dino.cs.iastate.edu>
Date: 16 Jul 90 14:38:31 GMT
Sender: usenet@dino.cs.iastate.edu
Distribution: usa
Organization: Iowa State Univ.
Lines: 18