[Ipe-discuss] how to: different fonts in the same file
Michael Thon
m7.thon at gmail.com
Mon Dec 1 01:53:51 CET 2014
Hi again,
> The interesting question is - what is different in Michael's setup?
I guess only I can tell ;-)
So,
> ...tried your example. My ipetemp.log
> contains this:
>
> LaTeX Font Info: Try loading font information for T1+libertine on
> input line
> 53.
> LaTeX Font Info: No file T1libertine.fd. on input line 53.
>
> LaTeX Font Warning: Font shape `T1/libertine/m/n' undefined
> (Font) using `T1/cmr/m/n' instead on input line 53.
Yes, indeed, that is what I get, too.
> If I then open ipetemp.pdf in evince and look at the Fonts in document
> properties, it shows a Type 3 font (CMR, created by Metafont).
Aha, here seems to be the difference. I get the CMR font embedded as a Type 1 font:
%!FontType1-1.0: SFRM1000 0.3
%%CreationDate: Wed Sep 12 2001
% Copyright (c) 2001 Vladimir Volovich <vvv at vsu.ru>.
% See the file COPYING (GNU General Public License) for license conditions.
% Converted from METAFONT EC/TC and LH fonts:
% ecrm1000, tcrm1000, larm1000, lbrm1000, lcrm1000, rxrm1000.
11 dict begin
/FontInfo 6 dict dup begin
/version (0.3) def
/FullName (Computer Modern Roman) def
/FamilyName (Computer Modern) def
/ItalicAngle 0 def
/isFixedPitch false def
/Weight (Medium) def
end readonly def
/FontName /PRAIQJ+SFRM1000 def
/Encoding StandardEncoding def
/PaintType 0 def
/FontType 1 def
/FontMatrix [0.001 0 0 0.001 0 0] def
/FontBBox{-189 -321 1456 937}readonly def
currentdict end
currentfile eexec
...
I have no clue why which font would get embedded.
So I was just lucky that it worked for me.
Cheers,
Michael
On 01 Dec 2014, at 00:59, Otfried Cheong <otfried at ipe.airpost.net> wrote:
>
> On 01/12/14 06:46, Carsten Weise wrote:
>> Hej Michael,
>>
>> ok so this is good news.
>> However, I have the same problem when I follow your approach - si it
>> must be in my configuration.
>>
>> I'm running ipe V 7.1.4, pdflatex says "pdfTeX 3.1415926-2.5-1.40.14",
>> and I'm on Ubuntu 14.4.
>>
>> Is there a way to see the pdflatex output from ipe?
>
> In Ipe, go to Help->Show configuration and look for the Latex directory.
> On Linux, this would normally be $HOME/.ipe/latexrun.
>
> cd to this directory. The Latex source created by Ipe is in
> ipetemp.pdf, the log file in ipetemp.log, the created PDF in ipetemp.pdf.
>
> You should also run "pdflatex ipetemp.tex" manually in this directory
> and see what happens. When Ipe complains that "An error occurred during
> the Pdflatex run", it usually means that you are using fonts that are
> not in Postscript Type 1 or TTF format.
>
> I installed texlive-fonts-extra and tried your example. My ipetemp.log
> contains this:
>
> LaTeX Font Info: Try loading font information for T1+libertine on
> input line
> 53.
> LaTeX Font Info: No file T1libertine.fd. on input line 53.
>
> LaTeX Font Warning: Font shape `T1/libertine/m/n' undefined
> (Font) using `T1/cmr/m/n' instead on input line 53.
>
> If I then open ipetemp.pdf in evince and look at the Fonts in document
> properties, it shows a Type 3 font (CMR, created by Metafont). Ipe does
> not handle Type 3 fonts, because they are bitmap fonts and do not scale
> - so that explains the error message.
>
> So I went back to your short Latex test tile. While it runs through
> pdflatex and produces a PDF file with two different fonts, it actually
> has the same problem. The second font is not Libertine, but CMR in a
> bitmap font (look at font properties in evince again)!
>
> However, uncommenting \usepackage{dejavu} and the selectfont command
> shows that Libertine actually works in Latex, so the problem must be the
> \fontfamily setting.
> A quick look at libertine.sty shows that this is indeed the case: The
> name of the font family is not "libertine", but something much more
> complicated. I changed the text object to read like this:
>
> ===
> This is a very simple document. The first paragraph should use dejavu as
> font.
>
> {\fontencoding{T1}
> \makeatletter\fontfamily{\libertine at family}\makeatother
> \selectfont
> OK, we fill this with a little more content. So this is the second
> paragraph in this document. This should be in libertine.
> }
> ===
>
> and now it works.
>
> The interesting question is - what is different in Michael's setup?
>
> Cheers,
> Otfried
>
>
>
> _______________________________________________
> Ipe-discuss mailing list
> Ipe-discuss at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/ipe-discuss
More information about the Ipe-discuss
mailing list