Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13763 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92661 invoked by uid 1010); 7 Nov 2004 05:41:33 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92548 invoked by uid 1007); 7 Nov 2004 05:41:30 -0000 Message-ID: <20041107054129.92546.qmail@pb1.pair.com> To: internals@lists.php.net Date: Sun, 07 Nov 2004 16:41:29 +1100 References: <20041106062158.78783.qmail@pb1.pair.com> <20041106183110.2926.qmail@pb1.pair.com> Lines: 29 Organization: Toowards Pty Ltd User-Agent: KNode/0.7.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Posted-By: 203.51.6.242 Subject: Re: Idea for underlining in GD text functions From: ttoohey@toowards.com (Tim Toohey) Ron Korving wrote: > Shouldn't you better discuss this with the gd people over at boutell.com? > > Ron Yes, perhaps I should. I take it that your point is that this kind of feature belongs in the underlying library rather than in PHP. PHP's gd extension is a wrapper around the libgd library to make it usable to PHP scripts, rather than a place to extend the features of libgd. Alas for the ImagePSText() function I don't think the gd people will be much help as it uses the t1lib library. While I might have some chance at getting the gd people's ear, I'm not sure I'll have much luck with t1lib (is there an active open development of t1lib?) So, given the above, and at the risk of being off-topic now, is the general approach I'm proposing, embedded control character sequences, a reasonable way to achieve the goal (underlining). Another approach that I had considered was a kind of HTML rendering mode, which really is simply another way of have embedded instructions in the string. This, to me, seems beyond the scope of a low-level graphics library like gd (or t1lib). Perhaps what is needed is a new library that sits between PHP and gd/t1lib to do these kind of higher-level text rendering jobs? Maybe that already exists and I just haven't come across it. Thanks, Tim