Date: Sat, 17 Nov 2001 22:50: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: <200111180650.fAI6o1T05814@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 07:45:05 +0100 (CET) Konstantinos Konstantinidis wrote: > Cyrille Lefevre wrote: > > Konstantinos Konstantinidis wrote: [snip] > Anyway, I must admit I never thought about XFree86 3.3.6, which is > a shame since it is the 'default' when installing FreeBSD, and chances > are many people are still using it. I think so ;^) > I think the right thing to do would be to check XFREE86_VERSION, and > if it's not 4 then depend on Xfstt and possibly setup the symlink too > or mention it in pkg-message... > > When I'll merge your patches I'll be adding that too. it's not so simple to just check about XFREE86_VERSION at compile time. how do you handle this case for pre-build packages ? remember you the Mesa port which is required by some port and which overwrite XFree86 4.x headers and libraries... however, installing xfstt shouldn't be a problem under XFree86 4.x and nor starting it automagically w/o unix/:7101 in the font path. so, you don't have to check whether or not you are running XFree86 4.x. some times later... well, job done. see the attached patch :)) [snip] > OK, that refreshed my memory quite well :> I'm still not sure WHY I took > the decision to have aliases with -netscape- foundry in the first place, > but having checked w/ your patched webfonts all seems the same, so they > really are no longer needed. are you talking about getting rid of font.alias or about the -netscape- aliases ? I guess you are talking about the last one, no ? PS : during my last investigations, I've found we need those f*king aliases... see the following URL for details : http://www.dcs.ed.ac.uk/home/jec/programs/xfsft/#ALTERNATIVES [snip] > As for the fixed size fonts not working quite as expected, what can I > say... Netscape is VERY weird. At least mozilla is working great with regarding the xfsft page, I'm not sure that netscape is the problem... however, the comment about xfstt on the xfsft page, which is the XFree86 4.x freetype extension, imply that xfsft should generate those f*king aliases. unfortunately, this doesn't seem to work ! > webfonts, even with none of these alias nonsense... I can't wait till > the day I'll be able to get rid of Netscape altogether. to see if everything works fine, go there : http://www.joerg-pommnitz.de/TrueType/xfsft.html then click on the first screenshot :-) PS : don't forget to activate javascript and the style sheet if they are disabled. I say that since as a general rule, I disable the style sheets to avoid netscape crash... so, everything works fine w/ or without those f*king aliases except the netscape font size selection box. so, we still need them... at least Helvetica, Time, etc. re-PS : whaooo! netscape 6.x is so slow regarding netscape 4.x :( and... yet another patch (-p1) ! Makefile XFree86 3.x vs. 4.x handling added. pkg-message XFree86 3.x note added. also, reworked a lot to be less than 25 lines long and to make portlint happy :P pkg-plist XFree86 3.x handling 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 17:35:53 2001 +++ webfonts.new/Makefile Sun Nov 18 07:02:09 2001 @@ -22,6 +22,9 @@ BUILD_DEPENDS= ttmkfdir:${PORTSDIR}/x11-fonts/ttmkfdir \ cabextract:${PORTSDIR}/archivers/cabextract +.if ${XFREE86_VERSION} == 3 +RUN_DEPENDS= xfstt:${PORTSDIR}/x11-servers/Xfstt +.endif RESTRICTED= Restrictive license \(can\'t place on server for distribution\) NO_CDROM= Restrictive license \(can\'t sell for profit\) @@ -33,7 +36,10 @@ EXTRACT_AFTER_ARGS= > /dev/null USE_X_PREFIX= yes -PLIST_SUB= FONTALIAS=${FONTALIAS} FONTSDIR="${FONTSDIR:S|${PREFIX}/||} +PLIST_SUB= XFREE3=${XFREE3} FONTALIAS=${FONTALIAS} \ + FONTNAME="${FONTNAME}" \ + FONTSDIR="${FONTSDIR:S|${PREFIX}/||}" \ + TTFONTSDIR="${TTFONTSDIR:S|${X11BASE}/||}" MSG_FILE= ${PKGDIR}/pkg-message PKGMESSAGE= ${WRKDIR}/pkg-message @@ -41,6 +47,12 @@ # Local variables # +.if ${XFREE86_VERSION} == 3 +XFREE3= +.else +XFREE3= "@comment " +.endif + .if !defined(WITHOUT_NETSCAPE_ALIASES) FONTALIAS= .else @@ -51,6 +63,7 @@ FONTSIZES= 8 10 12 14 18 24 # was 8 9 10 12 14 16 18 20 24 FONTLIMIT= 11 FONTSDIR?= ${PREFIX}/lib/X11/fonts/${FONTNAME} +TTFONTSDIR?= ${X11BASE}/lib/X11/fonts/TrueType DEV_NULL?= /dev/null CABEXTRACT?= ${LOCALBASE}/bin/cabextract @@ -139,7 +152,12 @@ # Post-install # -post-install: display-message +post-install: truetype-link display-message + +truetype-link: +.if ${XFREE86_VERSION} == 3 + @${LN} -fs ${FONTSDIR} ${TTFONTSDIR}/${FONTNAME} +.endif display-message: @${ECHO_MSG} 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 Sat Nov 17 17:49:08 2001 +++ webfonts.new/pkg-message Sun Nov 18 06:41:43 2001 @@ -5,15 +5,20 @@ 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 rehash +or by adding the following line to the `Files' section of your XF86Config file: + FontPath "%%FONTSDIR%%/" -or by adding it to your X server configuration file. If you're -using XFree86, check XF86Config(5) for detailed instructions. +NOTE TO XFREE86 3.3.6 USERS: In addition to the above setup, you +also have to add the X TrueType font server path by either : + xset fp+ unix/:7101 + xset fp rehash +or by adding the following line to the `Files' section of your XF86Config file: + FontPath "unix/:7101" -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 +NOTE TO NETSCAPE USERS: The `Truetype' and `Netscape' foundries +have been changed to `Webfonts'. To take advantage of this new +foundry, 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 Sat Nov 17 17:30:53 2001 +++ webfonts.new/pkg-plist Sun Nov 18 07:01:24 2001 @@ -34,3 +34,5 @@ %%FONTSDIR%%/verdanaz.ttf %%FONTSDIR%%/webdings.ttf @dirrm %%FONTSDIR%% +%%XFREE3%%@exec ln -fs %D/%%FONTSDIR%% %D/%%TTFONTSDIR%%/%%FONTNAME%% +%%XFREE3%%@unexec rm -f %D/%%TTFONTSDIR%%/%%FONTNAME%% 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?200111180650.fAI6o1T05814>