Re: Type1 font problem (Was: Re: mozilla-devel problems)
Wesley Morgan wrote: > Im my many hours of playing with fonts, I seem to recall that the Freetype > / XFT module is perfectly capable of rendering the Type1 fonts. Make sure > you take the PATH out of your XftConfig in addition to the XF86Config Some fonts have characters with a zero width, and you have to calculate from the left and right bearing, instead. One of the original NCD fonts had this problem, e.g.: XFontStruct *fontp; int w1, w2; ... w1 = fontp->per_char[ charnum].width; w2 = fontp->per_char[ charnum].lbearing + fontp->per_char[ charnum].rbearing; if( w1 != w2) printf( "This is a problem font!\n"); The problem only appears if you do the output a character at a time and take care of spacing yourself, instead of letting the Xlib XText functions deal with it. I had the problem on a terminal emulation program, where the text needed to be rendered fixed cell, in all cases, in order to line up properly, regardless of the font. So I used the "em" of the font, and rendered all characters manually, rather than using the XLib routine, which "did the right thing". What it looks like to me is that someone has made some assumptions about the font fields relationship to cell size, and these are not correct for the font in question. -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Type1 font problem (Was: Re: mozilla-devel problems)
On Sat, 26 Oct 2002, Ollivier Robert wrote: > According to Ollivier Robert: > > During its reading of all fonts available, it get a segv... > > Any idea ? > > Found that at least one of the Type1 fonts I had (installed by XFree86) does > bad things to freetype and it was getting a segv. > > The interesting point is that it happens even if you have disabled the loading > of the type1 module. Having the font in /usr/X11R6/lib/X11/fonts/type1 is > enough... Im my many hours of playing with fonts, I seem to recall that the Freetype / XFT module is perfectly capable of rendering the Type1 fonts. Make sure you take the PATH out of your XftConfig in addition to the XF86Config -- Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread! To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Type1 font problem (Was: Re: mozilla-devel problems)
According to Ollivier Robert: > During its reading of all fonts available, it get a segv... > Any idea ? Found that at least one of the Type1 fonts I had (installed by XFree86) does bad things to freetype and it was getting a segv. The interesting point is that it happens even if you have disabled the loading of the type1 module. Having the font in /usr/X11R6/lib/X11/fonts/type1 is enough... -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- [EMAIL PROTECTED] FreeBSD keltia.freenix.fr 5.0-CURRENT #80: Sun Jun 4 22:44:19 CEST 2000 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message