I've finally got pd-extended 0.43 mostly working when built from source. I filed a few bugs this afternoon (thanks for the quick fixes!) and now I have just a couple more problems. I would file them as bugs, but I don't understand enough of the internals to quite figure out what's going on, and they might be interesting to the general list.
#1 - The stock default.pdextended file, from packages/linux_make, doesn't include libdir on its list of libraries to load. This means all of the formerly-builtin objects from "vanilla" don't get loaded, making for a pretty broken environment. Should libdir be added to that list? Or is there some other mechanism that is supposed to ensure libdir is always loaded? (On a related note, the PACKAGE_TYPE=tarbz2 method of installation includes default.pdextended in the tarball, but the generated install makefile doesn't put it anywhere.)
#2 - Pd can't find any fonts other than Courier. This might actually be a tk problem, based on the following tclsh session: % package require Tk 8.4 % font families {fangsong ti} fixed {clearlyu alternate glyphs} {courier 10 pitch} {open look glyph} {bitstream charter} {song ti} {open look cursor} newspaper {clearlyu ligature} mincho {clearlyu devangari extra} {clearlyu pua} dotum clearlyu clean nil {clearlyu arabic} {clearlyu devanagari} batang {standard symbols l} gothic {clearlyu arabic extra}
That list is short and doesn't include e.g. DejaVu Sans Mono, which is installed on my system via the ttf-dejavu package. I've noticed that the standard default.pdextended includes /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType on the search path, and I tried adding /usr/share/fonts/truetype/ttf-dejavu to that list to see if it would help, but no dice. I couldn't figure out from the code how e.g. $sys_searchpath affects Tcl's font search path. Anyone have any ideas what could be going wrong?
-- Jacob Lee artdent@gmail.com
From: Jacob Lee artdent@gmail.com To: pd-list pd-list@iem.at Sent: Sunday, September 25, 2011 10:46 PM Subject: [PD] pd-extended 0.43 default settings don't load libdir? + font question
I've finally got pd-extended 0.43 mostly working when built from source. I filed a few bugs this afternoon (thanks for the quick fixes!) and now I have just a couple more problems. I would file them as bugs, but I don't understand enough of the internals to quite figure out what's going on, and they might be interesting to the general list.
#1 - The stock default.pdextended file, from packages/linux_make, doesn't include libdir on its list of libraries to load. This means all of the formerly-builtin objects from "vanilla" don't get loaded, making for a pretty broken environment. Should libdir be added to that list? Or is there some other mechanism that is supposed to ensure libdir is always loaded? (On a related note, the PACKAGE_TYPE=tarbz2 method of installation includes default.pdextended in the tarball, but the generated install makefile doesn't put it anywhere.)
#2 - Pd can't find any fonts other than Courier. This might actually be a tk problem, based on the following tclsh session: % package require Tk 8.4 % font families {fangsong ti} fixed {clearlyu alternate glyphs} {courier 10 pitch} {open look glyph} {bitstream charter} {song ti} {open look cursor} newspaper {clearlyu ligature} mincho {clearlyu devangari extra} {clearlyu pua} dotum clearlyu clean nil {clearlyu arabic} {clearlyu devanagari} batang {standard symbols l} gothic {clearlyu arabic extra}
That list is short and doesn't include e.g. DejaVu Sans Mono, which is installed on my system via the ttf-dejavu package. I've noticed that the standard default.pdextended includes /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType on the search path, and I tried adding /usr/share/fonts/truetype/ttf-dejavu to that list to see if it would help, but no dice. I couldn't figure out from the code how e.g. $sys_searchpath affects Tcl's font search path. Anyone have any ideas what could be going wrong?
I get fewer fonts recognized under wish8.4 than I do under wish8.5. I just force it to use tcl/tk 8.5 and things seem to look ok.
-Jonathan
-- Jacob Lee artdent@gmail.com
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Sun, Sep 25, 2011 at 11:24 PM, Jonathan Wilkes jancsika@yahoo.com wrote:
#2 - Pd can't find any fonts other than Courier. This might actually be a tk problem, based on the following tclsh session: % package require Tk 8.4 % font families {fangsong ti} fixed {clearlyu alternate glyphs} {courier 10 pitch} {open look glyph} {bitstream charter} {song ti} {open look cursor} newspaper {clearlyu ligature} mincho {clearlyu devangari extra} {clearlyu pua} dotum clearlyu clean nil {clearlyu arabic} {clearlyu devanagari} batang {standard symbols l} gothic {clearlyu arabic extra}
That list is short and doesn't include e.g. DejaVu Sans Mono, which is installed on my system via the ttf-dejavu package. I've noticed that the standard default.pdextended includes /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType on the search path, and I tried adding /usr/share/fonts/truetype/ttf-dejavu to that list to see if it would help, but no dice. I couldn't figure out from the code how e.g. $sys_searchpath affects Tcl's font search path. Anyone have any ideas what could be going wrong?
I get fewer fonts recognized under wish8.4 than I do under wish8.5. I just force it to use tcl/tk 8.5 and things seem to look ok.
Awesome, that did the trick. I ran update-alternatives to set /usr/bin/wish to be provided by /usr/bin/wish8.5, and now fonts are working. Thanks.
-Jonathan
-- Jacob Lee artdent@gmail.com
On Sep 25, 2011, at 11:41 PM, Jacob Lee wrote:
On Sun, Sep 25, 2011 at 11:24 PM, Jonathan Wilkes
jancsika@yahoo.com wrote:#2 - Pd can't find any fonts other than Courier. This might actually be a tk problem, based on the following tclsh session: % package require Tk 8.4 % font families {fangsong ti} fixed {clearlyu alternate glyphs} {courier 10 pitch} {open look glyph} {bitstream charter} {song ti} {open look cursor} newspaper {clearlyu ligature} mincho {clearlyu devangari extra} {clearlyu pua} dotum clearlyu clean nil {clearlyu arabic} {clearlyu devanagari} batang {standard symbols l} gothic {clearlyu arabic
extra}That list is short and doesn't include e.g. DejaVu Sans Mono,
which is installed on my system via the ttf-dejavu package. I've noticed that the standard default.pdextended includes /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType on the search path, and I tried adding /usr/share/fonts/truetype/ttf-dejavu to that list to see if it would help, but no dice. I couldn't figure out from the code how e.g. $sys_searchpath affects Tcl's font search path. Anyone have any ideas what could be going wrong?I get fewer fonts recognized under wish8.4 than I do under wish8.5. I just force it to use tcl/tk 8.5 and things seem to look ok.
Awesome, that did the trick. I ran update-alternatives to set /usr/bin/wish to be provided by /usr/bin/wish8.5, and now fonts are working. Thanks.
Hey Jacob,
Thanks for the bug reports and patches! For future reference on the
font topic:
http://puredata.info/docs/faq/on-gnu-linux-the-fonts-are-strange-and-or-too-...
About libdir, vanilla, etc. this stuff is under development in 0.43.
There is a new pd/startup/ folder. Anything in this folder is
automatically loaded. Today's build should automatically load libdir,
pdlua, vanilla/list, vanilla, and extra from pd/startup/
.hc
"We have nothing to fear from love and commitment." - New York Senator
Diane Savino, trying to convince the NY Senate to pass a gay marriage
bill