Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Nov 2001 16:20:01 -0800 (PST)
From:      Cyrille Lefevre <clefevre@citeweb.net>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/32046: Port cleanup: x11-fonts/webfonts
Message-ID:  <200111180020.fAI0K1G46431@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/32046; it has been noted by GNATS.

From: Cyrille Lefevre <clefevre@citeweb.net>
To: Konstantinos Konstantinidis <kkonstan@duth.gr>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: ports/32046: Port cleanup: x11-fonts/webfonts
Date: Sun, 18 Nov 2001 01:16:11 +0100 (CET)

 Konstantinos Konstantinidis wrote:
 [ Charset ISO-8859-7 unsupported, converting... ]
 > Cyrille Lefevre wrote:
 > 
 > Wow - lots of changes, most great, some I didn't quite understand
 > though.
 > 
 > > >Description:
 > >         fonts renamed from `truetype' to `webfonts' to follow the
 > >         naming done by `xfstt' when used under XFree86 3.3.6.
 > 
 > I am not familiar with xfstt/XFree86 3.3.6 - I've been using XFree86 4
 > for over a year now... care to explain what was the problem with using
 > foundry "truetype"? "webfonts" works ok with XFree86 4 of course, but
 
 I also use XFree86 4 for at least the same amount of time, but as
 someone suggested to 3.3.6 users the use of Xfstt, I've tried it
 w/o freetype under XFree86 4.x. see the following message for details :
 http://docs.freebsd.org/cgi/getmsg.cgi?fetch=614091+0+current/freebsd-stable
 and using webfonts as a subdir of TrueType, name them -webfonts-
 while putting them at the TrueType top level, name them -ttf-
 whatever the foundry name they could have before. the is a ttf FAQ.
 this is also a ttf FAQ to only have -0- fonts :( unfortunately,
 aliases doesn't seem to work through xfstt. don't know why ?  so,
 -truetype- or -netscape- aliases are meaningless is this case.
 this problem doesn't exists using `freetype' under XFree86 4.x, but
 to be compatible w/ xfstt, they should be named -webfonts- or -ttf-
 except if someone know how to have working aliases under xfstt...
 
 > I'd like to know... especially since this would force many that had
 > hardwired the foundry to change their configs... Perhaps a better idea
 > would be to change the name of the port from webfonts to truetype as
 > many suggested, and leave the foundry as it was.
 
 by `leave the foundry as it was', do you intend to left them to
 -microsoft- and -monotype- or to -truetype- ? frankly, I'm not
 sure that somebody have hardwired the foundry name somewhere
 except within netscape preferences. of course, it would be better
 to add a comment about the name change in the pkg-message (my fault
 to not have done this :). see the attached patch about that.
 
 > >         -netscape- aliases deleted (they are not needed and slow
 > >         down XFree86 and netscape startup). the number of aliases
 > >         has been lower from 5400 to 3832. -0-0- aliases added to
 > >         allow font scaling under netscape. intermediates font sizes
 > >         (9, 16 and 20) deleted to follow the other fonts name space.
 > 
 > It's been a long time since I hacked that port together, and the whole
 > point of the -netscape- aliases was that netscape didn't scale them
 > properly, thus you could use the -netscape- aliases as a fixed font
 > to aproximate the behaviour of Win32 netscape and make life more
 > bearable. If you don't use netscape or don't want that behaviour,
 
 w/ the -0- aliases, netscape seems to be happy w/ font scaling,
 as well as w/ fixed point sized fonts. no need to bind them to
 -netscape- or whatever. -truetype- or -webfonts- is sufficient.
 
 > there's no point in creating those aliases in the first place... I
 > am not sure if there's any point to have the aliases with the same
 > foundry name, I think that they won't work as intended, or at all,
 > in which case you might as well not build them... As I said, it's
 
 w/o these aliases, netscape won't find fixed point size fonts except
 the default (12) one. of course, it's still possible to enter a fixed
 size in the scale box, but this information don't survive netscape
 restarts. having them explicitely makes everybody (netscaep, you,
 me, etc :) happy.
 
 > been a long time and I'm not sure why I took some of the decisions
 > that I took, chances are you're right, but I'd appreciate if you'd
 > explain...
 
 until two days, I don't know the webfonts port, while I've manually
 done the same job a long time ago, but w/o the aliases. so, I've
 tried the webfonts port and see that fixed size font don't work as
 expected, IMHO. then, I've played w/ aliases to make them work better.
 and I see a great difference on having 12000+ aliases (all sizes
 and -netscape- aliases) on X and netscape startup. maybe you don't
 see this difference because you probably have a powerfull machine.
 but using a P200, the difference is significant. w/ 12000+ aliases,
 netscape takes a long time to start and the X server don't do
 anything during this time until netscape has got all aliases.
 in one word, you cannot do anything... the conclusion was, the least
 aliases you have, the faster everything works :P
 
 since aliases doesn't seem to work w/ xfstt, XFree86 3.3.6 users
 probably have to play w/ both xfstt and the usual font path.
 the first of render well the fonts and the second to access the
 aliases. something such as :
 	xset fp+ unix/:7101
 	xset fp+ /usr/X11R6/lib/X11/fonts/webfonts
 	xset fp rehash
 	xlsfonts -fn -webfonts-* | grep -c helvetica
 	-> 406
 could someone try this under XFree86 3.3.6 w/ and w/o the second xset ?
 thanks.
 
 this patch (-p1) should be applyed to the first one. features are :
 
 	Makefile
 		CABEXTRACT added.
 		FONTSDIR depends on FONTNAME which depends on PORTNAME.
 	pkg-message
 		:%!fmt to reformat long lines.
 		netscape note added (well, humm, maybe %%FONTNAME%%
 		should be used there...)
 	pkg-plist
 		%%FONTSDIR%% added.
 
 diff -ruN -x CVS -x work -x #* -x *~ -x *.orig -x *.rej -I $Id.*$ -I $FreeBSD.*$ webfonts/Makefile webfonts.new/Makefile
 --- webfonts/Makefile	Sat Nov 17 02:44:40 2001
 +++ webfonts.new/Makefile	Sat Nov 17 17:35:53 2001
 @@ -13,7 +13,7 @@
  DISTFILES=	andale32.exe trebuc32.exe georgi32.exe verdan32.exe \
  		comic32.exe arialb32.exe impact32.exe arial32.exe \
  		times32.exe courie32.exe webdin32.exe
 -DIST_SUBDIR=	webfonts
 +DIST_SUBDIR=	${PORTNAME}
  
  MAINTAINER=	kkonstan@daemon.gr
  
 @@ -28,12 +28,12 @@
  NO_PACKAGE=	Restrictive license \(can\'t distribute in forms \
  		other than the original\)
  
 -EXTRACT_CMD=		cabextract --lowercase
 +EXTRACT_CMD=		${CABEXTRACT} --lowercase
  EXTRACT_BEFORE_ARGS=
  EXTRACT_AFTER_ARGS=	> /dev/null
  
  USE_X_PREFIX=	yes
 -PLIST_SUB=	FONTALIAS=${FONTALIAS}
 +PLIST_SUB=	FONTALIAS=${FONTALIAS} FONTSDIR="${FONTSDIR:S|${PREFIX}/||}
  
  MSG_FILE=	${PKGDIR}/pkg-message
  PKGMESSAGE=	${WRKDIR}/pkg-message
 @@ -47,11 +47,13 @@
  FONTALIAS=	"@comment "
  .endif
  
 +FONTNAME=	${PORTNAME}
  FONTSIZES=	8 10 12 14 18 24	# was 8 9 10 12 14 16 18 20 24
  FONTLIMIT=	11
 -FONTSDIR?=	${PREFIX}/lib/X11/fonts/${PORTNAME}
 +FONTSDIR?=	${PREFIX}/lib/X11/fonts/${FONTNAME}
  
  DEV_NULL?=	/dev/null
 +CABEXTRACT?=	${LOCALBASE}/bin/cabextract
  CUT?=		cut
  ECHO_CMD?=	echo
  SORT?=		sort
 @@ -89,8 +91,8 @@
  make-fonts.scale:
  	@${TTMKFDIR} -d ${WRKSRC} | ${CAT} -n | ${SED} -e ' \
  		s,^     1,100000,; \
 -		s,monotype,webfonts,; \
 -		s,microsoft,webfonts,; \
 +		s,monotype,${FONTNAME},; \
 +		s,microsoft,${FONTNAME},; \
  	' | ${SORT} -r | ${CUT} -c 8- > ${WRKSRC}/fonts.scale
  
  make-fonts.dir:
 diff -ruN -x CVS -x work -x #* -x *~ -x *.orig -x *.rej -I $Id.*$ -I $FreeBSD.*$ webfonts/pkg-message webfonts.new/pkg-message
 --- webfonts/pkg-message	Fri Nov 16 00:21:34 2001
 +++ webfonts.new/pkg-message	Sat Nov 17 17:49:08 2001
 @@ -1,13 +1,19 @@
 -IMPORTANT - READ CAREFULLY: You may not use these fonts if you do not agree to
 -the terms of the Microsoft End-User License Agreement ("EULA").  You will find  
 -the EULA at %%FONTSDIR%%/LICENSE. 
 +IMPORTANT - READ CAREFULLY: You may not use these fonts if you do
 +not agree to the terms of the Microsoft End-User License Agreement
 +("EULA").  You will find the EULA at %%FONTSDIR%%/LICENSE.
  
 -If you read and agreed to the EULA, you can start using the fonts.  To be able
 -to use them, you must add %%FONTSDIR%% to the X font path
 -by either:
 +If you read and agreed to the EULA, you can start using the fonts.
 +To be able to use them, you must add %%FONTSDIR%%/
 +to the X font path by either:
  
 -	xset fp+ %%FONTSDIR%%
 +	xset fp+ %%FONTSDIR%%/
  	xset fp rehash
  
 -or by adding it to your X server configuration file.  If you're using XFree86,
 -check XF86Config(5) for detailed instructions.
 +or by adding it to your X server configuration file.  If you're
 +using XFree86, check XF86Config(5) for detailed instructions.
 +
 +NOTE TO NETSCAPE USERS: The foundry names have been changed from
 +`Truetype' or `Netscape' to `Webfonts'.  To take advantage of this
 +new foundry name, you have to change your netscape font preferences
 +(Edit->Preferences->Appearence->Font) from `Some Family (Truetype)'
 +or `Some Family (Netscape)' to `Some Family (Webfonts)'.
 diff -ruN -x CVS -x work -x #* -x *~ -x *.orig -x *.rej -I $Id.*$ -I $FreeBSD.*$ webfonts/pkg-plist webfonts.new/pkg-plist
 --- webfonts/pkg-plist	Fri Nov 16 20:53:14 2001
 +++ webfonts.new/pkg-plist	Sat Nov 17 17:30:53 2001
 @@ -1,36 +1,36 @@
  @comment $FreeBSD$
 -lib/X11/fonts/webfonts/LICENSE
 -lib/X11/fonts/webfonts/andalemo.ttf
 -lib/X11/fonts/webfonts/arial.ttf
 -lib/X11/fonts/webfonts/arialbd.ttf
 -lib/X11/fonts/webfonts/arialbi.ttf
 -lib/X11/fonts/webfonts/ariali.ttf
 -lib/X11/fonts/webfonts/ariblk.ttf
 -lib/X11/fonts/webfonts/comic.ttf
 -lib/X11/fonts/webfonts/comicbd.ttf
 -lib/X11/fonts/webfonts/cour.ttf
 -lib/X11/fonts/webfonts/courbd.ttf
 -lib/X11/fonts/webfonts/courbi.ttf
 -lib/X11/fonts/webfonts/couri.ttf
 -%%FONTALIAS%%lib/X11/fonts/webfonts/fonts.alias
 -lib/X11/fonts/webfonts/fonts.dir
 -lib/X11/fonts/webfonts/fonts.scale
 -lib/X11/fonts/webfonts/georgia.ttf
 -lib/X11/fonts/webfonts/georgiab.ttf
 -lib/X11/fonts/webfonts/georgiai.ttf
 -lib/X11/fonts/webfonts/georgiaz.ttf
 -lib/X11/fonts/webfonts/impact.ttf
 -lib/X11/fonts/webfonts/times.ttf
 -lib/X11/fonts/webfonts/timesbd.ttf
 -lib/X11/fonts/webfonts/timesbi.ttf
 -lib/X11/fonts/webfonts/timesi.ttf
 -lib/X11/fonts/webfonts/trebuc.ttf
 -lib/X11/fonts/webfonts/trebucbd.ttf
 -lib/X11/fonts/webfonts/trebucbi.ttf
 -lib/X11/fonts/webfonts/trebucit.ttf
 -lib/X11/fonts/webfonts/verdana.ttf
 -lib/X11/fonts/webfonts/verdanab.ttf
 -lib/X11/fonts/webfonts/verdanai.ttf
 -lib/X11/fonts/webfonts/verdanaz.ttf
 -lib/X11/fonts/webfonts/webdings.ttf
 -@dirrm lib/X11/fonts/webfonts
 +%%FONTSDIR%%/LICENSE
 +%%FONTSDIR%%/andalemo.ttf
 +%%FONTSDIR%%/arial.ttf
 +%%FONTSDIR%%/arialbd.ttf
 +%%FONTSDIR%%/arialbi.ttf
 +%%FONTSDIR%%/ariali.ttf
 +%%FONTSDIR%%/ariblk.ttf
 +%%FONTSDIR%%/comic.ttf
 +%%FONTSDIR%%/comicbd.ttf
 +%%FONTSDIR%%/cour.ttf
 +%%FONTSDIR%%/courbd.ttf
 +%%FONTSDIR%%/courbi.ttf
 +%%FONTSDIR%%/couri.ttf
 +%%FONTALIAS%%%%FONTSDIR%%/fonts.alias
 +%%FONTSDIR%%/fonts.dir
 +%%FONTSDIR%%/fonts.scale
 +%%FONTSDIR%%/georgia.ttf
 +%%FONTSDIR%%/georgiab.ttf
 +%%FONTSDIR%%/georgiai.ttf
 +%%FONTSDIR%%/georgiaz.ttf
 +%%FONTSDIR%%/impact.ttf
 +%%FONTSDIR%%/times.ttf
 +%%FONTSDIR%%/timesbd.ttf
 +%%FONTSDIR%%/timesbi.ttf
 +%%FONTSDIR%%/timesi.ttf
 +%%FONTSDIR%%/trebuc.ttf
 +%%FONTSDIR%%/trebucbd.ttf
 +%%FONTSDIR%%/trebucbi.ttf
 +%%FONTSDIR%%/trebucit.ttf
 +%%FONTSDIR%%/verdana.ttf
 +%%FONTSDIR%%/verdanab.ttf
 +%%FONTSDIR%%/verdanai.ttf
 +%%FONTSDIR%%/verdanaz.ttf
 +%%FONTSDIR%%/webdings.ttf
 +@dirrm %%FONTSDIR%%
 
 Cyrille.
 -- 
 Cyrille Lefevre                 mailto:clefevre@citeweb.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111180020.fAI0K1G46431>