[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rendering of fixed-width fonts
From: |
Adam Fedor |
Subject: |
Re: Rendering of fixed-width fonts |
Date: |
Tue, 15 Mar 2005 10:38:44 -0700 |
On Mar 15, 2005, at 7:33 AM, Adrian Robert wrote:
This leads to the next question -- is it possible to detect at runtime
whether you are running under Art or Xlib? (So as to change rendering
strategies.)
In a way, yes. You can check for the backend contexts, like this:
if (GSClassFromName("ARTContext") != nil)
...
Is there any more efficient way to render with regular spacing than
repeated calls to moveto and show?
Try DPSxyshow and variants.
Sllightly OT, there are no DPS commands on OS X, right? You have to
use the Quartz functions, which all start with "CG"? (The API does
not look as clean as DPS, but hopefully it grows on one?)
Yes.