From owner-freebsd-questions@FreeBSD.ORG Tue Jan 21 13:31:00 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 19237E2C for ; Tue, 21 Jan 2014 13:31:00 +0000 (UTC) Received: from wp376.webpack.hosteurope.de (wp376.webpack.hosteurope.de [IPv6:2a01:488:42::50ed:8591]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C96251D8D for ; Tue, 21 Jan 2014 13:30:59 +0000 (UTC) Received: from xdsl-87-78-56-118.netcologne.de ([87.78.56.118] helo=dijkstra.cruwe.de); authenticated by wp376.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) id 1W5bPt-0007HU-47; Tue, 21 Jan 2014 14:30:57 +0100 Date: Tue, 21 Jan 2014 14:30:51 +0100 From: "Christopher J. Ruwe" To: freebsd-questions@freebsd.org Subject: Re: texlive fonts configuration: cannot find Arial, Times Message-ID: <20140121143051.7565c4b3@dijkstra.cruwe.de> In-Reply-To: <201401211137.s0LBbEE9017782@mech-cluster241.men.bris.ac.uk> References: <20140120135140.0aafbaaf@dijkstra.cruwe.de> <201401211137.s0LBbEE9017782@mech-cluster241.men.bris.ac.uk> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd9.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;cjr@cruwe.de;1390311059;754fa4ff; Cc: mexas@bris.ac.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jan 2014 13:31:00 -0000 On Tue, 21 Jan 2014 03:37:17 -0800 (PST) Anton Shterenlikht wrote: > >Date: Mon, 20 Jan 2014 13:51:40 +0100 > >From: "Christopher J. Ruwe" > >To: freebsd-questions@freebsd.org > >Subject: Re: texlive fonts configuration: cannot find Arial, Times > > > >On Mon, 20 Jan 2014 11:40:40 +0100 > >Polytropon wrote: > > > >> On Mon, 20 Jan 2014 02:22:43 -0800 (PST), Anton Shterenlikht wrote: > >> > Hi > >> > > >> > I'm starting to use texlive. > >> > I installed texlive-full-20120701. > >> > > >> > I need to build a document with these > >> > declarations: > >> > > >> > \usepackage{fontspec} > >> > \usepackage{subfigure} > >> > \setmainfont{Times New Roman} > >> > \setsansfont{Arial} > >> > > >> > [...] > >> > > >> > I presume these basic fonts should be available > >> > as part of the default installation, right? > >> > >> I don't think so. Those are fonts made by MICROS~1 to avoid > >> licensing real fonts. :-) > >> > >> > >> > >> > So probably I haven't configured texlive fonts correctly? > >> > >> I'm not sure in how far TeXlive is able to pick up fonts > >> installed on the system (usually fonts for use in X), but > >> maybe you could try installing the "webfonts" package? It > >> helps to make web pages look better when they have been > >> "optimized" for use with "Windows" (i. e., explicitely > >> requiring things like "Arial"). The results can then be > >> found in the /usr/local/lib/X11/fonts/webfonts/ directory. > >> > >> > >> > >> > I've these directories: > >> > > >> > $ ls /usr/local/share/texmf-dist/fonts/ > >> > afm enc misc ovf > >> > sfd truetype cid fea > >> > ofm ovp source type1 > >> > cmap map opentype pk > >> > tfm vf > >> > > >> > But not sure if this is enough. > >> > >> Those are the fonts to be used with Metafont. As I said, > >> I'm not sure if those can interact in some way with other > >> fonts in the systmm. > >> > >> > >> > >> Just as a sidenote: > >> > >> If you want a good-looking serif font, just use the CMR > >> (Computer Modern Roman) that is the default font for many > >> LaTeX cases. If you want a Helvetica-like font (which "Arial" > >> is a poor replacement for), try this: > >> > >> \usepackage[T1]{fontenc} > >> \usepackage[scaled]{helvet} > >> \renewcommand{\familydefault}{\sfdefault} > >> > >> Note that I'm using this when I need a sans serif font, and > >> it works in teTeX. Not sure if it will also work in TeXlive, > >> but I assume this functionality has been kept. > >> > >> Also note that it isn't "the real Helvetica", but a very good > >> variation that comes with ligatures and looks _much_ better > >> than shabby "Arial". > >> > >> Maybe if you use > >> > >> \setmainfont{cmr} > >> \setsansfont{helvet} > >> > >> you can get the same result? Again, note that I haven't tested > >> this. But giving it a try isn't a hard exercise. :-) > >> > >> > >> > > > >If by some reasons such as e.g. "customer demand" you are forced to > >use fonts normally not available in common latex, you can try xetex. > > > >Then, you have all fonts available which are pulled in by fc-cache > >and declare for instance > > > >\setmainfont[Ligatures=TeX]{Avenir LT Std 35 Light} > > > >Cheers, > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > ! > ! fontspec error: "font-not-found" > ! > ! The font "Avenir LT Std 35 Light" cannot be found. > ! > ! See the fontspec documentation for further information. > ! > ! For immediate help type H . > !............................................... > > l.32 ...ont[Ligatures=TeX]{Avenir LT Std 35 Light} > > It seems fontspec cannot find this font. > > So do I only have availble what is returned by fc-list? > > Thanks > > Anton > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > I do not exactly know whether there is another way with xelatex, but I believe that the answer is yes. All the .ttf and .otf fonts I have available are listed using fc-list. [cjr@dijkstra:~]$ fc-list | grep Avenir | grep 35 (01-21 14:20) /usr/home/cjr/.fonts/Avenir LT Std/AvenirLTStd-Light.otf: Avenir LT \ Std,Avenir LT Std 35 Light:style=35 Light,Regular /usr/home/cjr/.fonts/Avenir LT Std/AvenirLTStd-LightOblique.otf:\ Avenir LT Std,Avenir LT Std 35 Light:style=35 Light Oblique,Italic /usr/home/cjr/.fonts/avenirltstd/AvenirLTStd-Light.otf: Avenir LT \ Std,Avenir LT Std 35 Light:style=35 Light,Regular /usr/home/cjr/.fonts/avenirltstd/AvenirLTStd-LightOblique.otf: Avenir \ LT Std,Avenir LT Std 35 Light:style=35 Light Oblique,Italic I have appended /usr/local/share/texmf-dist/fonts/opentype /usr/local/share/texmf-dist/fonts/truetype to /usr/local/etc/fontslocal.conf and have a local ~/.fonts directory which gets pulled in by fc-cache, although I do not remember at the moment why. (FreeBSD Handbook 6.5.3? Could be.) It's the same to add fonts to openoffice. Cheers, -- Christopher TZ: GMT + 1h GnuPG/GPG: 0xE8DE2C14 FreeBSD 9.2-STABLE #1 r256184: Thu Oct 10 19:12:54 CEST 2013 cjr@dijkstra.cruwe.de:/usr/obj/usr/home/cjr/media/src/freebsd/base/stable/9/sys/GEN_WDTRACE Punctuation matters: "Lets eat Grandma." or "Lets eat, Grandma." - Punctuation saves lives. "A panda eats shoots and leaves." or "A panda eats, shoots, and leaves." - Punctuation teaches proper biology. "With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead." (RFC 1925)