Re: XFree86 4.0.1 and TrueType fonts
Marc Wilson wrote: [...] It really is just that simple. I had zero luck getting xfstt to cooperate with XF4, and had all sorts of weird font-isms until I disabled it. Aterm would display hash instead of line-drawing characters, rxvt wouldn't even START, Eterm would start, but not display the menus properly, etc. I've added this in the font path and xfstt seems to work right now: Section Files FontPathtcp/127.0.0.1:7101 # xfstt FontPath/usr/share/fonts/truetype FontPath/usr/lib/X11/fonts/misc FontPath/usr/lib/X11/fonts/75dpi/:unscaled FontPath/usr/lib/X11/fonts/100dpi/:unscaled FontPath/usr/lib/X11/fonts/Type1 FontPath/usr/lib/X11/fonts/Speedo FontPath/usr/lib/X11/fonts/75dpi FontPath/usr/lib/X11/fonts/100dpi EndSection Anyway, i'm still little confused about true type font with XF4. Without xfstt Netscape show in the preference font requester the same true type font label as monotype. Andrea
Re: XFree86 4.0.1 and TrueType fonts
On Sun, Nov 12, 2000 at 02:24:01PM +0100, Andrea Vettorello wrote: Marc Wilson wrote: [...] It really is just that simple. I had zero luck getting xfstt to cooperate with XF4, and had all sorts of weird font-isms until I disabled it. Aterm would display hash instead of line-drawing characters, rxvt wouldn't even START, Eterm would start, but not display the menus properly, etc. I've added this in the font path and xfstt seems to work right now: Section Files FontPathtcp/127.0.0.1:7101 # xfstt FontPath/usr/share/fonts/truetype FontPath/usr/lib/X11/fonts/misc FontPath/usr/lib/X11/fonts/75dpi/:unscaled FontPath/usr/lib/X11/fonts/100dpi/:unscaled FontPath/usr/lib/X11/fonts/Type1 FontPath/usr/lib/X11/fonts/Speedo FontPath/usr/lib/X11/fonts/75dpi FontPath/usr/lib/X11/fonts/100dpi EndSection Anyway, i'm still little confused about true type font with XF4. Without xfstt Netscape show in the preference font requester the same true type font label as monotype. Well, the new xfs with X4 does support TrueType fonts. Use 'mkttfdir' in the fttools package to make a fonts.dir file in /usr/share/fonts/truetype. Add the truetype path to the config file for xfs and restart it. xfstt then becomes redundant. -- #! /bin/sh # ppp-address: What's my Internet Address for ppp0 ? /sbin/ifconfig ppp0 2 /dev/null | grep 'inet addr:' | sed \ 's=.*inet addr\:\([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\).*=\1='
Re: XFree86 4.0.1 and TrueType fonts
John S. J. Anderson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marc Wilson [EMAIL PROTECTED] writes: It's not all that hard... I went through this last night. Well, yah, it shouldn't have been. 8^/= I was doing the right thing, and for some reason, it wasn't working. Then, it started working. I'm not sure _why_ -- but I did notice a file called /etc/X11/.XF86Config.swp, which I reasoned might be doing something to that's vim swap file, should not interfere with X. prevent my XF86Config from being read. So, I moved it, restarted X, and *poof*, TrueType fonts a plenty. erik
Re: X4 and a Trident Card? (was: Re: XFree86 4.0.1 and TrueType fonts)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rogerio Brito [EMAIL PROTECTED] writes: On Nov 04 2000, John S. J. Anderson wrote: Once I got it working, however, I was quite impressed. It's noticeably faster than XFree 3.3.6 on window movement and screen redraws, even with the old 4 MB Trident card I've got. Old Trident Card? Hey, which one? We may be in the same boat. It's a generic Trident 3Dimage 975 AGP card. I've got a Trident 3D Image and it was a pain in the arse to get a Modeline working with 3.3.6 (X seems to misbehave with this card -- if I use a line that was supposedly to use a refresh rate of 60Hz, then sometimes I get my monitor saying that the signal it is receiving is for 20Hz or something else below its capabilities). That's odd -- I never really had that much trouble with my monitor (which is a generic 17 monitor from PCWarehouse). I can get 16bit color in 1280x1024, and that's good enough for me. Which card do you have? I'm also a bit scared of upgrading to woody after I heard about the major breakage with the libc upgrade... Well, that should be all better now, and the XFree update was pretty pain-free (aside from a couple hours reading man pages and trying to kludge together a XF86Config file...) john. - -- - [ John S Jacobs Anderson ]--URL:mailto:[EMAIL PROTECTED] [ Genehack: Not your daddy's weblog ]--URL:http://genehack.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: Mailcrypt 3.5.5 and Gnu Privacy Guard iD8DBQE6BYb2WRJRdOm3KFARAuo3AJ9I2yyM5ysQ5FF54ms5/J12Azrr8wCghW5R fQ/gZ94zItZcUdSx7C7puWA= =C1nA -END PGP SIGNATURE-
Re: XFree86 4.0.1 and TrueType fonts
http://www.mindspring.com/~john_mcl/adding_fonts.html This is not XF4-specific but does give a good guide to getting ttfs running in X in general, plus all the required tools can be downloaded in a single tarball. It would make sense if ttmkfdir was included with freetype, but it appears not to be. == Paul Sims ([EMAIL PROTECTED]) SpireLUG - the Chesterfield Linux User Group www.spirelug.org.uk == On 4 Nov 2000, John S. J. Anderson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 wulfie [EMAIL PROTECTED] writes: ttmkfdir in the ttf dir :) Add the path to your fonts section in XF86Config, freetype to the modules section (you already did both, it seems) you're there. What's the exact path to ttmkfdir on your box? I don't seem to have it, nor do I have a ttf dir -- at least, 'locate /ttf/' doesn't produce anything. I've got freetype in the modules section, and I've got the path to the TrueType font directory as a FontPath, but I don't get any TrueType fonts available in various font selection dialogs, and nothing at all in the ttf foundry (which is where all the fonts ended up when using xfstt). Any other advice on where to start digging for this info? Most of the web (including my own site, sadly enough) doesn't look all that great in GUI browsers without the 'standard' fonts... john. - -- - [ John S Jacobs Anderson ]--URL:mailto:[EMAIL PROTECTED] [ Genehack: Not your daddy's weblog ]--URL:http://genehack.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: Mailcrypt 3.5.5 and Gnu Privacy Guard iD8DBQE6BFXrWRJRdOm3KFARAncOAJ4jGPGiYyCJYVyhweLVA9KUo3lC4ACfSiYG QresIRFVMI/pROtM/aq35pc= =uHeY -END PGP SIGNATURE- -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
RE: XFree86 4.0.1 and TrueType fonts
It's not all that hard... I went through this last night. Ok, I have my ttf fonts in /usr/share/lib/fonts/truetype. I created a symlink /usr/lib/X11/fonts/truetype to match the other font paths, and added that to my fontpath list in /etc/X11/XF86Config-4. I then went there and used ttmkfdir to create the fonts.dir file that the freetype module is looking for. Restarted X, and I had instant TrueType! It really is just that simple. I had zero luck getting xfstt to cooperate with XF4, and had all sorts of weird font-isms until I disabled it. Aterm would display hash instead of line-drawing characters, rxvt wouldn't even START, Eterm would start, but not display the menus properly, etc. Of course, whoever it is at XFree86 that wrote README.fonts needs to be shot. With large-caliber weapons. You can get ttmkfdir at http://freshmeat.net/projects/ttmkfdir Have fun! - Marc Wilson [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.moonkingdom.net/mwilson -Original Message- From: John S. J. Anderson [mailto:[EMAIL PROTECTED] Sent: Saturday, November 04, 2000 10:31 AM To: debian-user@lists.debian.org Subject:Re: XFree86 4.0.1 and TrueType fonts -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 wulfie [EMAIL PROTECTED] writes: ttmkfdir in the ttf dir :) Add the path to your fonts section in XF86Config, freetype to the modules section (you already did both, it seems) you're there. What's the exact path to ttmkfdir on your box? I don't seem to have it, nor do I have a ttf dir -- at least, 'locate /ttf/' doesn't produce anything. I've got freetype in the modules section, and I've got the path to the TrueType font directory as a FontPath, but I don't get any TrueType fonts available in various font selection dialogs, and nothing at all in the ttf foundry (which is where all the fonts ended up when using xfstt). Any other advice on where to start digging for this info? Most of the web (including my own site, sadly enough) doesn't look all that great in GUI browsers without the 'standard' fonts... john. - -- - -- -- [ John S Jacobs Anderson ]--URL:mailto:[EMAIL PROTECTED] [ Genehack: Not your daddy's weblog ]--URL:http://genehack.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: Mailcrypt 3.5.5 and Gnu Privacy Guard iD8DBQE6BFXrWRJRdOm3KFARAncOAJ4jGPGiYyCJYVyhweLVA9KUo3lC4ACfSiYG QresIRFVMI/pROtM/aq35pc= =uHeY -END PGP SIGNATURE- -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: XFree86 4.0.1 and TrueType fonts
On Sun, Nov 05, 2000 at 11:03:55AM -0800, Marc Wilson wrote: It really is just that simple. I had zero luck getting xfstt to cooperate with XF4, and had all sorts of weird font-isms until I disabled it. Aterm would display hash instead of line-drawing characters, rxvt wouldn't even START, Eterm would start, but not display the menus properly, etc. Hmm, it's working fine here. In XF86Config have a FontPath unix\:7101 and that's all it took. It was my understanding that the xfs with X 4 was supposed to be TrueType enabled (but maybe it's just the internal font engine??). -- #! /bin/sh # ppp-address: What's my Internet Address for ppp0 ? /sbin/ifconfig ppp0 2 /dev/null | grep 'inet addr:' | sed \ 's=.*inet addr\:\([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\).*=\1='
Re: XFree86 4.0.1 and TrueType fonts
wulfie wrote: It would make sense if ttmkfdir was included with freetype, but it appears not to be. fttools has mkttfdir, which works -- see shy jo
Re: XFree86 4.0.1 and TrueType fonts
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marc Wilson [EMAIL PROTECTED] writes: It's not all that hard... I went through this last night. Well, yah, it shouldn't have been. 8^/= I was doing the right thing, and for some reason, it wasn't working. Then, it started working. I'm not sure _why_ -- but I did notice a file called /etc/X11/.XF86Config.swp, which I reasoned might be doing something to prevent my XF86Config from being read. So, I moved it, restarted X, and *poof*, TrueType fonts a plenty. Thanks to all who wrote in with suggestions. john. - -- - [ John S Jacobs Anderson ]--URL:mailto:[EMAIL PROTECTED] [ Genehack: Not your daddy's weblog ]--URL:http://genehack.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: Mailcrypt 3.5.5 and Gnu Privacy Guard iD8DBQE6BcsdWRJRdOm3KFARAiSPAJ43uBJGrqjgLxHRNV46tOY+6i+sFACgniAQ y1tuMFyuE/TSbxX5OUKYPnM= =kJb4 -END PGP SIGNATURE-
Re: XFree86 4.0.1 and TrueType fonts
John S. J. Anderson [EMAIL PROTECTED] writes: wulfie [EMAIL PROTECTED] writes: ttmkfdir in the ttf dir :) Add the path to your fonts section in XF86Config, freetype to the modules section (you already did both, it seems) you're there. What's the exact path to ttmkfdir on your box? I don't seem to have it, nor do I have a ttf dir -- at least, 'locate /ttf/' doesn't produce anything. I've got freetype in the modules section, and I've got the path to the TrueType font directory as a FontPath, but I don't get any TrueType fonts available in various font selection dialogs, and nothing at all in the ttf foundry (which is where all the fonts ended up when using xfstt). I think it should be 'mkttfdir'. This one appears in the description of the fttools Debian package (I didn't install it yet, so I couldn't try it). Greetings, joachim
XFree86 4.0.1 and TrueType fonts
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greetings -- Did the XFree86 upgrade last night. Wasn't too bad; if I hadn't mis-remembered the video card in this box, I think it would have been seamless. As it was, I had to do some reading and playing around to get /etc/X11/XF86Config set up the right way. Once I got it working, however, I was quite impressed. It's noticeably faster than XFree 3.3.6 on window movement and screen redraws, even with the old 4 MB Trident card I've got. The one thing I had trouble figuring out was my fonts. I've got a slew of various TrueType fonts in /usr/share/fonts/truetype. I was using xfstt to serve them via port 7101, but from what I can gather, the Right Way under the XFree86 4 is to use one of the TrueType backends. I had Loadfreetype in my XF86Config, and I added the directory as a FontPath, but I still didn't have access to those TrueType fonts. Reading a bit between the lines in the docu, I figured out that I needed to do a 'mkfontdir' in my TrueType directory -- but 'mkfontdir' didn't seem to want to work. Turning to Google, I found URL:http://www.xfree86.org/pipermail/newbie/2000-June/17.html, which lead me to ttmkfdir, which I downloaded via URL:http://freshmeat.net/projects/ttmkfdir/ I already had the freetype2 and freetype2-dev packages installed, so getting ttmkfdir to build was not too hard -- I had to add '-I/usr/include/freetype' to the CFLAGS line in the Makefile, and then 'make' built the binary. I then ran 'ttmkfdir /usr/share/fonts/truetype/ fonts.scale', which built the fonts.dir and fonts.scale files. However, upon restarting X, I still can't see any of my TrueType fonts. Does anybody out there have a clue to spare on this issue? TIA, john. - -- - [ John S Jacobs Anderson ]--URL:mailto:[EMAIL PROTECTED] [ Genehack: Not your daddy's weblog ]--URL:http://genehack.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: Mailcrypt 3.5.5 and Gnu Privacy Guard iD8DBQE6BDVuWRJRdOm3KFARAvQUAJ9MzB3yFHoKTqMugT2OR6IusES0SgCfR/Km hQ/hQsP8tNBPLScme+YWT7c= =PMcc -END PGP SIGNATURE-
Re: XFree86 4.0.1 and TrueType fonts
ttmkfdir in the ttf dir :) Add the path to your fonts section in XF86Config, freetype to the modules section (you already did both, it seems) you're there. == Paul Sims ([EMAIL PROTECTED]) SpireLUG - the Chesterfield Linux User Group www.spirelug.org.uk == On 4 Nov 2000, John S. J. Anderson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greetings -- Did the XFree86 upgrade last night. Wasn't too bad; if I hadn't mis-remembered the video card in this box, I think it would have been seamless. As it was, I had to do some reading and playing around to get /etc/X11/XF86Config set up the right way. Once I got it working, however, I was quite impressed. It's noticeably faster than XFree 3.3.6 on window movement and screen redraws, even with the old 4 MB Trident card I've got. The one thing I had trouble figuring out was my fonts. I've got a slew of various TrueType fonts in /usr/share/fonts/truetype. I was using xfstt to serve them via port 7101, but from what I can gather, the Right Way under the XFree86 4 is to use one of the TrueType backends. I had Loadfreetype in my XF86Config, and I added the directory as a FontPath, but I still didn't have access to those TrueType fonts. Reading a bit between the lines in the docu, I figured out that I needed to do a 'mkfontdir' in my TrueType directory -- but 'mkfontdir' didn't seem to want to work. Turning to Google, I found URL:http://www.xfree86.org/pipermail/newbie/2000-June/17.html, which lead me to ttmkfdir, which I downloaded via URL:http://freshmeat.net/projects/ttmkfdir/ I already had the freetype2 and freetype2-dev packages installed, so getting ttmkfdir to build was not too hard -- I had to add '-I/usr/include/freetype' to the CFLAGS line in the Makefile, and then 'make' built the binary. I then ran 'ttmkfdir /usr/share/fonts/truetype/ fonts.scale', which built the fonts.dir and fonts.scale files. However, upon restarting X, I still can't see any of my TrueType fonts. Does anybody out there have a clue to spare on this issue? TIA, john. - -- - [ John S Jacobs Anderson ]--URL:mailto:[EMAIL PROTECTED] [ Genehack: Not your daddy's weblog ]--URL:http://genehack.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: Mailcrypt 3.5.5 and Gnu Privacy Guard iD8DBQE6BDVuWRJRdOm3KFARAvQUAJ9MzB3yFHoKTqMugT2OR6IusES0SgCfR/Km hQ/hQsP8tNBPLScme+YWT7c= =PMcc -END PGP SIGNATURE- -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: XFree86 4.0.1 and TrueType fonts
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 wulfie [EMAIL PROTECTED] writes: ttmkfdir in the ttf dir :) Add the path to your fonts section in XF86Config, freetype to the modules section (you already did both, it seems) you're there. What's the exact path to ttmkfdir on your box? I don't seem to have it, nor do I have a ttf dir -- at least, 'locate /ttf/' doesn't produce anything. I've got freetype in the modules section, and I've got the path to the TrueType font directory as a FontPath, but I don't get any TrueType fonts available in various font selection dialogs, and nothing at all in the ttf foundry (which is where all the fonts ended up when using xfstt). Any other advice on where to start digging for this info? Most of the web (including my own site, sadly enough) doesn't look all that great in GUI browsers without the 'standard' fonts... john. - -- - [ John S Jacobs Anderson ]--URL:mailto:[EMAIL PROTECTED] [ Genehack: Not your daddy's weblog ]--URL:http://genehack.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.4 (GNU/Linux) Comment: Mailcrypt 3.5.5 and Gnu Privacy Guard iD8DBQE6BFXrWRJRdOm3KFARAncOAJ4jGPGiYyCJYVyhweLVA9KUo3lC4ACfSiYG QresIRFVMI/pROtM/aq35pc= =uHeY -END PGP SIGNATURE-
X4 and a Trident Card? (was: Re: XFree86 4.0.1 and TrueType fonts)
On Nov 04 2000, John S. J. Anderson wrote: Once I got it working, however, I was quite impressed. It's noticeably faster than XFree 3.3.6 on window movement and screen redraws, even with the old 4 MB Trident card I've got. Old Trident Card? Hey, which one? We may be in the same boat. I've got a Trident 3D Image and it was a pain in the arse to get a Modeline working with 3.3.6 (X seems to misbehave with this card -- if I use a line that was supposedly to use a refresh rate of 60Hz, then sometimes I get my monitor saying that the signal it is receiving is for 20Hz or something else below its capabilities). Since I don't want to have the same problems with X4, then I'm just waiting until some bugs more are found or people report success with this card. Which card do you have? I'm also a bit scared of upgrading to woody after I heard about the major breakage with the libc upgrade... []s, Roger... -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rogerio Brito - [EMAIL PROTECTED] - http://www.ime.usp.br/~rbrito/ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=