Summary: | Add font encoding info to arphicfonts.ebuild | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Marko Daniel <marko> |
Component: | New packages | Assignee: | Stuart Bouyer (RETIRED) <stubear> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | azarah |
Priority: | High | ||
Version: | 1.2 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
A patch to arphicfonts-0.1.ebuild adding correct encodings for big5/gb.
Added check to see if fonts.scale exists; enclosed variable in braces. Tidied up the ebuild. Updated to create separate directories for Chinese fonts. |
Description
Marko Daniel
2002-08-09 23:43:04 UTC
Created attachment 2955 [details, diff]
A patch to arphicfonts-0.1.ebuild adding correct encodings for big5/gb.
It's ugly and I don't know what to do about unmerging the ebuild.
Created attachment 2961 [details, diff]
Added check to see if fonts.scale exists; enclosed variable in braces.
Obsoletes 2955.
Unfortunately, my corrections included a nice typo. Here it is tidied up. Created attachment 3124 [details]
Tidied up the ebuild.
Firstly, thanks for your investigative work to sort out this problem. I'm also worried about what happens when we unmerge. Would it perhaps be better to follow RedHat's example and move the fonts to their own folder? THat way we could copy over the font.scale file ans not have to worr about what happens when other ttf fonts are installed after this ebuild is installed ie what happens to our nicely patched font.scale if ttmkdir is run again? What do you think about the seperate dir idea? I think separate directories would be a good idea. Incidentally, the /etc/X11/XftConfig file already includes paths to /usr/share/fonts/ttf/{western,big5,gb2312,japanese,korean}etc. so it might be best to use these paths. Tomorrow I'll rewrite the ebuild accordingly. By the way, after much experimenting I found that the truetype multibyte fonts only properly work without xfs and with xtt not freetype as the X module. RedHat must have patched their xfs server as it works on RH 7.3 Created attachment 3252 [details]
Updated to create separate directories for Chinese fonts.
I have now rewritten the ebuild so that it will install big5 fonts in /usr/share/fonts/ttf/zh_TW and gb2312 fonts in /usr/share/fonts/ttf/zh_CN. It was my intention to write an install script that would check if those font paths are listed in the config files and insert them with appropriate comments in case they are not. However, I have been struggling with the various permutations of font server (X or xfs) and library (freetype or xtt) that a user could possibly have and found that a single script checking which of the four options was active and, indeed, in working order, was too complicated. It currently checks if the font paths are listed in /etc/X11/XF86Config and warns the user to manually adjust this. mkfontdir also creates encodings.dir files in the font directories. This is a precaution for users using the freetype module. The xtt module does not require them. Marko, Thanks again for all the hard work. I've made a couple of changes to the ebuild. Mainly just to clean it up a little and get rid of src_unpack() now that portage can deal with gzipped files properly. I also took the fonts.scale files and added them to arphicfonts/files dir - this just makes things a little easier to follow in the ebuild I think. I've added the ebuild to cvs and masked till I hear back on the changes I made.If everything works for you (does here so I don't expect any problem) I'll unmask it. The ebuild has been bumped to -r1 as users should remerge to take advantage of your hard work and investigative skills Stuart Thanks very much. I have just unmasked arphicfonts r1 and it installs perfectly! All the best Marko Thank you for your contribuiton. I'll unmask it now |