* [gentoo-user] xpdf - missing fonts @ 2012-01-03 22:15 Joseph 2012-01-03 23:20 ` Florian Philipp 0 siblings, 1 reply; 23+ messages in thread From: Joseph @ 2012-01-03 22:15 UTC (permalink / raw To: gentoo-user xpdf it complains about missing fonts xpdf hl5370d_ukeng_usr.pdf Error: No display font for 'Courier' Error: No display font for 'Courier-Bold' Error: No display font for 'Courier-BoldOblique' Error: No display font for 'Courier-Oblique' Error: No display font for 'Helvetica' Error: No display font for 'Helvetica-Bold' Error: No display font for 'Helvetica-BoldOblique' Error: No display font for 'Helvetica-Oblique' Error: No display font for 'Symbol' Error: No display font for 'Times-Bold' Error: No display font for 'Times-BoldItalic' Error: No display font for 'Times-Italic' Error: No display font for 'Times-Roman' Error: No display font for 'ZapfDingbats' Warning: Missing charsets in String to FontSet conversion Warning: Missing charsets in String to FontSet conversion Warning: Missing charsets in String to FontSet conversion Warning: Missing charsets in String to FontSet conversion Anybody knows how to install them? -- Joseph ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] xpdf - missing fonts 2012-01-03 22:15 [gentoo-user] xpdf - missing fonts Joseph @ 2012-01-03 23:20 ` Florian Philipp 2012-01-03 23:42 ` Joseph 0 siblings, 1 reply; 23+ messages in thread From: Florian Philipp @ 2012-01-03 23:20 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1172 bytes --] Am 03.01.2012 23:15, schrieb Joseph: > xpdf it complains about missing fonts > xpdf hl5370d_ukeng_usr.pdf Error: No display font for 'Courier' > Error: No display font for 'Courier-Bold' > Error: No display font for 'Courier-BoldOblique' > Error: No display font for 'Courier-Oblique' > Error: No display font for 'Helvetica' > Error: No display font for 'Helvetica-Bold' > Error: No display font for 'Helvetica-BoldOblique' > Error: No display font for 'Helvetica-Oblique' > Error: No display font for 'Symbol' > Error: No display font for 'Times-Bold' > Error: No display font for 'Times-BoldItalic' > Error: No display font for 'Times-Italic' > Error: No display font for 'Times-Roman' > Error: No display font for 'ZapfDingbats' > Warning: Missing charsets in String to FontSet conversion > Warning: Missing charsets in String to FontSet conversion > Warning: Missing charsets in String to FontSet conversion > Warning: Missing charsets in String to FontSet conversion > > Anybody knows how to install them? > They should be part of media-fonts/corefonts. Maybe you have to activate the X use flag for them. Regards, Florian Philipp [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 262 bytes --] ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] xpdf - missing fonts 2012-01-03 23:20 ` Florian Philipp @ 2012-01-03 23:42 ` Joseph 2012-01-04 10:52 ` Willie WY Wong 0 siblings, 1 reply; 23+ messages in thread From: Joseph @ 2012-01-03 23:42 UTC (permalink / raw To: gentoo-user On 01/04/12 00:20, Florian Philipp wrote: >Am 03.01.2012 23:15, schrieb Joseph: >> xpdf it complains about missing fonts >> xpdf hl5370d_ukeng_usr.pdf Error: No display font for 'Courier' >> Error: No display font for 'Courier-Bold' >> Error: No display font for 'Courier-BoldOblique' >> Error: No display font for 'Courier-Oblique' >> Error: No display font for 'Helvetica' >> Error: No display font for 'Helvetica-Bold' >> Error: No display font for 'Helvetica-BoldOblique' >> Error: No display font for 'Helvetica-Oblique' >> Error: No display font for 'Symbol' >> Error: No display font for 'Times-Bold' >> Error: No display font for 'Times-BoldItalic' >> Error: No display font for 'Times-Italic' >> Error: No display font for 'Times-Roman' >> Error: No display font for 'ZapfDingbats' >> Warning: Missing charsets in String to FontSet conversion >> Warning: Missing charsets in String to FontSet conversion >> Warning: Missing charsets in String to FontSet conversion >> Warning: Missing charsets in String to FontSet conversion >> >> Anybody knows how to install them? >> > >They should be part of media-fonts/corefonts. Maybe you have to activate >the X use flag for them. > >Regards, >Florian Philipp Core fonts is built with "X" flag enabled. [ebuild R ] media-fonts/corefonts-1-r4 USE="X" 0 kB I compare the fonts to my other system that is working correctly and both boxes use the same fonts package so I can not figure it out why xpdf is complaining on missing fonts. Here is my list: drwxr-xr-x 2 root root 4096 Jan 3 15:03 100dpi drwxr-xr-x 2 root root 4096 Jan 3 15:03 75dpi drwxr-xr-x 2 root root 4096 Jan 3 16:22 arphicfonts drwxr-xr-x 2 root root 4096 Jan 3 16:33 corefonts drwxr-xr-x 2 root root 4096 Jan 3 15:03 cyrillic drwxr-xr-x 2 root root 4096 Dec 18 02:05 dejavu drwxr-xr-x 3 root root 4096 Dec 18 02:03 encodings drwxr-xr-x 2 root root 4096 Jan 3 15:04 liberation-fonts drwxr-xr-x 2 root root 4096 Jan 3 15:03 misc drwxr-xr-x 2 root root 4096 Jan 3 16:30 Speedo drwxr-xr-x 2 root root 12288 Jan 3 15:02 terminus drwxr-xr-x 2 root root 4096 Jan 3 15:03 TTF drwxr-xr-x 2 root root 4096 Jan 3 16:31 ttf-bitstream-vera drwxr-xr-x 2 root root 4096 Jan 3 15:03 Type1 drwxr-xr-x 2 root root 4096 Dec 18 02:05 urw-fonts drwxr-xr-x 2 root root 4096 Dec 18 01:14 util -- Joseph ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] xpdf - missing fonts 2012-01-03 23:42 ` Joseph @ 2012-01-04 10:52 ` Willie WY Wong 2012-01-04 13:52 ` Florian Philipp 0 siblings, 1 reply; 23+ messages in thread From: Willie WY Wong @ 2012-01-04 10:52 UTC (permalink / raw To: gentoo-user On Tue, Jan 03, 2012 at 04:42:43PM -0700, Penguin Lover Joseph squawked: > On 01/04/12 00:20, Florian Philipp wrote: > >Am 03.01.2012 23:15, schrieb Joseph: > >> xpdf it complains about missing fonts > >> xpdf hl5370d_ukeng_usr.pdf Error: No display font for 'Courier' > >> Error: No display font for 'Courier-Bold' > >> Error: No display font for 'Courier-BoldOblique' > >> Error: No display font for 'Courier-Oblique' > >> Error: No display font for 'Helvetica' > >> Error: No display font for 'Helvetica-Bold' > >> Error: No display font for 'Helvetica-BoldOblique' > >> Error: No display font for 'Helvetica-Oblique' > >> Error: No display font for 'Symbol' > >> Error: No display font for 'Times-Bold' > >> Error: No display font for 'Times-BoldItalic' > >> Error: No display font for 'Times-Italic' > >> Error: No display font for 'Times-Roman' > >> Error: No display font for 'ZapfDingbats' > >> Warning: Missing charsets in String to FontSet conversion > >> Warning: Missing charsets in String to FontSet conversion > >> Warning: Missing charsets in String to FontSet conversion > >> Warning: Missing charsets in String to FontSet conversion > >> > >> Anybody knows how to install them? Xpdf is looking for fonts in places that are strange: open("/usr/share/ghostscript/fonts/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/share/ghostscript/fonts/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/fonts/default/Type1/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/fonts/default/ghostscript/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/fonts/type1/gsfonts/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) write(2, "Error: ", 7Error: ) = 7 write(2, "No display font for 'Courier-Bol"..., 34No display font for 'Courier-Bold') = 34 whereas the above font is actually in /usr/share/fonts/urw-fonts/ (I've been sort of just ignoring this warning, since no pdfs I've used have had problem displaying, despite those errors.) W -- Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire et vice versa ~~~ I. Newton ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] xpdf - missing fonts 2012-01-04 10:52 ` Willie WY Wong @ 2012-01-04 13:52 ` Florian Philipp 2012-01-04 15:51 ` Joseph 2012-01-05 8:49 ` [gentoo-user] " Willie WY Wong 0 siblings, 2 replies; 23+ messages in thread From: Florian Philipp @ 2012-01-04 13:52 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 2656 bytes --] Am 04.01.2012 11:52, schrieb Willie WY Wong: > On Tue, Jan 03, 2012 at 04:42:43PM -0700, Penguin Lover Joseph squawked: >> On 01/04/12 00:20, Florian Philipp wrote: >>> Am 03.01.2012 23:15, schrieb Joseph: >>>> xpdf it complains about missing fonts >>>> xpdf hl5370d_ukeng_usr.pdf Error: No display font for 'Courier' >>>> Error: No display font for 'Courier-Bold' >>>> Error: No display font for 'Courier-BoldOblique' >>>> Error: No display font for 'Courier-Oblique' >>>> Error: No display font for 'Helvetica' >>>> Error: No display font for 'Helvetica-Bold' >>>> Error: No display font for 'Helvetica-BoldOblique' >>>> Error: No display font for 'Helvetica-Oblique' >>>> Error: No display font for 'Symbol' >>>> Error: No display font for 'Times-Bold' >>>> Error: No display font for 'Times-BoldItalic' >>>> Error: No display font for 'Times-Italic' >>>> Error: No display font for 'Times-Roman' >>>> Error: No display font for 'ZapfDingbats' >>>> Warning: Missing charsets in String to FontSet conversion >>>> Warning: Missing charsets in String to FontSet conversion >>>> Warning: Missing charsets in String to FontSet conversion >>>> Warning: Missing charsets in String to FontSet conversion >>>> >>>> Anybody knows how to install them? > > Xpdf is looking for fonts in places that are strange: > > > open("/usr/share/ghostscript/fonts/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/usr/local/share/ghostscript/fonts/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/usr/share/fonts/default/Type1/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/usr/share/fonts/default/ghostscript/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/usr/share/fonts/type1/gsfonts/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) > write(2, "Error: ", 7Error: ) = 7 > write(2, "No display font for 'Courier-Bol"..., 34No display font for 'Courier-Bold') = 34 > > > whereas the above font is actually in > > /usr/share/fonts/urw-fonts/ > > (I've been sort of just ignoring this warning, since no pdfs I've used > have had problem displaying, despite those errors.) > > W Not sure what causes these errors or if they are related to the current issue at all. However, I guess the reason why it doesn't prevent most PDFs from working is that since PDF-1.5, all fonts have to be included in the PDF itself. Previously, some standard fonts could be assumed to be present on the PC. By the way: Does the issue happen with other readers as well? Regards, Florian Philipp [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 262 bytes --] ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] xpdf - missing fonts 2012-01-04 13:52 ` Florian Philipp @ 2012-01-04 15:51 ` Joseph 2012-01-05 8:59 ` Willie WY Wong 2012-01-05 8:49 ` [gentoo-user] " Willie WY Wong 1 sibling, 1 reply; 23+ messages in thread From: Joseph @ 2012-01-04 15:51 UTC (permalink / raw To: gentoo-user On 01/04/12 14:52, Florian Philipp wrote: [snip] >> open("/usr/share/ghostscript/fonts/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) >> open("/usr/local/share/ghostscript/fonts/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) >> open("/usr/share/fonts/default/Type1/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) >> open("/usr/share/fonts/default/ghostscript/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) >> open("/usr/share/fonts/type1/gsfonts/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) >> write(2, "Error: ", 7Error: ) = 7 >> write(2, "No display font for 'Courier-Bol"..., 34No display font for 'Courier-Bold') = 34 >> >> >> whereas the above font is actually in >> >> /usr/share/fonts/urw-fonts/ >> >> (I've been sort of just ignoring this warning, since no pdfs I've used >> have had problem displaying, despite those errors.) >> >> W > >Not sure what causes these errors or if they are related to the current >issue at all. However, I guess the reason why it doesn't prevent most >PDFs from working is that since PDF-1.5, all fonts have to be included >in the PDF itself. Previously, some standard fonts could be assumed to >be present on the PC. > >By the way: Does the issue happen with other readers as well? > >Regards, >Florian Philipp adding to /etc/xpdfrc: displayFontT1 Times-Roman /usr/share/fonts/urw-fonts/n021003l.pfb displayFontT1 Times-Italic /usr/share/fonts/urw-fonts/n021023l.pfb displayFontT1 Times-Bold /usr/share/fonts/urw-fonts/n021004l.pfb displayFontT1 Times-BoldItalic /usr/share/fonts/urw-fonts/n021024l.pfb displayFontT1 Helvetica /usr/share/fonts/urw-fonts/n019003l.pfb displayFontT1 Helvetica-Oblique /usr/share/fonts/urw-fonts/n019023l.pfb displayFontT1 Helvetica-Bold /usr/share/fonts/urw-fonts/n019004l.pfb displayFontT1 Helvetica-BoldOblique /usr/share/fonts/urw-fonts/n019024l.pfb displayFontT1 Courier /usr/share/fonts/urw-fonts/n022003l.pfb displayFontT1 Courier-Oblique /usr/share/fonts/urw-fonts/n022023l.pfb displayFontT1 Courier-Bold /usr/share/fonts/urw-fonts/n022004l.pfb displayFontT1 Courier-BoldOblique /usr/share/fonts/urw-fonts/n022024l.pfb displayFontT1 Symbol /usr/share/fonts/urw-fonts/s050000l.pfb displayFontT1 ZapfDingbats /usr/share/fonts/urw-fonts/d050000l.pfb solves the problem with missing fonts but I still get a message: Warning: Missing charsets in String to FontSet conversion Warning: Missing charsets in String to FontSet conversion Warning: Missing charsets in String to FontSet conversion Warning: Missing charsets in String to FontSet conversion Some pdf documents have on side panel index, does anybody knows what options control the fonts in that index. On my display they are very small (hard to read) and choppy fonts. -- Joseph ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] xpdf - missing fonts 2012-01-04 15:51 ` Joseph @ 2012-01-05 8:59 ` Willie WY Wong 2012-01-05 17:36 ` Joseph 0 siblings, 1 reply; 23+ messages in thread From: Willie WY Wong @ 2012-01-05 8:59 UTC (permalink / raw To: gentoo-user On Wed, Jan 04, 2012 at 08:51:22AM -0700, Penguin Lover Joseph squawked: > adding to /etc/xpdfrc: > > displayFontT1 Times-Roman /usr/share/fonts/urw-fonts/n021003l.pfb > displayFontT1 Times-Italic /usr/share/fonts/urw-fonts/n021023l.pfb > displayFontT1 Times-Bold /usr/share/fonts/urw-fonts/n021004l.pfb > displayFontT1 Times-BoldItalic /usr/share/fonts/urw-fonts/n021024l.pfb > displayFontT1 Helvetica /usr/share/fonts/urw-fonts/n019003l.pfb > displayFontT1 Helvetica-Oblique /usr/share/fonts/urw-fonts/n019023l.pfb > displayFontT1 Helvetica-Bold /usr/share/fonts/urw-fonts/n019004l.pfb > displayFontT1 Helvetica-BoldOblique /usr/share/fonts/urw-fonts/n019024l.pfb > displayFontT1 Courier /usr/share/fonts/urw-fonts/n022003l.pfb > displayFontT1 Courier-Oblique /usr/share/fonts/urw-fonts/n022023l.pfb > displayFontT1 Courier-Bold /usr/share/fonts/urw-fonts/n022004l.pfb > displayFontT1 Courier-BoldOblique /usr/share/fonts/urw-fonts/n022024l.pfb > displayFontT1 Symbol /usr/share/fonts/urw-fonts/s050000l.pfb > displayFontT1 ZapfDingbats /usr/share/fonts/urw-fonts/d050000l.pfb > > solves the problem with missing fonts but I still get a message: Indeed! Thanks for the tip. > Warning: Missing charsets in String to FontSet conversion > Warning: Missing charsets in String to FontSet conversion > Warning: Missing charsets in String to FontSet conversion > Warning: Missing charsets in String to FontSet conversion I could've sworn I've also frequently seen that warning. But I don't see them now. Do they depend on the pdf you try to open? > Some pdf documents have on side panel index, does anybody knows what options control the fonts in that index. > On my display they are very small (hard to read) and choppy fonts. > It should be the same font as other user interface elements, and controlled via the "-font" option. Hum.... actually that shows where the "Missing charsets in String to FontSet conversion" warning for me! By changing to a different fonts for the interface I can sometimes reproduce the warning. So maybe setting the font will help. You can also make that setting systemwide by putting an appropriate incantation in xpdfrc, according to 'man xpdf'. Cheers, W -- Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire et vice versa ~~~ I. Newton ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] xpdf - missing fonts 2012-01-05 8:59 ` Willie WY Wong @ 2012-01-05 17:36 ` Joseph 2012-01-06 8:57 ` Willie WY Wong 2012-01-06 15:52 ` [gentoo-user] " walt 0 siblings, 2 replies; 23+ messages in thread From: Joseph @ 2012-01-05 17:36 UTC (permalink / raw To: gentoo-user On 01/05/12 09:59, Willie WY Wong wrote: [snip] >It should be the same font as other user interface elements, and >controlled via the "-font" option. Hum.... actually that shows where >the "Missing charsets in String to FontSet conversion" warning for me! >By changing to a different fonts for the interface I can sometimes >reproduce the warning. So maybe setting the font will help. You can >also make that setting systemwide by putting an appropriate >incantation in xpdfrc, according to 'man xpdf'. > >Cheers, > >W >-- >Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire > et vice versa ~~~ I. Newton How to you control it via ""-font" option? It seems to me I'm missing some fonts or they are not correctly setup. I've added these fonts to /etc/xpdfrc but it did not help. -- Joseph ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] xpdf - missing fonts 2012-01-05 17:36 ` Joseph @ 2012-01-06 8:57 ` Willie WY Wong 2012-01-06 15:52 ` [gentoo-user] " walt 1 sibling, 0 replies; 23+ messages in thread From: Willie WY Wong @ 2012-01-06 8:57 UTC (permalink / raw To: gentoo-user On Thu, Jan 05, 2012 at 10:36:29AM -0700, Penguin Lover Joseph squawked: > On 01/05/12 09:59, Willie WY Wong wrote: > >It should be the same font as other user interface elements, and > >controlled via the "-font" option. Hum.... actually that shows where > >the "Missing charsets in String to FontSet conversion" warning for me! > >By changing to a different fonts for the interface I can sometimes > >reproduce the warning. So maybe setting the font will help. You can > >also make that setting systemwide by putting an appropriate > >incantation in xpdfrc, according to 'man xpdf'. > How to you control it via ""-font" option? > It seems to me I'm missing some fonts or they are not correctly setup. > I've added these fonts to /etc/xpdfrc but it did not help. > I use the font names given by `xfontsel' Suppose I want to use 'times' family, regular weight, no slant, pixel size 14 (just to make it bigger), I select those options in xfontsel using the dropdown lists, and click 'select' (which copies the string to the clipboard). I then paste the string, which happens to be the -*-times-medium-r-*-*-14-*-*-*-*-*-*-* into my xpdf incantation xpdf -font -*-times-medium-r-*-*-14-*-*-*-*-*-*-* and I get the chosen font for the interface elements. You can alternatively set the X resource xpdf*fontList using the method described http://xwinman.org/resource.php (basically add to ~/.Xdefaults or ~/.Xresources the line xpdf*fontList: -*-times-medium-r-*-*-14-*-*-*-*-*-*-* and restart X [? I am not sure if that is necessary, memory suggests that this file is only read when X starts, but my memory could be faulty]) W -- Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire et vice versa ~~~ I. Newton ^ permalink raw reply [flat|nested] 23+ messages in thread
* [gentoo-user] Re: xpdf - missing fonts 2012-01-05 17:36 ` Joseph 2012-01-06 8:57 ` Willie WY Wong @ 2012-01-06 15:52 ` walt 2012-01-06 16:48 ` Joseph 2012-01-06 16:50 ` Joseph 1 sibling, 2 replies; 23+ messages in thread From: walt @ 2012-01-06 15:52 UTC (permalink / raw To: gentoo-user On 01/05/2012 09:36 AM, Joseph wrote: > It seems to me I'm missing some fonts or they are not correctly setup. > I've added these fonts to /etc/xpdfrc but it did not help. A while ago there was a font problem caused by turning off the NLS useflag, because some font packages honor that flag. Do you have the NLS useflag turned off? ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] Re: xpdf - missing fonts 2012-01-06 15:52 ` [gentoo-user] " walt @ 2012-01-06 16:48 ` Joseph 2012-01-06 21:51 ` walt 2012-01-06 16:50 ` Joseph 1 sibling, 1 reply; 23+ messages in thread From: Joseph @ 2012-01-06 16:48 UTC (permalink / raw To: gentoo-user On 01/06/12 07:52, walt wrote: >On 01/05/2012 09:36 AM, Joseph wrote: >> It seems to me I'm missing some fonts or they are not correctly setup. >> I've added these fonts to /etc/xpdfrc but it did not help. > >A while ago there was a font problem caused by turning off the NLS >useflag, because some font packages honor that flag. > >Do you have the NLS useflag turned off? For which package? I do not have "NLS" flag turned ON globally. -- Joseph ^ permalink raw reply [flat|nested] 23+ messages in thread
* [gentoo-user] Re: xpdf - missing fonts 2012-01-06 16:48 ` Joseph @ 2012-01-06 21:51 ` walt 2012-01-07 3:40 ` Joseph 0 siblings, 1 reply; 23+ messages in thread From: walt @ 2012-01-06 21:51 UTC (permalink / raw To: gentoo-user On 01/06/2012 08:48 AM, Joseph wrote: > On 01/06/12 07:52, walt wrote: >> On 01/05/2012 09:36 AM, Joseph wrote: >>> It seems to me I'm missing some fonts or they are not correctly setup. >>> I've added these fonts to /etc/xpdfrc but it did not help. >> >> A while ago there was a font problem caused by turning off the NLS >> useflag, because some font packages honor that flag. >> >> Do you have the NLS useflag turned off? > > For which package? > I do not have "NLS" flag turned ON globally. Try turning the NLS useflag on for your installed font packages that use NLS. Not all font packages use NLS, dunno why. To see which installed fonts use NLS: #eix -IU nls | grep fonts ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] Re: xpdf - missing fonts 2012-01-06 21:51 ` walt @ 2012-01-07 3:40 ` Joseph 2012-01-09 0:31 ` Walter Dnes 0 siblings, 1 reply; 23+ messages in thread From: Joseph @ 2012-01-07 3:40 UTC (permalink / raw To: gentoo-user On 01/06/12 13:51, walt wrote: >On 01/06/2012 08:48 AM, Joseph wrote: >> On 01/06/12 07:52, walt wrote: >>> On 01/05/2012 09:36 AM, Joseph wrote: >>>> It seems to me I'm missing some fonts or they are not correctly setup. >>>> I've added these fonts to /etc/xpdfrc but it did not help. >>> >>> A while ago there was a font problem caused by turning off the NLS >>> useflag, because some font packages honor that flag. >>> >>> Do you have the NLS useflag turned off? >> >> For which package? >> I do not have "NLS" flag turned ON globally. > >Try turning the NLS useflag on for your installed font packages that use >NLS. Not all font packages use NLS, dunno why. To see which installed >fonts use NLS: > >#eix -IU nls | grep fonts Aparenlty none of them: eix -IU nls | grep fonts [I] media-fonts/font-misc-misc Description: X.Org miscellaneous fonts -- Joseph ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] Re: xpdf - missing fonts 2012-01-07 3:40 ` Joseph @ 2012-01-09 0:31 ` Walter Dnes 2012-01-09 17:50 ` Joseph 0 siblings, 1 reply; 23+ messages in thread From: Walter Dnes @ 2012-01-09 0:31 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1228 bytes --] On Fri, Jan 06, 2012 at 08:40:04PM -0700, Joseph wrote > On 01/06/12 13:51, walt wrote: > > > >Try turning the NLS useflag on for your installed font packages that use > >NLS. Not all font packages use NLS, dunno why. To see which installed > >fonts use NLS: > > > >#eix -IU nls | grep fonts > > Aparenlty none of them: > > eix -IU nls | grep fonts > [I] media-fonts/font-misc-misc > Description: X.Org miscellaneous fonts I have a suggestion that goes in the opposite direction. It's part of bug https://bugs.gentoo.org/show_bug.cgi?id=368335 For some reason, the default is now to generate Unicode encoding only (I believe it's iso10646), not iso8859-1 or any of the other local encodings. I ran into this when xfreecell refused to start, due to missing a specific iso8859-1 font. The bug can be worked around by editing the file /usr/portage/eclass/xorg-2.eclass I'm attaching my edited version. * Rename your current /usr/portage/eclass/xorg-2.eclass * substitute the version attached to this post * re-emerge all your fonts ***NOTE*** This eclass file tries to produce iso8859-1 only. Modify it if you want other iso code files. File attached... -- Walter Dnes <waltdnes@waltdnes.org> [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: xorg-2.eclass --] [-- Type: text/plain; charset=unknown-8bit, Size: 16408 bytes --] # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.51 2011/11/01 13:51:05 chithanh Exp $ # @ECLASS: xorg-2.eclass # @MAINTAINER: # x11@gentoo.org # @AUTHOR: # Author: Tomáš Chvátal <scarabeus@gentoo.org> # Author: Donnie Berkholz <dberkholz@gentoo.org> # @BLURB: Reduces code duplication in the modularized X11 ebuilds. # @DESCRIPTION: # This eclass makes trivial X ebuilds possible for apps, fonts, drivers, # and more. Many things that would normally be done in various functions # can be accessed by setting variables instead, such as patching, # running eautoreconf, passing options to configure and installing docs. # # All you need to do in a basic ebuild is inherit this eclass and set # DESCRIPTION, KEYWORDS and RDEPEND/DEPEND. If your package is hosted # with the other X packages, you don't need to set SRC_URI. Pretty much # everything else should be automatic. GIT_ECLASS="" if [[ ${PV} == *9999* ]]; then GIT_ECLASS="git-2" XORG_EAUTORECONF="yes" fi # If we're a font package, but not the font.alias one FONT_ECLASS="" if [[ ${PN} == font* \ && ${CATEGORY} = media-fonts \ && ${PN} != font-alias \ && ${PN} != font-util ]]; then # Activate font code in the rest of the eclass FONT="yes" FONT_ECLASS="font" fi inherit autotools-utils eutils libtool multilib toolchain-funcs flag-o-matic autotools \ ${FONT_ECLASS} ${GIT_ECLASS} EXPORTED_FUNCTIONS="src_unpack src_compile src_install pkg_postinst pkg_postrm" case "${EAPI:-0}" in 3|4) EXPORTED_FUNCTIONS="${EXPORTED_FUNCTIONS} src_prepare src_configure" ;; *) die "EAPI=${EAPI} is not supported" ;; esac # exports must be ALWAYS after inherit EXPORT_FUNCTIONS ${EXPORTED_FUNCTIONS} IUSE="" HOMEPAGE="http://xorg.freedesktop.org/" # @ECLASS-VARIABLE: XORG_EAUTORECONF # @DESCRIPTION: # If set to 'yes' and configure.ac exists, eautoreconf will run. Set # before inheriting this eclass. : ${XORG_EAUTORECONF:="no"} # @ECLASS-VARIABLE: XORG_BASE_INDIVIDUAL_URI # @DESCRIPTION: # Set up SRC_URI for individual modular releases. If set to an empty # string, no SRC_URI will be provided by the eclass. : ${XORG_BASE_INDIVIDUAL_URI="http://xorg.freedesktop.org/releases/individual"} # @ECLASS-VARIABLE: XORG_MODULE # @DESCRIPTION: # The subdirectory to download source from. Possible settings are app, # doc, data, util, driver, font, lib, proto, xserver. Set above the # inherit to override the default autoconfigured module. if [[ -z ${XORG_MODULE} ]]; then case ${CATEGORY} in app-doc) XORG_MODULE=doc/ ;; media-fonts) XORG_MODULE=font/ ;; x11-apps|x11-wm) XORG_MODULE=app/ ;; x11-misc|x11-themes) XORG_MODULE=util/ ;; x11-base) XORG_MODULE=xserver/ ;; x11-drivers) XORG_MODULE=driver/ ;; x11-proto) XORG_MODULE=proto/ ;; x11-libs) XORG_MODULE=lib/ ;; *) XORG_MODULE= ;; esac fi # @ECLASS-VARIABLE: XORG_PACKAGE_NAME # @DESCRIPTION: # For git checkout the git repository might differ from package name. # This variable can be used for proper directory specification : ${XORG_PACKAGE_NAME:=${PN}} if [[ -n ${GIT_ECLASS} ]]; then : ${EGIT_REPO_URI:="git://anongit.freedesktop.org/git/xorg/${XORG_MODULE}${XORG_PACKAGE_NAME} http://anongit.freedesktop.org/git/xorg/${XORG_MODULE}${XORG_PACKAGE_NAME}"} elif [[ -n ${XORG_BASE_INDIVIDUAL_URI} ]]; then SRC_URI="${XORG_BASE_INDIVIDUAL_URI}/${XORG_MODULE}${P}.tar.bz2" fi : ${SLOT:=0} # Set the license for the package. This can be overridden by setting # LICENSE after the inherit. Nearly all FreeDesktop-hosted X packages # are under the MIT license. (This is what Red Hat does in their rpms) : ${LICENSE:=MIT} # Set up autotools shared dependencies # Remember that all versions here MUST be stable XORG_EAUTORECONF_ARCHES="x86-interix ppc-aix x86-winnt" EAUTORECONF_DEPEND+=" >=sys-devel/libtool-2.2.6a sys-devel/m4" if [[ ${PN} != util-macros ]] ; then EAUTORECONF_DEPEND+=" >=x11-misc/util-macros-1.15.0" # Required even by xorg-server [[ ${PN} == "font-util" ]] || EAUTORECONF_DEPEND+=" >=media-fonts/font-util-1.2.0" fi WANT_AUTOCONF="latest" WANT_AUTOMAKE="latest" for arch in ${XORG_EAUTORECONF_ARCHES}; do EAUTORECONF_DEPENDS+=" ${arch}? ( ${EAUTORECONF_DEPEND} )" done DEPEND+=" ${EAUTORECONF_DEPENDS}" [[ ${XORG_EAUTORECONF} != no ]] && DEPEND+=" ${EAUTORECONF_DEPEND}" unset EAUTORECONF_DEPENDS unset EAUTORECONF_DEPEND if [[ ${FONT} == yes ]]; then RDEPEND+=" media-fonts/encodings x11-apps/mkfontscale x11-apps/mkfontdir" PDEPEND+=" media-fonts/font-alias" DEPEND+=" >=media-fonts/font-util-1.2.0" # @ECLASS-VARIABLE: FONT_DIR # @DESCRIPTION: # If you're creating a font package and the suffix of PN is not equal to # the subdirectory of /usr/share/fonts/ it should install into, set # FONT_DIR to that directory or directories. Set before inheriting this # eclass. [[ -z ${FONT_DIR} ]] && FONT_DIR=${PN##*-} # Fix case of font directories FONT_DIR=${FONT_DIR/ttf/TTF} FONT_DIR=${FONT_DIR/otf/OTF} FONT_DIR=${FONT_DIR/type1/Type1} FONT_DIR=${FONT_DIR/speedo/Speedo} # Set up configure options, wrapped so ebuilds can override if need be [[ -z ${FONT_OPTIONS} ]] && FONT_OPTIONS="--with-fontdir=\"${EPREFIX}/usr/share/fonts/${FONT_DIR}\"" [[ ${PN##*-} = misc || ${PN##*-} = 75dpi || ${PN##*-} = 100dpi || ${PN##*-} = cyrillic ]] && IUSE+=" nls" fi # If we're a driver package, then enable DRIVER case [[ ${PN} == xf86-video-* || ${PN} == xf86-input-* ]] && DRIVER="yes" # @ECLASS-VARIABLE: XORG_STATIC # @DESCRIPTION: # Enables static-libs useflag. Set to no, if your package gets: # # QA: configure: WARNING: unrecognized options: --disable-static : ${XORG_STATIC:="yes"} # Add static-libs useflag where usefull. if [[ ${XORG_STATIC} == yes \ && ${FONT} != yes \ && ${CATEGORY} != app-doc \ && ${CATEGORY} != x11-apps \ && ${CATEGORY} != x11-proto \ && ${CATEGORY} != x11-drivers \ && ${CATEGORY} != media-fonts \ && ${PN} != util-macros \ && ${PN} != xbitmaps \ && ${PN} != xorg-cf-files \ && ${PN/xcursor} = ${PN} ]]; then IUSE+=" static-libs" fi DEPEND+=" >=dev-util/pkgconfig-0.23" # @ECLASS-VARIABLE: XORG_DRI # @DESCRIPTION: # Possible values are "always" or the value of the useflag DRI capabilities # are required for. Default value is "no" # # Eg. XORG_DRI="opengl" will pull all dri dependant deps for opengl useflag : ${XORG_DRI:="no"} DRI_COMMON_DEPEND=" x11-base/xorg-server[-minimal] x11-libs/libdrm " DRI_DEPEND=" x11-proto/xf86driproto x11-proto/glproto x11-proto/dri2proto " case ${XORG_DRI} in no) ;; always) COMMON_DEPEND+=" ${DRI_COMMON_DEPEND}" DEPEND+=" ${DRI_DEPEND}" ;; *) COMMON_DEPEND+=" ${XORG_DRI}? ( ${DRI_COMMON_DEPEND} )" DEPEND+=" ${XORG_DRI}? ( ${DRI_DEPEND} )" IUSE+=" ${XORG_DRI}" ;; esac unset DRI_DEPEND unset DRI_COMMONDEPEND if [[ -n "${DRIVER}" ]]; then COMMON_DEPEND+=" x11-base/xorg-server[xorg] " fi if [[ -n "${DRIVER}" && ${PN} == xf86-input-* ]]; then DEPEND+=" x11-proto/inputproto x11-proto/kbproto x11-proto/xproto " fi if [[ -n "${DRIVER}" && ${PN} == xf86-video-* ]]; then COMMON_DEPEND+=" x11-libs/libpciaccess " # we also needs some protos and libs in all cases DEPEND+=" x11-proto/fontsproto x11-proto/randrproto x11-proto/renderproto x11-proto/videoproto x11-proto/xextproto x11-proto/xineramaproto x11-proto/xproto " fi # @ECLASS-VARIABLE: XORG_DOC # @DESCRIPTION: # Possible values are "always" or the value of the useflag doc packages # are required for. Default value is "no" # # Eg. XORG_DOC="manual" will pull all doc dependant deps for manual useflag : ${XORG_DOC:="no"} DOC_DEPEND=" doc? ( app-text/asciidoc app-text/xmlto app-doc/doxygen app-text/docbook-xml-dtd:4.1.2 app-text/docbook-xml-dtd:4.2 app-text/docbook-xml-dtd:4.3 ) " case ${XORG_DOC} in no) ;; always) DEPEND+=" ${DOC_DEPEND}" ;; *) DEPEND+=" ${XORG_DOC}? ( ${DOC_DEPEND} )" IUSE+=" ${XORG_DOC}" ;; esac unset DOC_DEPEND DEPEND+=" ${COMMON_DEPEND}" RDEPEND+=" ${COMMON_DEPEND}" unset COMMON_DEPEND debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: DEPEND=${DEPEND}" debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: RDEPEND=${RDEPEND}" debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: PDEPEND=${PDEPEND}" # @FUNCTION: xorg-2_pkg_setup # @DESCRIPTION: # Setup prefix compat xorg-2_pkg_setup() { debug-print-function ${FUNCNAME} "$@" [[ ${FONT} == yes ]] && font_pkg_setup "$@" } # @FUNCTION: xorg-2_src_unpack # @DESCRIPTION: # Simply unpack source code. xorg-2_src_unpack() { debug-print-function ${FUNCNAME} "$@" if [[ -n ${GIT_ECLASS} ]]; then git-2_src_unpack else unpack ${A} fi [[ -n ${FONT_OPTIONS} ]] && einfo "Detected font directory: ${FONT_DIR}" } # @FUNCTION: xorg-2_patch_source # @DESCRIPTION: # Apply all patches xorg-2_patch_source() { debug-print-function ${FUNCNAME} "$@" # Use standardized names and locations with bulk patching # Patch directory is ${WORKDIR}/patch # See epatch() in eutils.eclass for more documentation EPATCH_SUFFIX=${EPATCH_SUFFIX:=patch} [[ -d "${EPATCH_SOURCE}" ]] && epatch autotools-utils_src_prepare "$@" } # @FUNCTION: xorg-2_reconf_source # @DESCRIPTION: # Run eautoreconf if necessary, and run elibtoolize. xorg-2_reconf_source() { debug-print-function ${FUNCNAME} "$@" case ${CHOST} in *-interix* | *-aix* | *-winnt*) # some hosts need full eautoreconf [[ -e "./configure.ac" || -e "./configure.in" ]] && eautoreconf || ewarn "Unable to autoreconf the configure script. Things may fail." ;; *) # elibtoolize required for BSD [[ ${XORG_EAUTORECONF} != no && ( -e "./configure.ac" || -e "./configure.in" ) ]] && eautoreconf || elibtoolize ;; esac } # @FUNCTION: xorg-2_src_prepare # @DESCRIPTION: # Prepare a package after unpacking, performing all X-related tasks. xorg-2_src_prepare() { debug-print-function ${FUNCNAME} "$@" xorg-2_patch_source xorg-2_reconf_source } # @FUNCTION: xorg-2_font_configure # @DESCRIPTION: # If a font package, perform any necessary configuration steps xorg-2_font_configure() { debug-print-function ${FUNCNAME} "$@" if has nls ${IUSE//+} && ! use nls; then if grep -q -s "disable-all-encodings" ${ECONF_SOURCE:-.}/configure; then FONT_OPTIONS+=" --enable-iso8859-1 --disable-iso10646 --disable-iso10646-1 --disable-iso8859-2 --disable-iso8859-3 --disable-iso8859-4 --disable-iso8859-5 --disable-iso8859-6 --disable-iso8859-7 --disable-iso8859-8 --disable-iso8859-9 --disable-iso8859-10 --disable-iso8859-11 --disable-iso8859-12 --disable-iso8859-13 --disable-iso8859-14 --disable-iso8859-15 --disable-iso8859-16 --disable-jisx0201 --disable-koi8-r" else FONT_OPTIONS+=" --disable-iso10646 --disable-iso10646-1 --disable-iso8859-2 --disable-iso8859-3 --disable-iso8859-4 --disable-iso8859-5 --disable-iso8859-6 --disable-iso8859-7 --disable-iso8859-8 --disable-iso8859-9 --disable-iso8859-10 --disable-iso8859-11 --disable-iso8859-12 --disable-iso8859-13 --disable-iso8859-14 --disable-iso8859-15 --disable-iso8859-16 --disable-jisx0201 --disable-koi8-r" fi fi } # @FUNCTION: xorg-2_flags_setup # @DESCRIPTION: # Set up CFLAGS for a debug build xorg-2_flags_setup() { debug-print-function ${FUNCNAME} "$@" # Win32 require special define [[ ${CHOST} == *-winnt* ]] && append-cppflags -DWIN32 -D__STDC__ # hardened ldflags [[ ${PN} = xorg-server || -n ${DRIVER} ]] && append-ldflags -Wl,-z,lazy # Quite few libraries fail on runtime without these: if has static-libs ${IUSE//+}; then filter-flags -Wl,-Bdirect filter-ldflags -Bdirect filter-ldflags -Wl,-Bdirect fi } # @FUNCTION: xorg-2_src_configure # @DESCRIPTION: # Perform any necessary pre-configuration steps, then run configure xorg-2_src_configure() { debug-print-function ${FUNCNAME} "$@" xorg-2_flags_setup # @VARIABLE: XORG_CONFIGURE_OPTIONS # @DESCRIPTION: # Array of an additional options to pass to configure. # @DEFAULT_UNSET if [[ $(declare -p XORG_CONFIGURE_OPTIONS 2>&-) != "declare -a"* ]]; then # fallback to CONFIGURE_OPTIONS, deprecated. if [[ -n "${CONFIGURE_OPTIONS}" ]]; then eqawarn "CONFIGURE_OPTIONS are deprecated. Please migrate to XORG_CONFIGURE_OPTIONS" eqawarn "to preserve namespace." fi local xorgconfadd=(${CONFIGURE_OPTIONS}) else local xorgconfadd=("${XORG_CONFIGURE_OPTIONS[@]}") fi [[ -n "${FONT}" ]] && xorg-2_font_configure local myeconfargs=( --disable-dependency-tracking ${FONT_OPTIONS} "${xorgconfadd[@]}" ) autotools-utils_src_configure "$@" } # @FUNCTION: xorg-2_src_compile # @DESCRIPTION: # Compile a package, performing all X-related tasks. xorg-2_src_compile() { debug-print-function ${FUNCNAME} "$@" autotools-utils_src_compile "$@" } # @FUNCTION: xorg-2_src_install # @DESCRIPTION: # Install a built package to ${D}, performing any necessary steps. # Creates a ChangeLog from git if using live ebuilds. xorg-2_src_install() { debug-print-function ${FUNCNAME} "$@" if [[ ${CATEGORY} == x11-proto ]]; then autotools-utils_src_install \ ${PN/proto/}docdir="${EPREFIX}/usr/share/doc/${PF}" \ docdir="${EPREFIX}/usr/share/doc/${PF}" else autotools-utils_src_install \ docdir="${EPREFIX}/usr/share/doc/${PF}" fi if [[ -n ${GIT_ECLASS} ]]; then pushd "${EGIT_STORE_DIR}/${EGIT_CLONE_DIR}" > /dev/null git log ${EGIT_COMMIT} > "${S}"/ChangeLog popd > /dev/null fi if [[ -e "${S}"/ChangeLog ]]; then dodoc "${S}"/ChangeLog || die "dodoc failed" fi # Don't install libtool archives (even with static-libs) remove_libtool_files all [[ -n ${FONT} ]] && remove_font_metadata } # @FUNCTION: xorg-2_pkg_postinst # @DESCRIPTION: # Run X-specific post-installation tasks on the live filesystem. The # only task right now is some setup for font packages. xorg-2_pkg_postinst() { debug-print-function ${FUNCNAME} "$@" if [[ -n ${FONT} ]]; then create_fonts_scale create_fonts_dir font_pkg_postinst "$@" fi } # @FUNCTION: xorg-2_pkg_postrm # @DESCRIPTION: # Run X-specific post-removal tasks on the live filesystem. The only # task right now is some cleanup for font packages. xorg-2_pkg_postrm() { debug-print-function ${FUNCNAME} "$@" if [[ -n ${FONT} ]]; then # if we're doing an upgrade, postinst will do if [[ ${EAPI} -lt 4 || -z ${REPLACED_BY_VERSION} ]]; then create_fonts_scale create_fonts_dir font_pkg_postrm "$@" fi fi } # @FUNCTION: remove_font_metadata # @DESCRIPTION: # Don't let the package install generated font files that may overlap # with other packages. Instead, they're generated in pkg_postinst(). remove_font_metadata() { debug-print-function ${FUNCNAME} "$@" if [[ ${FONT_DIR} != Speedo && ${FONT_DIR} != CID ]]; then einfo "Removing font metadata" rm -rf "${ED}"/usr/share/fonts/${FONT_DIR}/fonts.{scale,dir,cache-1} fi } # @FUNCTION: create_fonts_scale # @DESCRIPTION: # Create fonts.scale file, used by the old server-side fonts subsystem. create_fonts_scale() { debug-print-function ${FUNCNAME} "$@" if [[ ${FONT_DIR} != Speedo && ${FONT_DIR} != CID ]]; then ebegin "Generating fonts.scale" mkfontscale \ -a "${EROOT}/usr/share/fonts/encodings/encodings.dir" \ -- "${EROOT}/usr/share/fonts/${FONT_DIR}" eend $? fi } # @FUNCTION: create_fonts_dir # @DESCRIPTION: # Create fonts.dir file, used by the old server-side fonts subsystem. create_fonts_dir() { debug-print-function ${FUNCNAME} "$@" ebegin "Generating fonts.dir" mkfontdir \ -e "${EROOT}"/usr/share/fonts/encodings \ -e "${EROOT}"/usr/share/fonts/encodings/large \ -- "${EROOT}/usr/share/fonts/${FONT_DIR}" eend $? } ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] Re: xpdf - missing fonts 2012-01-09 0:31 ` Walter Dnes @ 2012-01-09 17:50 ` Joseph 2012-01-09 22:23 ` walt 2012-01-09 22:48 ` Walter Dnes 0 siblings, 2 replies; 23+ messages in thread From: Joseph @ 2012-01-09 17:50 UTC (permalink / raw To: gentoo-user On 01/08/12 19:31, Walter Dnes wrote: >On Fri, Jan 06, 2012 at 08:40:04PM -0700, Joseph wrote >> On 01/06/12 13:51, walt wrote: >> > >> >Try turning the NLS useflag on for your installed font packages that use >> >NLS. Not all font packages use NLS, dunno why. To see which installed >> >fonts use NLS: >> > >> >#eix -IU nls | grep fonts >> >> Aparenlty none of them: >> >> eix -IU nls | grep fonts >> [I] media-fonts/font-misc-misc >> Description: X.Org miscellaneous fonts > > I have a suggestion that goes in the opposite direction. It's part of >bug https://bugs.gentoo.org/show_bug.cgi?id=368335 > > For some reason, the default is now to generate Unicode encoding only >(I believe it's iso10646), not iso8859-1 or any of the other local >encodings. I ran into this when xfreecell refused to start, due to >missing a specific iso8859-1 font. The bug can be worked around by >editing the file /usr/portage/eclass/xorg-2.eclass I'm attaching my >edited version. > >* Rename your current /usr/portage/eclass/xorg-2.eclass >* substitute the version attached to this post >* re-emerge all your fonts > > ***NOTE*** This eclass file tries to produce iso8859-1 only. Modify >it if you want other iso code files. > > File attached... > >-- >Walter Dnes <waltdnes@waltdnes.org> I think you are correct on this one. I'll try to modify your system. What is the easiest way to re-emerge all the fonts on the system or list the one that are installed? I've manually installed some of the fonts that I have on my other system and it partially solved the problem. -- Joseph ^ permalink raw reply [flat|nested] 23+ messages in thread
* [gentoo-user] Re: xpdf - missing fonts 2012-01-09 17:50 ` Joseph @ 2012-01-09 22:23 ` walt 2012-01-09 22:39 ` Michael Mol 2012-01-09 22:48 ` Walter Dnes 1 sibling, 1 reply; 23+ messages in thread From: walt @ 2012-01-09 22:23 UTC (permalink / raw To: gentoo-user On 01/09/2012 09:50 AM, Joseph wrote: > What is the easiest way to re-emerge all the fonts on the system or > list the one that are installed? Listing them is easy: #eix -I | grep media-fonts I'll bet there is some other tool that will also emerge all of them for you but I'm too lazy to do the research :p ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] Re: xpdf - missing fonts 2012-01-09 22:23 ` walt @ 2012-01-09 22:39 ` Michael Mol 0 siblings, 0 replies; 23+ messages in thread From: Michael Mol @ 2012-01-09 22:39 UTC (permalink / raw To: gentoo-user On Mon, Jan 9, 2012 at 5:23 PM, walt <w41ter@gmail.com> wrote: > On 01/09/2012 09:50 AM, Joseph wrote: >> What is the easiest way to re-emerge all the fonts on the system or >> list the one that are installed? > > Listing them is easy: > #eix -I | grep media-fonts > > I'll bet there is some other tool that will also emerge all of them > for you but I'm too lazy to do the research :p emerge -1 $(qlist -IC media-fonts/*) # For the lazy -- :wq ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] Re: xpdf - missing fonts 2012-01-09 17:50 ` Joseph 2012-01-09 22:23 ` walt @ 2012-01-09 22:48 ` Walter Dnes 1 sibling, 0 replies; 23+ messages in thread From: Walter Dnes @ 2012-01-09 22:48 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1469 bytes --] On Mon, Jan 09, 2012 at 10:50:28AM -0700, Joseph wrote > I think you are correct on this one. I'll try to modify your system. > What is the easiest way to re-emerge all the fonts on the system or > list the one that are installed? > > I've manually installed some of the fonts that I have on my other > system and it partially solved the problem. I've attached a bash script to list all files, including those pulled in as dependancies of xorg-server. It also sets up another bash script to do the actual emerge. Here's how it works... * It creates a bash script "ef" (emerge fonts) * First put in the "#!/bin/bash" * Add "emerge -1 " to the file. *NOTE* The "-n" option prevents the normal linefeed * "emerge -pv --depclean" lists (amongst other things) all installed packages. This includes both stuff in world, and stuff that is pulled in as a dependancy * "grep media-fonts" filters the listing down to the "media-fonts" group, including various font utilities. * "sort -u" filters out duplicate lines * 'grep -v "pulled in by"' gets rid of the "pulled in by" lines. * The "sed" command puts an "=" sign in front of each package name, to make it a valid emerge parameter * the "tr" command converts linefeeds to spaces. The string of packagenames is appended to "emerge -1 " in the file "ef" * last, but not least, the file "ef" is set executable. You can look at it before launching it. -- Walter Dnes <waltdnes@waltdnes.org> [-- Attachment #2: listfonts --] [-- Type: text/plain, Size: 209 bytes --] #!/bin/bash echo "#!/bin/bash" > ef echo -n "emerge -1 " >> ef emerge -pv --depclean | \ grep media-fonts | \ sort -u | \ grep -v "pulled in by" | \ sed "s/ /=/" |\ tr '\n' ' ' >> ef chmod 744 ef ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] Re: xpdf - missing fonts 2012-01-06 15:52 ` [gentoo-user] " walt 2012-01-06 16:48 ` Joseph @ 2012-01-06 16:50 ` Joseph 1 sibling, 0 replies; 23+ messages in thread From: Joseph @ 2012-01-06 16:50 UTC (permalink / raw To: gentoo-user On 01/06/12 07:52, walt wrote: >On 01/05/2012 09:36 AM, Joseph wrote: >> It seems to me I'm missing some fonts or they are not correctly setup. >> I've added these fonts to /etc/xpdfrc but it did not help. > >A while ago there was a font problem caused by turning off the NLS >useflag, because some font packages honor that flag. > >Do you have the NLS useflag turned off? epdfview has this flag ON: app-text/epdfview-0.1.6-r1 USE="cups nls -test" -- Joseph ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] xpdf - missing fonts 2012-01-04 13:52 ` Florian Philipp 2012-01-04 15:51 ` Joseph @ 2012-01-05 8:49 ` Willie WY Wong 2012-01-05 17:50 ` Joseph 1 sibling, 1 reply; 23+ messages in thread From: Willie WY Wong @ 2012-01-05 8:49 UTC (permalink / raw To: gentoo-user On Wed, Jan 04, 2012 at 02:52:38PM +0100, Penguin Lover Florian Philipp squawked: > Am 04.01.2012 11:52, schrieb Willie WY Wong: > > Xpdf is looking for fonts in places that are strange: > > > > > > open("/usr/share/ghostscript/fonts/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) > > open("/usr/local/share/ghostscript/fonts/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) > > open("/usr/share/fonts/default/Type1/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) > > open("/usr/share/fonts/default/ghostscript/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) > > open("/usr/share/fonts/type1/gsfonts/n022004l.pfb", O_RDONLY) = -1 ENOENT (No such file or directory) > > write(2, "Error: ", 7Error: ) = 7 > > write(2, "No display font for 'Courier-Bol"..., 34No display font for 'Courier-Bold') = 34 > > > > > > whereas the above font is actually in > > > > /usr/share/fonts/urw-fonts/ > > > > (I've been sort of just ignoring this warning, since no pdfs I've used > > have had problem displaying, despite those errors.) > > Not sure what causes these errors or if they are related to the current > issue at all. However, I guess the reason why it doesn't prevent most > PDFs from working is that since PDF-1.5, all fonts have to be included > in the PDF itself. Previously, some standard fonts could be assumed to > be present on the PC. > > By the way: Does the issue happen with other readers as well? I have not tested many readers. But gv and epdfview (which are both installed on my system) do not have this problem. W -- Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire et vice versa ~~~ I. Newton ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] xpdf - missing fonts 2012-01-05 8:49 ` [gentoo-user] " Willie WY Wong @ 2012-01-05 17:50 ` Joseph 2012-01-06 9:05 ` Willie WY Wong 0 siblings, 1 reply; 23+ messages in thread From: Joseph @ 2012-01-05 17:50 UTC (permalink / raw To: gentoo-user On 01/05/12 09:49, Willie WY Wong wrote: >> Not sure what causes these errors or if they are related to the current >> issue at all. However, I guess the reason why it doesn't prevent most >> PDFs from working is that since PDF-1.5, all fonts have to be included >> in the PDF itself. Previously, some standard fonts could be assumed to >> be present on the PC. >> >> By the way: Does the issue happen with other readers as well? > >I have not tested many readers. But gv and epdfview (which are both >installed on my system) do not have this problem. > >W >-- >Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire > et vice versa ~~~ I. Newton I tred to compile epdfview but it failed: JobPrint.cxx: In member function ‘guint ePDFView::JobPrint::setUpPageRange()’: JobPrint.cxx:379:56: warning: suggest parentheses around ‘&&’ within ‘||’ PDFDocument.cxx: In member function ‘virtual ePDFView::DocumentPage* ePDFView::PDFDocument::renderPage(gint)’: PDFDocument.cxx:618:62: error: ‘poppler_page_render_to_pixbuf’ was not declared in this scope PDFDocument.cxx: In member function ‘virtual gboolean ePDFView::PDFDocument::loadFile(const gchar*, const gchar*, GError**)’: PDFDocument.cxx:231:45: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result make[3]: *** [libepdfview_a-PDFDocument.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/app-text/epdfview-0.1.6-r1/work/epdfview-0.1.6/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-text/epdfview-0.1.6-r1/work/epdfview-0.1.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-text/epdfview-0.1.6-r1/work/epdfview-0.1.6' make: *** [all] Error 2 emake failed * ERROR: app-text/epdfview-0.1.6-r1 failed (compile phase): * emake failed * * Call stack: * ebuild.sh, line 75: Called src_compile * environment, line 2114: Called _eapi2_src_compile * phase-helpers.sh, line 577: Called die * The specific snippet of code: * emake || die "emake failed" -- Joseph ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] xpdf - missing fonts 2012-01-05 17:50 ` Joseph @ 2012-01-06 9:05 ` Willie WY Wong 2012-01-06 16:44 ` Joseph 0 siblings, 1 reply; 23+ messages in thread From: Willie WY Wong @ 2012-01-06 9:05 UTC (permalink / raw To: gentoo-user On Thu, Jan 05, 2012 at 10:50:19AM -0700, Penguin Lover Joseph squawked: > I tred to compile epdfview but it failed: > > JobPrint.cxx: In member function ‘guint ePDFView::JobPrint::setUpPageRange()’: > JobPrint.cxx:379:56: warning: suggest parentheses around ‘&&’ within ‘||’ > PDFDocument.cxx: In member function ‘virtual ePDFView::DocumentPage* ePDFView::PDFDocument::renderPage(gint)’: > PDFDocument.cxx:618:62: error: ‘poppler_page_render_to_pixbuf’ was not declared in this scope > PDFDocument.cxx: In member function ‘virtual gboolean ePDFView::PDFDocument::loadFile(const gchar*, const gchar*, GError**)’: > PDFDocument.cxx:231:45: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result > make[3]: *** [libepdfview_a-PDFDocument.o] Error 1 > make[3]: *** Waiting for unfinished jobs.... > make[3]: Leaving directory `/var/tmp/portage/app-text/epdfview-0.1.6-r1/work/epdfview-0.1.6/src' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/var/tmp/portage/app-text/epdfview-0.1.6-r1/work/epdfview-0.1.6/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/var/tmp/portage/app-text/epdfview-0.1.6-r1/work/epdfview-0.1.6' > make: *** [all] Error 2 > emake failed > * ERROR: app-text/epdfview-0.1.6-r1 failed (compile phase): > * emake failed > * > * Call stack: > * ebuild.sh, line 75: Called src_compile > * environment, line 2114: Called _eapi2_src_compile > * phase-helpers.sh, line 577: Called die > * The specific snippet of code: > * emake || die "emake failed" > Which version of poppler do you have installed? I am almost certain you are running into this conflict: https://bugs.gentoo.org/show_bug.cgi?id=388235 So try keywording version 0.1.8: it has been available since last August, and I think it is stable enough (except for some silly bugs like https://bugs.gentoo.org/show_bug.cgi?id=387125 ). W -- Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire et vice versa ~~~ I. Newton ^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [gentoo-user] xpdf - missing fonts 2012-01-06 9:05 ` Willie WY Wong @ 2012-01-06 16:44 ` Joseph 0 siblings, 0 replies; 23+ messages in thread From: Joseph @ 2012-01-06 16:44 UTC (permalink / raw To: gentoo-user On 01/06/12 10:05, Willie WY Wong wrote: >On Thu, Jan 05, 2012 at 10:50:19AM -0700, Penguin Lover Joseph squawked: >> I tred to compile epdfview but it failed: >> >> JobPrint.cxx: In member function ‘guint ePDFView::JobPrint::setUpPageRange()’: >> JobPrint.cxx:379:56: warning: suggest parentheses around ‘&&’ within ‘||’ >> PDFDocument.cxx: In member function ‘virtual ePDFView::DocumentPage* ePDFView::PDFDocument::renderPage(gint)’: >> PDFDocument.cxx:618:62: error: ‘poppler_page_render_to_pixbuf’ was not declared in this scope >> PDFDocument.cxx: In member function ‘virtual gboolean ePDFView::PDFDocument::loadFile(const gchar*, const gchar*, GError**)’: >> PDFDocument.cxx:231:45: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result >> make[3]: *** [libepdfview_a-PDFDocument.o] Error 1 >> make[3]: *** Waiting for unfinished jobs.... >> make[3]: Leaving directory `/var/tmp/portage/app-text/epdfview-0.1.6-r1/work/epdfview-0.1.6/src' >> make[2]: *** [all-recursive] Error 1 >> make[2]: Leaving directory `/var/tmp/portage/app-text/epdfview-0.1.6-r1/work/epdfview-0.1.6/src' >> make[1]: *** [all-recursive] Error 1 >> make[1]: Leaving directory `/var/tmp/portage/app-text/epdfview-0.1.6-r1/work/epdfview-0.1.6' >> make: *** [all] Error 2 >> emake failed >> * ERROR: app-text/epdfview-0.1.6-r1 failed (compile phase): >> * emake failed >> * >> * Call stack: >> * ebuild.sh, line 75: Called src_compile >> * environment, line 2114: Called _eapi2_src_compile >> * phase-helpers.sh, line 577: Called die >> * The specific snippet of code: >> * emake || die "emake failed" >> > >Which version of poppler do you have installed? I am almost certain >you are running into this conflict: > https://bugs.gentoo.org/show_bug.cgi?id=388235 > >So try keywording version 0.1.8: it has been available since last >August, and I think it is stable enough (except for some silly bugs >like https://bugs.gentoo.org/show_bug.cgi?id=387125 ). > >W Yes, I'm running the latest version: app-text/poppler-0.18.2 -- Joseph ^ permalink raw reply [flat|nested] 23+ messages in thread
end of thread, other threads:[~2012-01-09 22:51 UTC | newest] Thread overview: 23+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-01-03 22:15 [gentoo-user] xpdf - missing fonts Joseph 2012-01-03 23:20 ` Florian Philipp 2012-01-03 23:42 ` Joseph 2012-01-04 10:52 ` Willie WY Wong 2012-01-04 13:52 ` Florian Philipp 2012-01-04 15:51 ` Joseph 2012-01-05 8:59 ` Willie WY Wong 2012-01-05 17:36 ` Joseph 2012-01-06 8:57 ` Willie WY Wong 2012-01-06 15:52 ` [gentoo-user] " walt 2012-01-06 16:48 ` Joseph 2012-01-06 21:51 ` walt 2012-01-07 3:40 ` Joseph 2012-01-09 0:31 ` Walter Dnes 2012-01-09 17:50 ` Joseph 2012-01-09 22:23 ` walt 2012-01-09 22:39 ` Michael Mol 2012-01-09 22:48 ` Walter Dnes 2012-01-06 16:50 ` Joseph 2012-01-05 8:49 ` [gentoo-user] " Willie WY Wong 2012-01-05 17:50 ` Joseph 2012-01-06 9:05 ` Willie WY Wong 2012-01-06 16:44 ` Joseph
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox