From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31928 Path: news.gmane.org!not-for-mail From: "Zhichu Chen" Newsgroups: gmane.comp.tex.context Subject: Still have no idea about how to specify fonts in JavaScript fields. Date: Wed, 22 Nov 2006 20:14:28 +0800 Message-ID: <769ba7780611220414m4ff61678rf3050912f086a8d9@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1164197733 13842 80.91.229.2 (22 Nov 2006 12:15:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Nov 2006 12:15:33 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 22 13:15:30 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gmr0a-0003G4-Va for gctc-ntg-context-518@m.gmane.org; Wed, 22 Nov 2006 13:15:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 33CE91FE9A; Wed, 22 Nov 2006 13:14:15 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09358-03-5; Wed, 22 Nov 2006 13:14:05 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 634921FEB3; Wed, 22 Nov 2006 13:14:05 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 03CAF1FEB3 for ; Wed, 22 Nov 2006 13:14:03 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09358-03-4 for ; Wed, 22 Nov 2006 13:13:57 +0100 (CET) Original-Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by ronja.ntg.nl (Postfix) with SMTP id 7E7AA1FEB5 for ; Wed, 22 Nov 2006 13:13:57 +0100 (CET) Original-Received: by py-out-1112.google.com with SMTP id f47so97711pye for ; Wed, 22 Nov 2006 04:14:28 -0800 (PST) Original-Received: by 10.35.34.20 with SMTP id m20mr844885pyj.1164197668180; Wed, 22 Nov 2006 04:14:28 -0800 (PST) Original-Received: by 10.35.29.7 with HTTP; Wed, 22 Nov 2006 04:14:28 -0800 (PST) Original-To: "mailing list for ConTeXt users" Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31928 Archived-At: 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 ----------------------------------------------------------------