Thanks, Andre! That does seem to have done the trick for me, too.

Peace,
Brendon

On May 7, 2016 23:52:45 André Wobst wrote:
> Hi Brendon,
> 
> it's an interesting problem. I could reproduce it on a fresh Ubuntu 16.04
> install (which I was about to setup for myself anyway). It turns out that
> for that case a virtual font within a virtual font is to be used, which PyX
> didn't support yet. Adding it was surprisingly easy, please find by fix in
> changeset 3678. This resolves the issue for me, it probably does so for you
> as well.
> 
> Best,
> 
> 
> André
> 
> Am 06.05.2016 um 19:38 schrieb Brendon Higgins <[email protected]>:
> > Hi list,
> > 
> > I can't make heads nor tails of this weird problem I'm seeing while trying
> > to use newtx fonts. Here's a minimized example that causes the problem
> > for me:
> > 
> > from pyx import *
> > text.set(cls=text.LatexRunner)
> > text.preamble(r'''\usepackage{newtxtext,newtxmath}''')
> > c = canvas.canvas()
> > c.text(0, 0, r"Remove the period to make this work: $12.45$")
> > c.writePDFfile("test")
> > 
> > If I run this, at the final line I get "RuntimeError: missing font
> > information for 'txmi'; check fontmapping file(s)". If I remove the
> > period, everything works great - no problem with numbers. It also works
> > fine if I don't use math mode. I did notice that if I replace the numbers
> > with "$\alpha$" the problem comes back, but I haven't found a pattern to
> > the behaviour (e.g. "$\in$" is fine).
> > 
> > Perhaps it's just my installation/distribution that has a problem. (I'm
> > using Debian testing, for what it's worth.) The error message says "check
> > fontmapping file(s)", but I have no clue where to start! I'm already in
> > way over my head with TeX's font system, so insight is much appreciated.
> > :)
> > 
> > Peace,
> > Brendon
> > 
> > --------------------------------------------------------------------------
> > ---- Find and fix application performance issues faster with Applications
> > Manager Applications Manager provides deep performance insights into
> > multiple tiers of your business applications. It resolves application
> > problems quickly and reduces your MTTR. Get your free trial!
> > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> > _______________________________________________
> > PyX-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/pyx-user


------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to