From: "Adam Lindsay" <atl@comp.lancs.ac.uk>
Subject: Re: texfont bugs
Date: Wed, 24 Sep 2003 17:21:36 +0100 [thread overview]
Message-ID: <20030924162137.6653@news.comp.lancs.ac.uk> (raw)
In-Reply-To: <5.2.0.9.1.20030924171610.01aed7f0@server-1>
[-- Attachment #1: Type: text/plain, Size: 1815 bytes --]
That still didn't work, but it was a lot clearer to figure out what to do.
So with a little help from the Camel book, I figured out how to wrap the
conditional 'use' in a way that works (well, compiles) on my (non-Win32)
system at least:
my $IsWin32;
BEGIN {
$IsWin32 = ($^O =~ /MSWin32/i);
if ($IsWin32) {
require Win32::API; import Win32::API;
}
}
I'm sure there are Perl wizards out there who know how to do this sort of
thing much more elegantly.
Cheers,
adam
Next up: how to use this to steal the Lucida fonts from Java on Mac OS X...
Hans Hagen said this at Wed, 24 Sep 2003 17:17:08 +0200:
>At 14:45 24/09/2003 +0100, you wrote:
>
>>Looks like the current texfont is a bit broken right now. I believe it's
>>the introduction of the "if ($IsWin32) " block: the pragma "use
>>Win32::API" doesn't seem to work within the conditional block.
>
>can you try the attached version?
>
>Hans
>-------------------------------------------------------------------------
> Hans Hagen | PRAGMA ADE | pragma@wxs.nl
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
>-------------------------------------------------------------------------
> information: http://www.pragma-ade.com/roadmap.pdf
> documentation: http://www.pragma-ade.com/showcase.pdf
>-------------------------------------------------------------------------
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Adam T. Lindsay atl@comp.lancs.ac.uk
Computing Dept, Lancaster University +44(0)1524/594.537
Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
[-- Attachment #2: texfont-atl.zip --]
[-- Type: application/zip, Size: 9920 bytes --]
prev parent reply other threads:[~2003-09-24 16:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-24 13:45 Adam Lindsay
2003-09-24 15:17 ` Hans Hagen
2003-09-24 16:21 ` Adam Lindsay [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030924162137.6653@news.comp.lancs.ac.uk \
--to=atl@comp.lancs.ac.uk \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).