From: "Zhichu Chen" <zhichu.chen@gmail.com>
Subject: Still have no idea about how to specify fonts in JavaScript fields.
Date: Wed, 22 Nov 2006 20:14:28 +0800 [thread overview]
Message-ID: <769ba7780611220414m4ff61678rf3050912f086a8d9@mail.gmail.com> (raw)
Hello everyone,
Thanks for suggesting some great documents last time. But after
looking up in AcroJS Guide, and PDF Reference , etc., I still don't
know how can I use special fonts in a JavaScript field.
My JS code is:
------------------------------------------------------------------------------------------
function start_clock()
{ var thetime=new Date();
var nhours=thetime.getHours();
var nmins=thetime.getMinutes();
var nsecn=thetime.getSeconds();
if (nhours<0) nhours="0"+nhours;
if (nsecn<10) nsecn="0"+nsecn;
if (nmins<10) nmins="0"+nmins;
font.Digital = font.CourBI ;
vv = this.getField("time.clock") ;
if (vv) { vv.value = nhours+":"+nmins+":"+nsecn;
vv.readonly = true ;
vv.textColor = color.red ;
vv.textFont = font.Digital ; // font.TimesBI Cour HelvB Symbol ZapfD
this.dirty = false }}
timeout=app.setInterval('start_clock()',1000);
------------------------------------------------------------------------------------------
I guess there are already some definitions about ``font.CourBI'' but
where can I find the original code of the definition which I can
imitate it to create a new font.
Thanks
--
Sincerely yours,
Chen
----------------------------------------------------------------
Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
| www.sinap.ac.cn
----------------------------------------------------------------
next reply other threads:[~2006-11-22 12:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-22 12:14 Zhichu Chen [this message]
2006-11-22 14:03 ` Hans Hagen
2006-11-23 2:46 ` Zhichu Chen
2006-11-23 11:42 ` Hans Hagen
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=769ba7780611220414m4ff61678rf3050912f086a8d9@mail.gmail.com \
--to=zhichu.chen@gmail.com \
--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).