[MacPorts] #16938: doxygen-1.5.7 font-not-loaded
#16938: doxygen-1.5.7 font-not-loaded -------------------------------------+-------------------------------------- Reporter: mlund@mac.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: font pango dot graphviz | Port: doxygen -------------------------------------+-------------------------------------- After updating to Doxygen 1.5.7 I get the following message when building my source code documentation: "(process:85623): Pango-WARNING **: couldn't load font "FreeSans Not- Rotated 10", falling back to "Sans Not-Rotated 10", expect ugly output." This problem occurs only when setting HAVE_DOT to YES in the doxyfile, so perhaps this is related to graphviz? -- Ticket URL: <http://trac.macports.org/ticket/16938> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16938: doxygen-1.5.7 font-not-loaded ----------------------------+----------------------------------------------- Reporter: mlund@mac.com | Owner: css@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: font pango dot graphviz Port: doxygen | ----------------------------+----------------------------------------------- Changes (by css@macports.org): * cc: ryandesign@macports.org (added) * owner: macports-tickets@lists.macosforge.org => css@macports.org * status: new => assigned Comment: That's an error from graphviz, so you might need to make sure that you have that port properly installed. I did change the 1.5.7 port to no longer automatically install all the extra dependencies (graphviz, tex, etc.) in order to make for a lighter-weight install. I think there might be an additional font package you could install. Could you attach the full error output? CCing the graphviz maintainer for his thoughts... -- Ticket URL: <http://trac.macports.org/ticket/16938#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16938: doxygen-1.5.7 font-not-loaded ----------------------------+----------------------------------------------- Reporter: mlund@mac.com | Owner: css@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: font pango dot graphviz Port: doxygen | ----------------------------+----------------------------------------------- Comment(by ryandesign@macports.org):
"(process:85623): Pango-WARNING **: couldn't load font "FreeSans Not- Rotated 10", falling back to "Sans Not-Rotated 10", expect ugly output."
Do you have a font called "FreeSans"? If not, the message is probably normal. -- Ticket URL: <http://trac.macports.org/ticket/16938#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16938: doxygen-1.5.7 font-not-loaded ----------------------------+----------------------------------------------- Reporter: mlund@mac.com | Owner: css@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: font pango dot graphviz Port: doxygen | ----------------------------+----------------------------------------------- Comment(by mlund@mac.com): | Could you attach the full error output? This was the full output for a simple C++ source code. | Do you have a font called "FreeSans"? I don't think so - installed by macports? In any case I had no trouble with the previous Doxygen version and - as warned - the output is indeed "ugly". | CCing the graphviz maintainer for his thoughts... Thanks! -- Ticket URL: <http://trac.macports.org/ticket/16938#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16938: doxygen-1.5.7 font-not-loaded ----------------------------+----------------------------------------------- Reporter: mlund@mac.com | Owner: css@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: font pango dot graphviz Port: doxygen | ----------------------------+----------------------------------------------- Comment(by css@macports.org): Maybe install the freefont-ttf port? -- Ticket URL: <http://trac.macports.org/ticket/16938#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16938: doxygen-1.5.7 font-not-loaded ----------------------------+----------------------------------------------- Reporter: mlund@mac.com | Owner: css@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: font pango dot graphviz Port: doxygen | ----------------------------+----------------------------------------------- Comment(by mlund@mac.com): Replying to [comment:4 css@…]:
Maybe install the freefont-ttf port?
Unfortunately, this didn't solve the problem. -- Ticket URL: <http://trac.macports.org/ticket/16938#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16938: doxygen-1.5.7 font-not-loaded ----------------------------+----------------------------------------------- Reporter: mlund@mac.com | Owner: css@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: font pango dot graphviz Port: doxygen | ----------------------------+----------------------------------------------- Comment(by css@macports.org): I'm out of town for a few days, but I'll check back on this at the end of the week ... still have to determine whether it's an issue with the files generated from doxygen or something with the configuration of either graphviz or pango. -- Ticket URL: <http://trac.macports.org/ticket/16938#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16938: doxygen-1.5.7 font-not-loaded ----------------------------+----------------------------------------------- Reporter: mlund@mac.com | Owner: css@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: font pango dot graphviz Port: doxygen | ----------------------------+----------------------------------------------- Comment(by richard@bornat.me.uk): Replying to [comment:6 css@…]: I had the same problem and have found a fix. sudo port install freefont-ttf gives you a folder (deep in the macports stuff) which contains all sorts of Free... fonts (FreeSans, FreeMono, FreeSerif and I can't remember what else). Having this folder isn't enough, but I selected all those fonts, double-clicked them, and installed them with FontBook. My build of the cvc3 documentation is now going ahead happily, with no complaints about ugliness. -- Ticket URL: <http://trac.macports.org/ticket/16938#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16938: doxygen-1.5.7 font-not-loaded ----------------------------+----------------------------------------------- Reporter: mlund@mac.com | Owner: css@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: font pango dot graphviz Port: doxygen | ----------------------------+----------------------------------------------- Comment(by mlund@mac.com): Replying to [comment:7 richard@…]:
Replying to [comment:6 css@…]: I had the same problem and have found a fix.
sudo port install freefont-ttf
gives you a folder (deep in the macports stuff) which contains all sorts of Free... fonts (FreeSans, FreeMono, FreeSerif and I can't remember what else). Having this folder isn't enough, but I selected all those fonts, double-clicked them, and installed them with FontBook.
My build of the cvc3 documentation is now going ahead happily, with no complaints about ugliness.
Thanks, I tried this approach, but it didn't solve the problem for me. I will forward this ticket to the Doxygen author to see if he has some ideas. -- Ticket URL: <http://trac.macports.org/ticket/16938#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16938: doxygen-1.5.7 font-not-loaded ----------------------------+----------------------------------------------- Reporter: mlund@mac.com | Owner: css@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: font pango dot graphviz Port: doxygen | ----------------------------+----------------------------------------------- Comment(by css@macports.org): Replying to [comment:8 mlund@…]:
Replying to [comment:7 richard@…]:
sudo port install freefont-ttf Thanks, I tried this approach, but it didn't solve the problem for me. I will forward this ticket to the Doxygen author to see if he has some ideas.
Are you sure? I just tried, and it did indeed solve the problem for me: 1. `sudo port install freefont-ttf` 2. open `/opt/local/share/fonts/freefont-ttf` in the Finder 3. Double-click FreeSans.ttf 4. Leopeard's Font Book, press "Install Font" 5. Rerun doxygen with `HAVE_DOT=YES`, and the error does not appear Does this not resolve your problem? If it still doesn't look right, perhaps change `DOT_FONTNAME` in your Doxyfile. I wonder if there might be pango issues with properly finding Mac OS X fonts. (Should freefont-ttf automatically activate the fonts for the rest of Mac OS X, for example?) -- Ticket URL: <http://trac.macports.org/ticket/16938#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16938: doxygen-1.5.7 font-not-loaded ----------------------------+----------------------------------------------- Reporter: mlund@mac.com | Owner: css@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: font pango dot graphviz Port: doxygen | ----------------------------+----------------------------------------------- Comment(by mlund@mac.com): That's exactly what I did, but unfortunately still no luck. I got this reply from the Doxygen author: --- snippet --- Doxygen generates the FreeSans.ttf font in the output directory and sets the DOTFONTPATH environment variable such that dot should be able to find the font. Doxygen normally deletes the font file when it is done, but you can keep it by setting DOT_CLEANUP to NO in the config file. Normally, dot can find the font without problems, but maybe a version of dot was used without truetype support or something. I had good results with http://graphviz.org/pub/graphviz/stable/macos/graphviz-2.20.3.pkg which installs dot in /usr/local/bin/dot --- snippet --- -- Ticket URL: <http://trac.macports.org/ticket/16938#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16938: doxygen-1.5.7 font-not-loaded -------------------------------------+-------------------------------------- Reporter: mlund@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: font pango dot graphviz | Port: doxygen -------------------------------------+-------------------------------------- Comment(by css@…): Replying to [comment:10 mlund@…]:
That's exactly what I did, but unfortunately still no luck. I got this reply from the Doxygen author:
I wonder if there might be some extra option required for something in the dependency tree, perhaps freetype or cairo? Even when I set the DOTFONTPATH environment variable to /opt/local/share/fonts/freefont-ttf/, I get the message that pango cannot load the font. -- Ticket URL: <http://trac.macports.org/ticket/16938#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16938: doxygen-1.5.7 font-not-loaded -------------------------------------+-------------------------------------- Reporter: mlund@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: font pango dot graphviz | Port: doxygen -------------------------------------+-------------------------------------- Comment(by css@…): There's a lot of pango and cairo chatter on the lists, and I suspect there might need to be a specific combination of variants for this to behave completely cleanly. It's juts a matter of finding out what that combination actually is! -- Ticket URL: <http://trac.macports.org/ticket/16938#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16938: doxygen-1.5.7 font-not-loaded -------------------------------------+-------------------------------------- Reporter: mlund@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: font pango dot graphviz | Port: doxygen -------------------------------------+-------------------------------------- Comment(by css@…): Does this still happen? I'm not seeing it on snow leopard with 1.6.3 ... -- Ticket URL: <http://trac.macports.org/ticket/16938#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16938: doxygen-1.5.7 font-not-loaded ----------------------------+----------------------------------------------- Reporter: mlund@… | Owner: css@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: worksforme | Keywords: font pango dot graphviz Port: doxygen | ----------------------------+----------------------------------------------- Changes (by jmr@…): * cc: css@… (removed) * status: assigned => closed * resolution: => worksforme Comment: No response; closing. -- Ticket URL: <https://trac.macports.org/ticket/16938#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts