From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85776 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: kpfonts, math, type 1 font Date: Tue, 7 Jan 2014 00:09:14 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1389049760 32356 80.91.229.3 (6 Jan 2014 23:09:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Jan 2014 23:09:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 07 00:09:28 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W0JIV-00047N-De for gctc-ntg-context-518@m.gmane.org; Tue, 07 Jan 2014 00:09:27 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B0FB1101FA; Tue, 7 Jan 2014 00:09:26 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5xHjcJq6BfQ0; Tue, 7 Jan 2014 00:09:24 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A06CB101EA; Tue, 7 Jan 2014 00:09:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B61B6101EA for ; Tue, 7 Jan 2014 00:09:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hoo8Cde+NXcB for ; Tue, 7 Jan 2014 00:09:21 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id D824A101E9 for ; Tue, 7 Jan 2014 00:09:20 +0100 (CET) Original-Received: from mail-bk0-x22f.google.com (mail-bk0-x22f.google.com [IPv6:2a00:1450:4008:c01::22f]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s06N9IB9029432 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 7 Jan 2014 00:09:19 +0100 Original-Received: by mail-bk0-f47.google.com with SMTP id mx12so9897bkb.6 for ; Mon, 06 Jan 2014 15:09:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=pUJzoyDxnk/ZtjfhyetypGXOSt9UhLUj+57iGTr7zfg=; b=x2sqh/ISeB3n8R5rwItCVQ7lJ+QWir8t/+ysTQaELjVUM7fEShuVrA7XbuIMMRm7wN rzZ/RGPk0cUiQMlseFuaAKCzTYSAnrQsTf+h4yMpUfIyy2xE/uFkrYk61X+kj8tn1vQc 4fIUo76QxLhs045jrp3JA9EXzV9oiVbnF1jl2ANMJUta/pN8mSFfCoF7diORP3mWK2AQ GkqtgR+rl8Hbpns47CLSy5IETs/Kzi11dYbo1bxOesJJZs8/LYCnOD5t0fIMBX5MtKMn ySHNJjCKB/xy0VrzfrmRWmuBqVrTgbzld6ZJe135jcnqiT7A62q9LI4OO44lYAurRCxb VBkQ== X-Received: by 10.205.14.197 with SMTP id pr5mr1919912bkb.33.1389049759142; Mon, 06 Jan 2014 15:09:19 -0800 (PST) Original-Received: from keima.localdomain (x2f2510e.dyn.telefonica.de. [2.242.81.14]) by mx.google.com with ESMTPSA id lr9sm55391732bkb.2.2014.01.06.15.09.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 Jan 2014 15:09:15 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1827) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::22f; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07LaL9jht - fb4482acc492 - 20140107 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85776 Archived-At: Am 06.01.2014 um 19:56 schrieb Elspeth McGullicuddy : > Hi everybody, > (best wishes for this new year by the way). > = > There is this font: > http://www.ctan.org/pkg/kpfonts > Which is a postscript type 1 font, text and math. > = > I've copied the files in the right places in the ${HOME}/texmf tree. > And a call to: > mtxrun --script fonts --list --all --pattern=3D*kp*, after a > mtxrun --script fonts --reload > seems to indicate that it is found by context all right. > = > But now I haven't got the faintest idea on how to use it in a ConTEXt > document -- text + math. > My ConTEXt is beta not older than a fortnight. > = > All examples I've found that could possibly apply were at least far > too complicate for my understanding, also likely outdated. Using a text font in type1-format is very easy, all you need is the afm and= the pfb-file. The font files are put in the tex folder and to use them in your document y= ou have to write a short typescript, below is a example how to use the urn = garamond font. \starttypescript [serif] [charter] \setups[font:fallback:serif] \definefontsynonym [Serif] [file:ugmr8a.afm] [features=3Dcomplete] \stoptypescript \definetypeface [mainface] [rm] [serif] [charter] [default] \setupbodyfont[mainface] \starttext \input knuth \stoptext The same has to be done for the kpfont but there is one problem, the archiv= e on cyan doesn=92t provide afm-files and you have to generate them yoursel= f. Since the font provides only tfm-files it would be also possible to them= but it=92s better to work with afm-files. Adding support for the math font requires more work because you have to wri= te also a Lua file where you specify which file is used for symbols, operat= or, letters etc. This isn=92t very complicated (you can just modify the fil= es for palatino or garamond math), you have to only look which files are us= ed for the math fonts. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________