if with FontyPython you install font "BrettFont"¹, then try to open pdf
file at
http://www.unicatt.it/Istituti/TeoriaEconomica/Quaderni/itemq0745.pdf
with evince (but I have the same problem with tons of other pdf
documents and web pages with Chromium and, I think, Firefox), you see
that all the times some very plain font (Times New Roman, maybe? It's
present, for instance, in the first words of the document) is present,
it gets replaced with BrettFont.
Is this due to some bad characteristics of BrettFont or to some
misbehaviour of FontyPython? I'm really too much ignorant about the
whole font management thing to guess...
thanks for any enlightenment
Pietro
¹ The font can usually be found on the Open Font Library, which however
is currently down, so as a workaround you can download the package at
http://jstanley.fedoraproject.org/brettfont-fonts-1.0-2.fc8.src.rpm
, open it (for instance with file-roller) and extract the .ttf it
contains.
I got the "BrettFont" and the document and tried to reproduce the
strange behavior. Two screenshots are appended, 2.jpeg shows the
document on my machine with BrettFont installed. But can't found any
strange, BrettFont nowhere appears. As you see in 1.jpeg the "standard"
fonts Times and Arial are not embedded in the document. They are read
from your local setup. I'm not a guru, but I assume there may be a
confusion with your font setup, without any idea, what this could be.
Are you able to send a screenshot? What happens, if you unintall
BrettFont? If you start the command line: "envince itemq0745.pdf", any
warnings are reported like "font not found....."?
I hope, I justly understand, what your problem is and my answer could
be a little bit helpful!
Bye Michael
> --
> You received this message because you are subscribed to the Google Groups "fontypython" group.
> To post to this group, send email to fonty...@googlegroups.com.
> To unsubscribe from this group, send email to fontypython...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/fontypython?hl=en.
>
Hello Michael, and thanks for your answer.
>
> I got the "BrettFont" and the document and tried to reproduce the
> strange behavior. Two screenshots are appended, 2.jpeg shows the
> document on my machine with BrettFont installed. But can't found any
> strange, BrettFont nowhere appears. As you see in 1.jpeg the "standard"
> fonts Times and Arial are not embedded in the document. They are read
> from your local setup. I'm not a guru, but I assume there may be a
> confusion with your font setup, without any idea, what this could be.
>
> Are you able to send a screenshot? What happens, if you unintall
> BrettFont?
"with.png" is the header of the first page in evince started with
BrettFont installed, "without.png" is the same header in evince started
with BrettFont not installed.
> If you start the command line: "envince itemq0745.pdf", any
> warnings are reported like "font not found....."?
"evince itemq0745.pdf" doesn't print anything particular, _except_ if
after I started it I _then_ uninstall BrettFont and reload: in that
case, it prints many times
Error: Cannot open '/home/pietro/.fonts/brettalton_-_Brett_Font.ttf'
Error: failed to load truetype font
some font thing failed
and finally (usually) segfaults. Interestingly, evince also (often)
segfaults if I start open the document with BrettFont uninstalled,
_install_ it and then reload.
>
> I hope, I justly understand, what your problem is and my answer could
> be a little bit helpful!
>
Knowing that it's not a general problem is already a step toward
understanding it... the funny thing is that:
1) it also happens with a brand new system user, so it's not just a
consequence of some personal configuration, but
2) it also happened under Ubuntu: now I use Debian, and the system was
obviously reinstalled from scratch in the switch.
It must hence be the consequence of some combination of installed
apps/fonts and configurations. I seem to remember I thought that the
problem first appeared indeed after installing some fonts, but I don't
have a precise memory of that.
Pietro
Hello Michael, and thanks for your answer.
>
> I got the "BrettFont" and the document and tried to reproduce the
> strange behavior. Two screenshots are appended, 2.jpeg shows the
> document on my machine with BrettFont installed. But can't found any
> strange, BrettFont nowhere appears. As you see in 1.jpeg the "standard"
> fonts Times and Arial are not embedded in the document. They are read
> from your local setup. I'm not a guru, but I assume there may be a
> confusion with your font setup, without any idea, what this could be.
>
> Are you able to send a screenshot? What happens, if you unintall
> BrettFont?
"with.png" is the header of the first page in evince started with
BrettFont installed, "without.png" is the same header in evince started
with BrettFont not installed.
> If you start the command line: "envince itemq0745.pdf", any
> warnings are reported like "font not found....."?
"evince itemq0745.pdf" doesn't print anything particular, _except_ if
after I started it I _then_ uninstall BrettFont and reload: in that
case, it prints many times
Error: Cannot open '/home/pietro/.fonts/brettalton_-_Brett_Font.ttf'
Error: failed to load truetype font
some font thing failed
and finally (usually) segfaults. Interestingly, evince also (often)
segfaults if I start open the document with BrettFont uninstalled,
_install_ it and then reload.
>
> I hope, I justly understand, what your problem is and my answer could
> be a little bit helpful!
>
Knowing that it's not a general problem is already a step toward
understanding it... the funny thing is that:
1) it also happens with a brand new system user, so it's not just a
consequence of some personal configuration, but
2) it also happened under Ubuntu: now I use Debian, and the system was
obviously reinstalled from scratch in the switch.
It must hence be the consequence of some combination of installed
apps/fonts and configurations. I seem to remember I thought that the
problem first appeared indeed after installing some fonts, but I don't
have a precise memory of that.
Pietro
> Bye Michael
I *think* you are saying that Brett is appearing where you do not expect
it to.
If this is the case then I reckon it's something weird about the Brett
font. Perhaps it's name (filename, or family name) clashing with
something else.
Have a look at these commands on your system:
fc-cache fc-cat fc-list fc-match
They are mostly over my head but, with grep, you can detect which fonts
are known by which names to the actual fontconfig system (the low-level
beast that actually manages fonts). All Fonty does is plonk your font
files into ~/.fonts �� it's fontconfig that looks in there and adds what
it finds to the big picture.
So, I suspect that Brett is overriding other system fonts. I could be
wrong, but this is my best guess. I cannot find a copy of Brett online
(none of the links work), so I can't go all Sherlock for you. :)
Let us know what you find!
\d
* PS : perhaps post the ttf, then I can hack a little.
Exactly.
> If this is the case then I reckon it's something weird about the Brett
> font. Perhaps it's name (filename, or family name) clashing with
> something else.
>
> Have a look at these commands on your system:
> fc-cache fc-cat fc-list fc-match
Indeed, this probably suggests something weird in the font:
pietro@voubian:~$ fc-match -a "Times" | head
n021003l.pfb: "Nimbus Roman No9 L" "Regular"
n021003l.pfb: "Nimbus Roman No9 L" "Regular"
n021004l.pfb: "Nimbus Roman No9 L" "Medium"
n021004l.pfb: "Nimbus Roman No9 L" "Medium"
n021023l.pfb: "Nimbus Roman No9 L" "Regular Italic"
n021023l.pfb: "Nimbus Roman No9 L" "Regular Italic"
n021024l.pfb: "Nimbus Roman No9 L" "Medium Italic"
n021024l.pfb: "Nimbus Roman No9 L" "Medium Italic"
brettalton_-_Brett_Font.ttf: "Times New Roman" "Normal"
LiberationSerif-Regular.ttf: "Liberation Serif" "Regular"
>
> They are mostly over my head but, with grep, you can detect which fonts
> are known by which names to the actual fontconfig system (the low-level
> beast that actually manages fonts). All Fonty does is plonk your font
> files into ~/.fonts — it's fontconfig that looks in there and adds what
> it finds to the big picture.
>
> So, I suspect that Brett is overriding other system fonts. I could be
> wrong, but this is my best guess. I cannot find a copy of Brett online
> (none of the links work), so I can't go all Sherlock for you. :)
Well, in case you're interested,
http://pietrobattiston.it/brettalton_-_Brett_Font.ttf
I tried to investigate it with FontForge, and seem to have partly
understood the problem: if you look at "Element" -> "Font Info" -> "TTF
Names", several fields in the page seem to be copied straight from Times
New Roman.
Still, I don't see which particular fields results in the font being
reported as "Times New Roman" by "fc-match".
When the openfontlibrary.org is up again, in a couple of weeks, I could
try to submit a fixed font: in the meanwhile I'll try to contact the
author about that.
for the moment, thanks to both for your help
Pietro
I got the font from your link, installed it with FP and I have exactly
the same result. I fished another BrettFont (as appended to this mail)
and this one behave right. Try it and it's O.K. for you, forget the
weird font-file.
Good luck
Michael