阅读:4527回复:13
這段代碼在firefox中怎樣使用?
* {
font-family: "微軟正黑體 Bold", "微軟正黑體 Bold", sans-serif !important; } pre, code, kbd, samp, var { font-family: "微軟正黑體 Bold", "微軟正黑體 Bold", monospace !important; } |
|
1楼#
发布于:2011-01-01 15:45
第一段代码,可以放在 配置文件夹\chrome\userChrome.css 中,也可以放在 配置文件夹\chrome\userContent.css 中,前一个是针对 Firefox 界面文字,后一个是针对网页文字。
第二段代码,显然只是针对网页文字,放在 配置文件夹\chrome\userContent.css 中。 |
|
2楼#
发布于:2011-01-01 15:45
沒反應...
|
|
3楼#
发布于:2011-01-01 15:45
“微軟正黑體”
繁体字?? |
|
|
4楼#
发布于:2011-01-01 15:45
|
|
5楼#
发布于:2011-01-01 15:45
我也在userContent.css里试过了,确实不管叫Microsoft JhengHei和微軟正黑體都没有用。
但是直接用字體選擇對話框可以使用。 |
|
|
6楼#
发布于:2011-01-01 15:45
|
|
7楼#
发布于:2011-01-01 15:45
原来是这样。
我测试了很多次,无论是CSS还是Firefox的字体链接,都无法直接使用正黑Bold,猜测Firefox只认家族名,不认子字体名。我认为只有使用一些折衷的办法。 * 把正黑粗体的字体文件msjhbd.ttf复制出来用ttfname3之类的软件改名成一个独立的字体再安装使用,这个方法虽未测试但100%有效。 * 或者用系统的注册表字体替换,把针对正黑的调用全部转移到正黑粗。 * 或者使用MacType之类的第三方软件。 后面两个方法不确定有用。 |
|
|
8楼#
发布于:2011-01-01 15:45
|
|
9楼#
发布于:2011-01-01 15:45
字体超大蛮难传的,你先参考下这个教程
http://bbs.themex.net/showthread.php?t= ... t=ttfname3 |
|
|
10楼#
发布于:2011-01-01 15:45
<?xml version="1.0"?>
<Fonts> <Font> <!-- ****************** Font(0) ****************** --> <Header Ascender="2203" Descender="-521" TypoAscender="1823" TypoDescender="-225" WinAscender="2203" WinDescender="521" AverageCharWidth="987" Codepage1="00100009" Codepage2="00000000" /> <Name> <!-- Copyright --> <T n="1,0,0000,0">© 2008 Microsoft Corporation. All rights reserved.</T> <T n="3,1,0409,0">© 2008 Microsoft Corporation. All rights reserved.</T> <!-- Family --> <T n="1,0,0000,1">Microsoft JhengHei</T> <T n="3,1,0404,1">微軟正黑體</T> <T n="3,1,0409,1">Microsoft JhengHei</T> <T n="3,1,0c04,1">微軟正黑體</T> <!-- Subfamily --> <T n="1,0,0000,2">Bold</T> <T n="3,1,0403,2">Negreta</T> <T n="3,1,0404,2">Bold</T> <T n="3,1,0405,2">tučné</T> <T n="3,1,0406,2">fed</T> <T n="3,1,0407,2">Fett</T> <T n="3,1,0408,2">Έντονα</T> <T n="3,1,0409,2">Bold</T> <T n="3,1,040a,2">Negrita</T> <T n="3,1,040b,2">Lihavoitu</T> <T n="3,1,040c,2">Gras</T> <T n="3,1,040e,2">Félkövér</T> <T n="3,1,0410,2">Grassetto</T> <T n="3,1,0413,2">Vet</T> <T n="3,1,0414,2">Halvfet</T> <T n="3,1,0415,2">Pogrubiony</T> <T n="3,1,0416,2">Negrito</T> <T n="3,1,0419,2">Полужирный</T> <T n="3,1,041b,2">Tučné</T> <T n="3,1,041d,2">Fet</T> <T n="3,1,041f,2">Kalın</T> <T n="3,1,0424,2">Krepko</T> <T n="3,1,042d,2">Lodia</T> <T n="3,1,080a,2">Negrita</T> <T n="3,1,0816,2">Negrito</T> <T n="3,1,0c04,2">Bold</T> <T n="3,1,0c0a,2">Negrita</T> <T n="3,1,0c0c,2">Gras</T> <!-- UniqueIdentifier --> <T n="1,0,0000,3">Microsoft JhengHei Bold</T> <T n="3,1,0404,3">微軟正黑體</T> <T n="3,1,0409,3">Microsoft JhengHei Bold</T> <T n="3,1,0c04,3">微軟正黑體</T> <!-- FullName --> <T n="1,0,0000,4">Microsoft JhengHei Bold</T> <T n="3,1,0403,4">Microsoft JhengHei Negreta</T> <T n="3,1,0404,4">微軟正黑體 Bold</T> <T n="3,1,0405,4">Microsoft JhengHei tučné</T> <T n="3,1,0406,4">Microsoft JhengHei fed</T> <T n="3,1,0407,4">Microsoft JhengHei Fett</T> <T n="3,1,0408,4">Microsoft JhengHei Έντονα</T> <T n="3,1,0409,4">Microsoft JhengHei Bold</T> <T n="3,1,040a,4">Microsoft JhengHei Negrita</T> <T n="3,1,040b,4">Microsoft JhengHei Lihavoitu</T> <T n="3,1,040c,4">Microsoft JhengHei Gras</T> <T n="3,1,040e,4">Microsoft JhengHei Félkövér</T> <T n="3,1,0410,4">Microsoft JhengHei Grassetto</T> <T n="3,1,0413,4">Microsoft JhengHei Vet</T> <T n="3,1,0414,4">Microsoft JhengHei Halvfet</T> <T n="3,1,0415,4">Microsoft JhengHei Pogrubiony</T> <T n="3,1,0416,4">Microsoft JhengHei Negrito</T> <T n="3,1,0419,4">Microsoft JhengHei Полужирный</T> <T n="3,1,041b,4">Microsoft JhengHei Tučné</T> <T n="3,1,041d,4">Microsoft JhengHei Fet</T> <T n="3,1,041f,4">Microsoft JhengHei Kalın</T> <T n="3,1,0424,4">Microsoft JhengHei Krepko</T> <T n="3,1,042d,4">Microsoft JhengHei Lodia</T> <T n="3,1,080a,4">Microsoft JhengHei Negrita</T> <T n="3,1,0816,4">Microsoft JhengHei Negrito</T> <T n="3,1,0c04,4">微軟正黑體 Bold</T> <T n="3,1,0c0a,4">Microsoft JhengHei Negrita</T> <T n="3,1,0c0c,4">Microsoft JhengHei Gras</T> <!-- Version --> <T n="1,0,0000,5">Version 6.00</T> <T n="3,1,0404,5">Version 6.00</T> <T n="3,1,0409,5">Version 6.00</T> <T n="3,1,0c04,5">Version 5.00</T> <!-- PostscriptName --> <T n="1,0,0000,6">MicrosoftJhengHeiBold</T> <T n="3,1,0404,6">MicrosoftJhengHeiBold</T> <T n="3,1,0409,6">MicrosoftJhengHeiBold</T> <T n="3,1,0c04,6">MicrosoftJhengHeiBold</T> <!-- Trademark --> <T n="1,0,0000,7">Microsoft JhengHei is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries.</T> <T n="3,1,0409,7">Microsoft JhengHei is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries.</T> <!-- Manufacturer --> <T n="3,1,0409,8">Microsoft Corporation</T> <!-- Designer --> <T n="3,1,0409,9">Monotype Imaging Inc.</T> <!-- VendorURL --> <T n="3,1,0409,11">http://www.microsoft.com/typography/fonts</T> <!-- DesignerURL --> <T n="3,1,0409,12">http://www.monotypeimaging.com</T> <!-- LicenseDescription --> <T n="3,1,0409,13"> NOTIFICATION OF LICENSE AGREEMENT You may use this font to display and print content as permitted by the license terms for the product in which this font is included. You may only (i) embed this font in content as permitted by the embedding restrictions included in this font; and (ii) temporarily download this font to a printer or other output device to help print content.</T> <!-- LicenseInfo --> <T n="3,1,0409,14">http://www.microsoft.com/typography/fonts</T> </Name> </Font> </Fonts> |
|
11楼#
发布于:2011-01-01 15:45
字体已改好留邮箱吧
|
|
|
12楼#
发布于:2011-01-01 15:45
<!-- e --><a href="mailto:lchforever1314@gmail.com">lchforever1314@gmail.com</a><!-- e -->
謝謝了 ![]() |
|
13楼#
发布于:2011-01-01 15:45
收到了!謝謝...正在使用...
|
|