From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44487 Path: news.gmane.org!not-for-mail From: "Mikael Persson" Newsgroups: gmane.comp.tex.context Subject: Re: Utopia and Fourier fonts Date: Wed, 1 Oct 2008 17:43:25 +0200 Message-ID: References: <48DFCB97.2090702@wxs.nl> <94678F4A-E6F3-4897-B63D-8E474C46631A@gmail.com> <98B77528-8CEF-438E-965C-6F453B369336@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1222875920 3953 80.91.229.12 (1 Oct 2008 15:45:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2008 15:45:20 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 01 17:46:17 2008 connect(): Connection refused 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 lo.gmane.org with esmtp (Exim 4.50) id 1Kl3tz-0000tA-CL for gctc-ntg-context-518@m.gmane.org; Wed, 01 Oct 2008 17:46:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EAB071FE91; Wed, 1 Oct 2008 17:45:04 +0200 (CEST) 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 08532-02-4; Wed, 1 Oct 2008 17:44:02 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DEBED1FE1B; Wed, 1 Oct 2008 17:44:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EE6541FE1B for ; Wed, 1 Oct 2008 17:43:59 +0200 (CEST) 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 07758-03-4 for ; Wed, 1 Oct 2008 17:43:26 +0200 (CEST) Original-Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.191]) by ronja.ntg.nl (Postfix) with ESMTP id E660F1FE03 for ; Wed, 1 Oct 2008 17:43:25 +0200 (CEST) Original-Received: by fk-out-0910.google.com with SMTP id 18so163834fks.2 for ; Wed, 01 Oct 2008 08:43:25 -0700 (PDT) Original-Received: by 10.180.246.10 with SMTP id t10mr4363551bkh.104.1222875805625; Wed, 01 Oct 2008 08:43:25 -0700 (PDT) Original-Received: by 10.181.37.10 with HTTP; Wed, 1 Oct 2008 08:43:25 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:44487 Archived-At: On Tue, Sep 30, 2008 at 8:43 AM, Mikael Persson wrote: > On Mon, Sep 29, 2008 at 10:22 PM, Wolfgang Schuster > wrote: >> >> Am 29.09.2008 um 20:35 schrieb Mikael Persson: >> >>> On Mon, Sep 29, 2008 at 11:56 AM, Wolfgang Schuster >>> wrote: >>>> >>>> Am 29.09.2008 um 11:31 schrieb Mikael Persson: >>>> >>>>> On Sun, Sep 28, 2008 at 9:34 PM, Wolfgang Schuster >>>>> wrote: >>>>>> >>>>>> Am 28.09.2008 um 21:21 schrieb Aditya Mahajan: >>>>>> >>>>>>>>>> Some comments: >>>>>>>>>> * As a mathematician I was a bit tired of the computer modern >>>>>>>>>> fonts (I >>>>>>>>>> really like them, but I see them to often), so I decided to go >>>>>>>>>> with >>>>>>>>>> the utopia/fourier fonts. This forced me to work with mkii, >>>>>>>>>> since I >>>>>>>>>> did not get these fonts to work with mkiv (This is still a >>>>>>>>>> problem, I >>>>>>>>>> am not sure how to go on with it for future documents). >>>>>>>>> >>>>>>>>> looks quite nice, i also like the font size >>>>>>>> >>>>>>>> Thanks. What about getting these fonts to work in mkiv? Must >>>>>>>> there be >>>>>>>> some change in the fonts? Some files in ConTeXt? (they were >>>>>>>> perfectly >>>>>>>> working in older mkii) >>>>>>> >>>>>>> Fourier and Uptopia should work with mkiv. I will check why they >>>>>>> are >>>>>>> not >>>>>>> working at present. >>>>>> >>>>>> Utopia use "encoding-filename" and MkIV needs the "filename" to >>>>>> load >>>>>> the fonts. >>>>>> >>>>>> Here is a complete typescript for utopia (without fake slanted and >>>>>> caps style). >>>>>> >>>>>> \starttypescript [serif] [utopia] >>>>>> \setups[font:fallback:serif] >>>>>> \definefontsynonym [Serif] [Utopia-Regular] >>>>>> \definefontsynonym [SerifItalic] [Utopia-Italic] >>>>>> \definefontsynonym [SerifBold] [Utopia-Bold] >>>>>> \definefontsynonym [SerifBoldItalic] [Utopia-BoldItalic] >>>>>> \stoptypescript >>>>>> >>>>>> \starttypescript [serif] [utopia] >>>>>> \definefontsynonym [Utopia-Regular] [file:putr8a] >>>>>> [features=default] >>>>>> \definefontsynonym [Utopia-Italic] [file:putri8a] >>>>>> [features=default] >>>>>> \definefontsynonym [Utopia-Bold] [file:putb8a] >>>>>> [features=default] >>>>>> \definefontsynonym [Utopia-BoldItalic] [file:putbi8a] >>>>>> [features=default] >>>>>> \stoptypescript >>>>>> >>>>>> \starttypescript [utopia] >>>>>> \definetypeface [\typescriptone] [rm] [serif] [utopia] [default] >>>>>> \stoptypescript >>>>>> >>>>>> \endinput >>>>>> >>>>>> Wolfgang >>>>> >>>>> Thank you Wolfgang, but this does not work for me with latest >>>>> minimals. (I have downloaded utopia(+fourier) and they show up in >>>>> mkii.) I put your lines in a file and add >>>>> \setupbodyfont[utopia][ec/8r/...] %tried several and also without >>>>> this last [] >>>>> \starttext >>>>> test >>>>> \stoptext >>>>> >>>>> LuaTeX just compiles and replaces these fonts by lm. >>>>> >>>>> luatools putr8a.pfb gives the resulting location of the pfb file >>>>> so it >>>>> actually finds the font. >>>>> >>>>> Do I misuse it? >>>> >>>> Try my test file (I saved the typescript above in type-utopia.tex). >>>> >>>> \usetypescriptfile[type-utopia] >>>> >>>> \usetypescript[utopia] >>>> \setupbodyfont[utopia] >>>> >>>> \starttext >>>> >>>> \tf ABC abc 123 \par >>>> \it ABC abc 123 \par >>>> \bf ABC abc 123 \par >>>> \bi ABC abc 123 \par >>>> >>>> \stoptext >>>> >>>> Wolfgang >>> >>> Mojca did send me a list with the necessary files for fourier+utopia. >>> I put them in >>> >>> http://www.math.chalmers.se/~mickep/fourierandutopia.zip >>> >>> if someone wants to test. I also attach a small (I guess noncomplete) >>> typescript file type-myfourier.tex (the myfourier not to clash with >>> something previously defined) and a file ftest.tex which indeed gives >>> the fourier fonts, but with the error as in >>> http://www.math.chalmers.se/~mickep/ftest.pdf mentioned in a previous >>> mail. >>> >>> I guess this is not the correct way to write typescripts for these >>> fonts in mkiv, but I dont know how to :( >>> >>> Best regards, Mikael >>> >>> PS: Thank you Mojca for giving this list of files and also explain >>> which of the otf/ttf/type1 files that needs typescripts. >> >> Math fonts are not available in 'ec' encoding, you have to use 'default' >> and why do you use the tfm files for Utopia, the afm files are enough. >> >> Here is my version: >> >> \starttypescript [serif] [utopia] >> \setups[font:fallback:serif] >> \definefontsynonym [Serif] [Utopia-Regular] >> \definefontsynonym [SerifItalic] [Utopia-Italic] >> \definefontsynonym [SerifBold] [Utopia-Bold] >> \definefontsynonym [SerifBoldItalic] [Utopia-BoldItalic] >> \stoptypescript >> >> \starttypescript [serif] [utopia] >> \definefontsynonym [Utopia-Regular] [file:putr8a] >> [features=default] >> \definefontsynonym [Utopia-Italic] [file:putri8a] >> [features=default] >> \definefontsynonym [Utopia-Bold] [file:putb8a] >> [features=default] >> \definefontsynonym [Utopia-BoldItalic] [file:putbi8a] >> [features=default] >> \stoptypescript >> >> \starttypescript [math] [fourier] [name] >> \definefontsynonym [MathRoman] [Utopia-Regular] >> \definefontsynonym [MathItalic] [futmii] >> \definefontsynonym [MathSymbol] [futsy] >> \definefontsynonym [MathExtension] [fourier-mex] >> \loadmapfile[fourier.map] >> \stoptypescript >> >> \starttypescript [fourier,utopia] >> \definetypeface [\typescriptone] [rm] [serif] [utopia] [default] >> \definetypeface [\typescriptone] [ss] [sans] [modern] [default] >> [rscale=1.07] >> \definetypeface [\typescriptone] [tt] [mono] [modern] [default] >> [rscale=1.07] >> \definetypeface [\typescriptone] [mm] [math] [fourier] [default] >> [encoding=default] >> \usemathcollection[fou] >> \quittypescriptscanning >> \stoptypescript >> >> Wolfgang > > Thank you very much Wolfgang! > > I did not have the afm files, and that is why it did not work. So, > with your latest type script file, I get the utopia and fourier fonts. > However, the old problem that $\hat{f}$ places the hat on f at the > wrong place and that { does not stretch (and probably much more) is > still there, try > > %%% > \usetypescriptfile[type-wolfgang] > \usetypescript[utopia] > \setupbodyfont[utopia] > \starttext > \startformula > \hat f(x)= > \startcases > \NC x \MC x>0\NR > \NC -x \MC x<0\NR > \stopcases > \stopformula > \stoptext > %%% > > Best regards, Mikael > Wolfgang (or someone else), can you explain why this misbehaviour occurs? Best regards, Mikael ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________