Re: Type1 font problem (Was: Re: mozilla-devel problems)

2002-10-26 Thread Terry Lambert
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)

2002-10-26 Thread Wesley Morgan
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)

2002-10-26 Thread Ollivier Robert
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



Re: mozilla-devel problems

2002-10-25 Thread Ollivier Robert
According to Matt Loschert:
> Me too.  Thanks!

The CURRENT machine I've tested is rather old, world/kernel is from Sep.
18th. On an October, 20th CURRENT machine, mozilla just segfaults.

During its reading of all fonts available, it get a segv...
Any idea ?

...
e3affe4fa68dd8cab058ebb21962d72dcfeaaa47e541a2ff3e6ecdacf0484ec3
7151b6b1fa6109a0113e3bef3145b53d05c62e0391e266393ba1a4b39a806a12
f2fe6562dff2fc97eff531ded8dc6e0ed359b2bf16d00031e9e0753bb32c156e
ea81b7db813752506558d39f967450fa05390368950c456f106211dfc0621e52
66c14e1ebc6a9f3de3165500218fd683fa0dd2b4fcb937f14f7d3fb85faf556e
3f53ad74a4bcd96872b46716e0bd737dbf5d3115ce382ffb8243c499503283c4
274a0e51c9d41b302fd57c648a4e1769dcab4668ee624f3b9c84f296ba9ca925
056358d1e7f5a56ce1e53b5676d5e9ccfa4cf68f18f28aee890b1bfad737
03b64dcd7c5f34387f4522f421045adb7cb8b552d5145b83e24667d4f80cf636
45f80b863f0293b1d494ed65532c3963b69fe1a858850799155ed2450d836d30
d28dbfc50c7a58fd713346961d7f0e5513394b29c06c52b786b48a2f13b95b9d
56d6aca8250f3b716f055275af003304d36713f14228b5ec40de7c3ba9ae32cd
eb91f8110bafcf7c92ea383bd9ca4d4fd0f6ccb0902b07841a4cbee2cbe21c4a
8124a11ef70c32d89e4b86d0e84294412f305ec186afd600ef7d72634e931f60
a75a22b03abbb87b4a163044b96d43cb1a8eac9484df8955edd18bb298612"
 52448 mozilla-bin RET   read 6818/0x1aa2
 52448 mozilla-bin PSIG  SIGPROF caught handler=0x2856bb70 mask=0x0 code=0x0
 52448 mozilla-bin CALL  gettimeofday(0x28578158,0)
 52448 mozilla-bin RET   gettimeofday 0
 52448 mozilla-bin CALL  sigprocmask(0x3,0x285781dc,0)
 52448 mozilla-bin RET   sigprocmask 0
 52448 mozilla-bin CALL  poll(0x8092000,0x1,0)
 52448 mozilla-bin RET   poll 0
 52448 mozilla-bin CALL  sigreturn(0xbfbfcb3c)
 52448 mozilla-bin RET   sigreturn JUSTRETURN
 52448 mozilla-bin PSIG  SIGSEGV caught handler=0x2856bb70 mask=0x0 code=0xc
 52448 mozilla-bin CALL  sigprocmask(0x3,0x285781dc,0)
 52448 mozilla-bin RET   sigprocmask 0
 52448 mozilla-bin CALL  unlink(0x81430c0)
 52448 mozilla-bin NAMI  "/home/staff/roberto/.mozilla/roberto/lxaarw4c.slt/lock"
 52448 mozilla-bin RET   unlink 0
 52448 mozilla-bin CALL  setitimer(0x2,0xbfbfcd84,0)
 52448 mozilla-bin RET   setitimer 0
 52448 mozilla-bin CALL  close(0x3)
 52448 mozilla-bin RET   close 0
 52448 mozilla-bin CALL  close(0x4)
 52448 mozilla-bin RET   close 0
...
 52448 mozilla-bin CALL  exit(0xb)
 52443 sh   RET   wait4 52448/0xcce0
 52443 sh   CALL  exit(0xb)
-- 
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



Re: mozilla-devel problems

2002-10-25 Thread Matt Loschert
On Fri, 25 Oct 2002, Ollivier Robert wrote:

> According to Adam Weinberger:
> > It was brought to my attention today by erk! that the way to solve the
> > problem is to remove the mozilla-fonts package. It worked for me... I'm
> > investigating why this is so.
>
> Works for me too. Thanks a lot !
> --
> Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- [EMAIL PROTECTED]

Me too.  Thanks!

- Matt

--
Matt Loschert - Software Engineer   | email: [EMAIL PROTECTED]|
ServInt Internet Services   | web:   http://www.servint.net/ |
McLean, Virginia USA| phone: (703) 847-1381  |


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: mozilla-devel problems

2002-10-25 Thread Ollivier Robert
According to Adam Weinberger:
> It was brought to my attention today by erk! that the way to solve the
> problem is to remove the mozilla-fonts package. It worked for me... I'm
> investigating why this is so.

Works for me too. Thanks a lot !
-- 
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



Re: mozilla-devel problems

2002-10-25 Thread Terry Lambert
Ollivier Robert wrote:
> According to Terry Lambert:
> > This looks similar to a well known problem that could occur with
> > nominally proportional spacing fonts in X programs that incorrectly
> > assumed monospacing for characters, and also on nominally fixed
> 
> I just made an experience. I logged in on my STABLE machine coming from the
> CURRENT machine (so any X app will use the fonts on the CURRENT machine)
> and ran mozilla.
> 
> The display is *fine*.
> 
> So a STABLE mozilla displaying on a CURRENT machine is fine.
> 
> I don't understand.

So the X server was running on your -CURRENT machine, but the
application was running on your -STABLE machine?

I think this is because on -STABLE, Mozilla compiles without the
extra font stuff by default, doesn't it?  THat was mentioned in
an earlier message by someone else.

Can you copy over the code as configured on -CURRENT to the -STABLE
machine, so it compiles and links everything as if it were running
on a -CURRENT machine?  E.g. verify your implication that it's the
compiler or the libraries specific to the -CURRENT machine, rather
than a diffirence in the environment sensed by "configure", etc.?

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: mozilla-devel problems

2002-10-25 Thread Adam Weinberger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

It was brought to my attention today by erk! that the way to solve the
problem is to remove the mozilla-fonts package. It worked for me... I'm
investigating why this is so.

- -Adam


- --
Adam Weinberger
[EMAIL PROTECTED]
[EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.0 (FreeBSD)

iD8DBQE9uQ+qo8KM2ULHQ/0RAjvqAKDLH1FozZMnKzkLHDTm4f6+Bhez0QCfSjlC
CrftWKiNQkD4uZv04zUBhHc=
=MSR7
-END PGP SIGNATURE-

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: mozilla-devel problems

2002-10-25 Thread Ollivier Robert
According to Terry Lambert:
> This looks similar to a well known problem that could occur with
> nominally proportional spacing fonts in X programs that incorrectly
> assumed monospacing for characters, and also on nominally fixed

I just made an experience. I logged in on my STABLE machine coming from the
CURRENT machine (so any X app will use the fonts on the CURRENT machine)
and ran mozilla.

The display is *fine*.

So a STABLE mozilla displaying on a CURRENT machine is fine.

I don't understand.
-- 
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



Re: mozilla-devel problems

2002-10-25 Thread Ollivier Robert
According to Wesley Morgan:
> I just finished a build of mozilla-devel, and the fonts look just as
> gorgeous as they do in Konqueror. If anyone is having problems with these

What's in your font path ?
-- 
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



Re: mozilla-devel problems

2002-10-24 Thread Wesley Morgan
On Thu, 24 Oct 2002, Adam Weinberger wrote:

> >> (10.24.2002 @ 1036 PST): Adam Weinberger said, in 2.2K: <<
> > I'll put in a screenshot after I get moz recompiled with XFT.
> >> end of "Re: mozilla-devel problems" from Adam Weinberger <<
>
> FWIW, this is a screenshot of my -STABLE machine:
>
>   http://people.freebsd.org/~adamw/smacky_ss_20021024.jpg

I just finished a build of mozilla-devel, and the fonts look just as
gorgeous as they do in Konqueror. If anyone is having problems with these
fonts, try removing the Type1 module from your X config, and/or altering
the fontpath so that directories with truetype fonts are listed first.
I've been told that the directory order does matter, but I do not know how
much this applies with the new font-config/Xft2 system.



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



Re: mozilla-devel problems

2002-10-23 Thread Joe Marcus Clarke
On Wed, 2002-10-23 at 10:20, Ollivier Robert wrote:
> Hello,
> 
> I've recently recompiled mozilla-devel on a 4.7-STABLE system, no problem,
> all fonts and everything work fine.
> 
> Trying the same on CURRENT :
> 
> - the Makefile is broken for CURRENT's sh/make, the attached patch is
>   needed.

Yeah, yeah, I need a 2x4 upside the head.  This should be fixed.

> 
> - on one machine running mozilla gives nothing (ktrace available) and on
> the other, it runs although the font used for the menu is not was I have on
> STABLE.

Okay, my -CURRENT machine is fine.  As for the fonts, this is most
likely due to the new Xft support.  My fonts look pretty good.  You
might try installing the x11-fonts/webfonts port, then stick this file
in /usr/X11R6/lib/X11, and see if things improve.  Else, rebuild
mozilla-devel with -DWITHOUT_XFT.

Joe

-- 
PGP Key : http://www.marcuscom.com/pgp.asc


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message