Opened 15 years ago

Closed 13 years ago

#16938 closed defect (worksforme)

doxygen-1.5.7 font-not-loaded

Reported by: mlund (Mikael Lund) Owned by: cssdev
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: font pango dot graphviz Cc: ryandesign (Ryan Carsten Schmidt), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: doxygen

Description

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?

Change History (16)

comment:1 Changed 15 years ago by cssdev

Cc: ryandesign@… added
Owner: changed from macports-tickets@… to css@…
Status: newassigned

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...

comment:2 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

"(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.

comment:3 in reply to:  1 Changed 15 years ago by mlund (Mikael Lund)

| 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!

comment:4 Changed 15 years ago by cssdev

Maybe install the freefont-ttf port?

comment:5 in reply to:  4 Changed 15 years ago by mlund (Mikael Lund)

Replying to css@…:

Maybe install the freefont-ttf port?

Unfortunately, this didn't solve the problem.

comment:6 Changed 15 years ago by cssdev

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.

comment:7 in reply to:  6 ; Changed 15 years ago by richard@…

Replying to 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.

comment:8 in reply to:  7 ; Changed 15 years ago by mlund (Mikael Lund)

Replying to richard@…:

Replying to 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.

comment:9 in reply to:  8 ; Changed 15 years ago by cssdev

Replying to mlund@…:

Replying to 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?)

comment:10 in reply to:  9 ; Changed 15 years ago by mlund (Mikael Lund)

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 ---

comment:11 in reply to:  10 Changed 15 years ago by cssdev

Replying to 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.

comment:12 Changed 15 years ago by cssdev

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!

comment:13 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: mcalhoun@… added

Cc Me!

comment:14 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:15 Changed 14 years ago by cssdev

Does this still happen? I'm not seeing it on snow leopard with 1.6.3 ...

comment:16 Changed 13 years ago by jmroot (Joshua Root)

Cc: css@… removed
Resolution: worksforme
Status: assignedclosed

No response; closing.

Note: See TracTickets for help on using tickets.