cocos2d-x 添加自定义字体---中文,英文
1: 找到字体 xxx.ttf
2: 在xcode工程的 Info.plist文件中添加key
Fonts provided by application, 或者 UIAppFonts(raw key)
value写xxx.ttf
3: 使用代码
CCLabelTTF* chnTLabel = CCLabelTTF::create(wordsStr->getCString(), xxx.ttf, );
PS:
字体文件的"文件名"很多时候不是真实的 "字体名", 这样是无法使用的.
要找出真实的"字体名"才行.
方法: 比较在 Info.plist添加字体前后的区别, 来辨别添加了哪些字体.(如果有更好的方法请留言).
- (void)listFonts
{
NSArray *familyNames = [[NSArray alloc] initWithArray:[UIFont familyNames]];
NSArray *fontNames;
NSInteger indFamily, indFont;
for (indFamily=; indFamily<[familyNames count]; ++indFamily)
{
NSLog(@"Family name: %@", [familyNames objectAtIndex:indFamily]);
fontNames = [[NSArray alloc] initWithArray:[UIFont fontNamesForFamilyName:[familyNames objectAtIndex:indFamily]]];
for (indFont=; indFont<[fontNames count]; ++indFont)
{
NSLog(@" Font name: %@", [fontNames objectAtIndex:indFont]);
}
[fontNames release];
} [familyNames release];
}
打印结果:
-- ::25.011 TestChnFonts[:c07] Family name: Thonburi
-- ::25.012 TestChnFonts[:c07] Font name: Thonburi-Bold
-- ::25.013 TestChnFonts[:c07] Font name: Thonburi
-- ::25.013 TestChnFonts[:c07] Family name: Snell Roundhand
-- ::25.013 TestChnFonts[:c07] Font name: SnellRoundhand-Bold
-- ::25.014 TestChnFonts[:c07] Font name: SnellRoundhand-Black
-- ::25.014 TestChnFonts[:c07] Font name: SnellRoundhand
-- ::25.015 TestChnFonts[:c07] Family name: Academy Engraved LET
-- ::25.015 TestChnFonts[:c07] Font name: AcademyEngravedLetPlain
-- ::25.016 TestChnFonts[:c07] Family name: Avenir
-- ::25.016 TestChnFonts[:c07] Font name: Avenir-LightOblique
-- ::25.016 TestChnFonts[:c07] Font name: Avenir-MediumOblique
-- ::25.017 TestChnFonts[:c07] Font name: Avenir-Medium
-- ::25.017 TestChnFonts[:c07] Font name: Avenir-HeavyOblique
-- ::25.018 TestChnFonts[:c07] Font name: Avenir-BlackOblique
-- ::25.018 TestChnFonts[:c07] Font name: Avenir-Oblique
-- ::25.019 TestChnFonts[:c07] Font name: Avenir-Book
-- ::25.019 TestChnFonts[:c07] Font name: Avenir-Roman
-- ::25.019 TestChnFonts[:c07] Font name: Avenir-BookOblique
-- ::25.020 TestChnFonts[:c07] Font name: Avenir-Light
-- ::25.020 TestChnFonts[:c07] Font name: Avenir-Heavy
-- ::25.021 TestChnFonts[:c07] Font name: Avenir-Black
-- ::25.021 TestChnFonts[:c07] Family name: Marker Felt
-- ::25.022 TestChnFonts[:c07] Font name: MarkerFelt-Wide
-- ::25.022 TestChnFonts[:c07] Font name: MarkerFelt-Thin
-- ::25.022 TestChnFonts[:c07] Family name: Geeza Pro
-- ::25.023 TestChnFonts[:c07] Font name: GeezaPro-Bold
-- ::25.023 TestChnFonts[:c07] Font name: GeezaPro
-- ::25.024 TestChnFonts[:c07] Family name: Arial Rounded MT Bold
-- ::25.024 TestChnFonts[:c07] Font name: ArialRoundedMTBold
-- ::25.025 TestChnFonts[:c07] Family name: Trebuchet MS
-- ::25.025 TestChnFonts[:c07] Font name: TrebuchetMS
-- ::25.026 TestChnFonts[:c07] Font name: TrebuchetMS-Bold
-- ::25.026 TestChnFonts[:c07] Font name: TrebuchetMS-Italic
-- ::25.027 TestChnFonts[:c07] Font name: Trebuchet-BoldItalic
-- ::25.027 TestChnFonts[:c07] Family name: Arial
-- ::25.028 TestChnFonts[:c07] Font name: Arial-BoldMT
-- ::25.028 TestChnFonts[:c07] Font name: ArialMT
-- ::25.028 TestChnFonts[:c07] Font name: Arial-ItalicMT
-- ::25.029 TestChnFonts[:c07] Font name: Arial-BoldItalicMT
-- ::25.029 TestChnFonts[:c07] Family name: Marion
-- ::25.030 TestChnFonts[:c07] Font name: Marion-Regular
-- ::25.030 TestChnFonts[:c07] Font name: Marion-Bold
-- ::25.031 TestChnFonts[:c07] Font name: Marion-Italic
-- ::25.031 TestChnFonts[:c07] Family name: Gurmukhi MN
-- ::25.031 TestChnFonts[:c07] Font name: GurmukhiMN
-- ::25.032 TestChnFonts[:c07] Font name: GurmukhiMN-Bold
-- ::25.033 TestChnFonts[:c07] Family name: Malayalam Sangam MN
-- ::25.033 TestChnFonts[:c07] Font name: MalayalamSangamMN-Bold
-- ::25.034 TestChnFonts[:c07] Font name: MalayalamSangamMN
-- ::25.034 TestChnFonts[:c07] Family name: Bradley Hand
-- ::25.035 TestChnFonts[:c07] Font name: BradleyHandITCTT-Bold
-- ::25.035 TestChnFonts[:c07] Family name: Kannada Sangam MN
-- ::25.036 TestChnFonts[:c07] Font name: KannadaSangamMN
-- ::25.036 TestChnFonts[:c07] Font name: KannadaSangamMN-Bold
-- ::25.037 TestChnFonts[:c07] Family name: Bodoni Oldstyle
-- ::25.037 TestChnFonts[:c07] Font name: BodoniSvtyTwoOSITCTT-Book
-- ::25.038 TestChnFonts[:c07] Font name: BodoniSvtyTwoOSITCTT-Bold
-- ::25.038 TestChnFonts[:c07] Font name: BodoniSvtyTwoOSITCTT-BookIt
-- ::25.039 TestChnFonts[:c07] Family name: A Damn Mess
-- ::25.039 TestChnFonts[:c07] Font name: A_Damn_Mess
-- ::25.039 TestChnFonts[:c07] Family name: Cochin
-- ::25.040 TestChnFonts[:c07] Font name: Cochin
-- ::25.040 TestChnFonts[:c07] Font name: Cochin-BoldItalic
-- ::25.041 TestChnFonts[:c07] Font name: Cochin-Italic
-- ::25.041 TestChnFonts[:c07] Font name: Cochin-Bold
-- ::25.042 TestChnFonts[:c07] Family name: Sinhala Sangam MN
-- ::25.042 TestChnFonts[:c07] Font name: SinhalaSangamMN
-- ::25.043 TestChnFonts[:c07] Font name: SinhalaSangamMN-Bold
-- ::25.043 TestChnFonts[:c07] Family name: Hiragino Kaku Gothic ProN
-- ::25.043 TestChnFonts[:c07] Font name: HiraKakuProN-W6
-- ::25.044 TestChnFonts[:c07] Font name: HiraKakuProN-W3
-- ::25.044 TestChnFonts[:c07] Family name: Papyrus
-- ::25.045 TestChnFonts[:c07] Font name: Papyrus-Condensed
-- ::25.045 TestChnFonts[:c07] Font name: Papyrus
-- ::25.046 TestChnFonts[:c07] Family name: Verdana
-- ::25.046 TestChnFonts[:c07] Font name: Verdana
-- ::25.047 TestChnFonts[:c07] Font name: Verdana-Bold
-- ::25.047 TestChnFonts[:c07] Font name: Verdana-BoldItalic
-- ::25.048 TestChnFonts[:c07] Font name: Verdana-Italic
-- ::25.048 TestChnFonts[:c07] Family name: Zapf Dingbats
-- ::25.049 TestChnFonts[:c07] Font name: ZapfDingbatsITC
-- ::25.049 TestChnFonts[:c07] Family name: Avenir Next Condensed
-- ::25.050 TestChnFonts[:c07] Font name: AvenirNextCondensed-HeavyItalic
-- ::25.050 TestChnFonts[:c07] Font name: AvenirNextCondensed-DemiBold
-- ::25.051 TestChnFonts[:c07] Font name: AvenirNextCondensed-Italic
-- ::25.051 TestChnFonts[:c07] Font name: AvenirNextCondensed-Heavy
-- ::25.051 TestChnFonts[:c07] Font name: AvenirNextCondensed-DemiBoldItalic
-- ::25.052 TestChnFonts[:c07] Font name: AvenirNextCondensed-Medium
-- ::25.052 TestChnFonts[:c07] Font name: AvenirNextCondensed-BoldItalic
-- ::25.053 TestChnFonts[:c07] Font name: AvenirNextCondensed-Bold
-- ::25.053 TestChnFonts[:c07] Font name: AvenirNextCondensed-UltraLightItalic
-- ::25.054 TestChnFonts[:c07] Font name: AvenirNextCondensed-UltraLight
-- ::25.054 TestChnFonts[:c07] Font name: AvenirNextCondensed-MediumItalic
-- ::25.054 TestChnFonts[:c07] Font name: AvenirNextCondensed-Regular
-- ::25.055 TestChnFonts[:c07] Family name: Courier
-- ::25.056 TestChnFonts[:c07] Font name: Courier-Bold
-- ::25.056 TestChnFonts[:c07] Font name: Courier
-- ::25.056 TestChnFonts[:c07] Font name: Courier-BoldOblique
-- ::25.057 TestChnFonts[:c07] Font name: Courier-Oblique
-- ::25.057 TestChnFonts[:c07] Family name: Hoefler Text
-- ::25.058 TestChnFonts[:c07] Font name: HoeflerText-Black
-- ::25.058 TestChnFonts[:c07] Font name: HoeflerText-Italic
-- ::25.059 TestChnFonts[:c07] Font name: HoeflerText-Regular
-- ::25.059 TestChnFonts[:c07] Font name: HoeflerText-BlackItalic
-- ::25.060 TestChnFonts[:c07] Family name: Helvetica
-- ::25.060 TestChnFonts[:c07] Font name: Helvetica-LightOblique
-- ::25.060 TestChnFonts[:c07] Font name: Helvetica
-- ::25.061 TestChnFonts[:c07] Font name: Helvetica-Oblique
-- ::25.061 TestChnFonts[:c07] Font name: Helvetica-BoldOblique
-- ::25.062 TestChnFonts[:c07] Font name: Helvetica-Bold
-- ::25.062 TestChnFonts[:c07] Font name: Helvetica-Light
-- ::25.063 TestChnFonts[:c07] Family name: Euphemia UCAS
-- ::25.063 TestChnFonts[:c07] Font name: EuphemiaUCAS-Bold
-- ::25.064 TestChnFonts[:c07] Font name: EuphemiaUCAS
-- ::25.064 TestChnFonts[:c07] Font name: EuphemiaUCAS-Italic
-- ::25.064 TestChnFonts[:c07] Family name: STKaiti
-- ::25.065 TestChnFonts[:c07] Font name: STKaiti
-- ::25.066 TestChnFonts[:c07] Family name: Hiragino Mincho ProN
-- ::25.066 TestChnFonts[:c07] Font name: HiraMinProN-W3
-- ::25.066 TestChnFonts[:c07] Font name: HiraMinProN-W6
-- ::25.067 TestChnFonts[:c07] Family name: Bodoni Ornaments
-- ::25.067 TestChnFonts[:c07] Font name: BodoniOrnamentsITCTT
-- ::25.068 TestChnFonts[:c07] Family name: Apple Color Emoji
-- ::25.068 TestChnFonts[:c07] Font name: AppleColorEmoji
-- ::25.069 TestChnFonts[:c07] Family name: Optima
-- ::25.069 TestChnFonts[:c07] Font name: Optima-ExtraBlack
-- ::25.069 TestChnFonts[:c07] Font name: Optima-Italic
-- ::25.070 TestChnFonts[:c07] Font name: Optima-Regular
-- ::25.070 TestChnFonts[:c07] Font name: Optima-BoldItalic
-- ::25.071 TestChnFonts[:c07] Font name: Optima-Bold
-- ::25.071 TestChnFonts[:c07] Family name: Gujarati Sangam MN
-- ::25.072 TestChnFonts[:c07] Font name: GujaratiSangamMN
-- ::25.072 TestChnFonts[:c07] Font name: GujaratiSangamMN-Bold
-- ::25.094 TestChnFonts[:c07] Family name: Devanagari Sangam MN
-- ::25.095 TestChnFonts[:c07] Font name: DevanagariSangamMN
-- ::25.095 TestChnFonts[:c07] Font name: DevanagariSangamMN-Bold
-- ::25.096 TestChnFonts[:c07] Family name: Times New Roman
-- ::25.097 TestChnFonts[:c07] Font name: TimesNewRomanPS-ItalicMT
-- ::25.097 TestChnFonts[:c07] Font name: TimesNewRomanPS-BoldMT
-- ::25.099 TestChnFonts[:c07] Font name: TimesNewRomanPSMT
-- ::25.100 TestChnFonts[:c07] Font name: TimesNewRomanPS-BoldItalicMT
-- ::25.101 TestChnFonts[:c07] Family name: Kailasa
-- ::25.102 TestChnFonts[:c07] Font name: Kailasa
-- ::25.103 TestChnFonts[:c07] Font name: Kailasa-Bold
-- ::25.103 TestChnFonts[:c07] Family name: Telugu Sangam MN
-- ::25.104 TestChnFonts[:c07] Font name: TeluguSangamMN-Bold
-- ::25.105 TestChnFonts[:c07] Font name: TeluguSangamMN
-- ::25.106 TestChnFonts[:c07] Family name: Heiti SC
-- ::25.106 TestChnFonts[:c07] Font name: STHeitiSC-Medium
-- ::25.107 TestChnFonts[:c07] Font name: STHeitiSC-Light
-- ::25.108 TestChnFonts[:c07] Family name: Apple SD Gothic Neo
-- ::25.109 TestChnFonts[:c07] Font name: AppleSDGothicNeo-Bold
-- ::25.109 TestChnFonts[:c07] Font name: AppleSDGothicNeo-Medium
-- ::25.110 TestChnFonts[:c07] Family name: Futura
-- ::25.111 TestChnFonts[:c07] Font name: Futura-Medium
-- ::25.112 TestChnFonts[:c07] Font name: Futura-CondensedExtraBold
-- ::25.112 TestChnFonts[:c07] Font name: Futura-CondensedMedium
-- ::25.113 TestChnFonts[:c07] Font name: Futura-MediumItalic
-- ::25.114 TestChnFonts[:c07] Family name: Bodoni
-- ::25.114 TestChnFonts[:c07] Font name: BodoniSvtyTwoITCTT-BookIta
-- ::25.116 TestChnFonts[:c07] Font name: BodoniSvtyTwoITCTT-Book
-- ::25.117 TestChnFonts[:c07] Font name: BodoniSvtyTwoITCTT-Bold
-- ::25.117 TestChnFonts[:c07] Family name: Baskerville
-- ::25.118 TestChnFonts[:c07] Font name: Baskerville-SemiBoldItalic
-- ::25.118 TestChnFonts[:c07] Font name: Baskerville-Bold
-- ::25.119 TestChnFonts[:c07] Font name: Baskerville-Italic
-- ::25.119 TestChnFonts[:c07] Font name: Baskerville-BoldItalic
-- ::25.119 TestChnFonts[:c07] Font name: Baskerville-SemiBold
-- ::25.120 TestChnFonts[:c07] Font name: Baskerville
-- ::25.120 TestChnFonts[:c07] Family name: Chalkboard SE
-- ::25.121 TestChnFonts[:c07] Font name: ChalkboardSE-Regular
-- ::25.121 TestChnFonts[:c07] Font name: ChalkboardSE-Bold
-- ::25.121 TestChnFonts[:c07] Font name: ChalkboardSE-Light
-- ::25.122 TestChnFonts[:c07] Family name: Heiti TC
-- ::25.130 TestChnFonts[:c07] Font name: STHeitiTC-Medium
-- ::25.131 TestChnFonts[:c07] Font name: STHeitiTC-Light
-- ::25.132 TestChnFonts[:c07] Family name: Copperplate
-- ::25.132 TestChnFonts[:c07] Font name: Copperplate
-- ::25.133 TestChnFonts[:c07] Font name: Copperplate-Light
-- ::25.133 TestChnFonts[:c07] Font name: Copperplate-Bold
-- ::25.134 TestChnFonts[:c07] Family name: Party LET
-- ::25.135 TestChnFonts[:c07] Font name: PartyLetPlain
-- ::25.135 TestChnFonts[:c07] Family name: American Typewriter
-- ::25.135 TestChnFonts[:c07] Font name: AmericanTypewriter-CondensedLight
-- ::25.136 TestChnFonts[:c07] Font name: AmericanTypewriter-Light
-- ::25.136 TestChnFonts[:c07] Font name: AmericanTypewriter-Bold
-- ::25.136 TestChnFonts[:c07] Font name: AmericanTypewriter
-- ::25.137 TestChnFonts[:c07] Font name: AmericanTypewriter-CondensedBold
-- ::25.137 TestChnFonts[:c07] Font name: AmericanTypewriter-Condensed
-- ::25.138 TestChnFonts[:c07] Family name: Symbol
-- ::25.138 TestChnFonts[:c07] Font name: Symbol
-- ::25.139 TestChnFonts[:c07] Family name: Avenir Next
-- ::25.139 TestChnFonts[:c07] Font name: AvenirNext-Heavy
-- ::25.140 TestChnFonts[:c07] Font name: AvenirNext-DemiBoldItalic
-- ::25.140 TestChnFonts[:c07] Font name: AvenirNext-UltraLightItalic
-- ::25.140 TestChnFonts[:c07] Font name: AvenirNext-HeavyItalic
-- ::25.141 TestChnFonts[:c07] Font name: AvenirNext-MediumItalic
-- ::25.141 TestChnFonts[:c07] Font name: AvenirNext-UltraLight
-- ::25.142 TestChnFonts[:c07] Font name: AvenirNext-BoldItalic
-- ::25.142 TestChnFonts[:c07] Font name: AvenirNext-DemiBold
-- ::25.143 TestChnFonts[:c07] Font name: AvenirNext-Bold
-- ::25.143 TestChnFonts[:c07] Font name: AvenirNext-Regular
-- ::25.144 TestChnFonts[:c07] Font name: AvenirNext-Medium
-- ::25.144 TestChnFonts[:c07] Font name: AvenirNext-Italic
-- ::25.145 TestChnFonts[:c07] Family name: Noteworthy
-- ::25.145 TestChnFonts[:c07] Font name: Noteworthy-Light
-- ::25.145 TestChnFonts[:c07] Font name: Noteworthy-Bold
-- ::25.146 TestChnFonts[:c07] Family name: Bangla Sangam MN
-- ::25.146 TestChnFonts[:c07] Font name: BanglaSangamMN-Bold
-- ::25.147 TestChnFonts[:c07] Font name: BanglaSangamMN
-- ::25.147 TestChnFonts[:c07] Family name: Zapfino
-- ::25.147 TestChnFonts[:c07] Font name: Zapfino
-- ::25.148 TestChnFonts[:c07] Family name: Tamil Sangam MN
-- ::25.148 TestChnFonts[:c07] Font name: TamilSangamMN
-- ::25.149 TestChnFonts[:c07] Font name: TamilSangamMN-Bold
-- ::25.149 TestChnFonts[:c07] Family name: Chalkduster
-- ::25.150 TestChnFonts[:c07] Font name: Chalkduster
-- ::25.164 TestChnFonts[:c07] Family name: Arial Hebrew
-- ::25.164 TestChnFonts[:c07] Font name: ArialHebrew
-- ::25.165 TestChnFonts[:c07] Font name: ArialHebrew-Bold
-- ::25.166 TestChnFonts[:c07] Family name: Georgia
-- ::25.166 TestChnFonts[:c07] Font name: Georgia-Italic
-- ::25.167 TestChnFonts[:c07] Font name: Georgia-BoldItalic
-- ::25.167 TestChnFonts[:c07] Font name: Georgia-Bold
-- ::25.168 TestChnFonts[:c07] Font name: Georgia
-- ::25.168 TestChnFonts[:c07] Family name: Helvetica Neue
-- ::25.169 TestChnFonts[:c07] Font name: HelveticaNeue-Bold
-- ::25.169 TestChnFonts[:c07] Font name: HelveticaNeue-CondensedBlack
-- ::25.170 TestChnFonts[:c07] Font name: HelveticaNeue-Medium
-- ::25.170 TestChnFonts[:c07] Font name: HelveticaNeue
-- ::25.171 TestChnFonts[:c07] Font name: HelveticaNeue-Light
-- ::25.171 TestChnFonts[:c07] Font name: HelveticaNeue-CondensedBold
-- ::25.172 TestChnFonts[:c07] Font name: HelveticaNeue-LightItalic
-- ::25.172 TestChnFonts[:c07] Font name: HelveticaNeue-UltraLightItalic
-- ::25.172 TestChnFonts[:c07] Font name: HelveticaNeue-UltraLight
-- ::25.173 TestChnFonts[:c07] Font name: HelveticaNeue-BoldItalic
-- ::25.173 TestChnFonts[:c07] Font name: HelveticaNeue-Italic
-- ::25.174 TestChnFonts[:c07] Family name: Gill Sans
-- ::25.174 TestChnFonts[:c07] Font name: GillSans-LightItalic
-- ::25.175 TestChnFonts[:c07] Font name: GillSans-BoldItalic
-- ::25.175 TestChnFonts[:c07] Font name: GillSans-Italic
-- ::25.176 TestChnFonts[:c07] Font name: GillSans
-- ::25.176 TestChnFonts[:c07] Font name: GillSans-Bold
-- ::25.177 TestChnFonts[:c07] Font name: GillSans-Light
-- ::25.177 TestChnFonts[:c07] Family name: Palatino
-- ::25.178 TestChnFonts[:c07] Font name: Palatino-Roman
-- ::25.178 TestChnFonts[:c07] Font name: Palatino-Bold
-- ::25.178 TestChnFonts[:c07] Font name: Palatino-BoldItalic
-- ::25.179 TestChnFonts[:c07] Font name: Palatino-Italic
-- ::25.179 TestChnFonts[:c07] Family name: Courier New
-- ::25.180 TestChnFonts[:c07] Font name: CourierNewPS-BoldMT
-- ::25.180 TestChnFonts[:c07] Font name: CourierNewPSMT
-- ::25.181 TestChnFonts[:c07] Font name: CourierNewPS-BoldItalicMT
-- ::25.181 TestChnFonts[:c07] Font name: CourierNewPS-ItalicMT
-- ::25.181 TestChnFonts[:c07] Family name: Oriya Sangam MN
-- ::25.182 TestChnFonts[:c07] Font name: OriyaSangamMN-Bold
-- ::25.182 TestChnFonts[:c07] Font name: OriyaSangamMN
-- ::25.183 TestChnFonts[:c07] Family name: Didot
-- ::25.183 TestChnFonts[:c07] Font name: Didot-Italic
-- ::25.184 TestChnFonts[:c07] Font name: Didot
-- ::25.184 TestChnFonts[:c07] Font name: Didot-Bold
-- ::25.185 TestChnFonts[:c07] Family name: Bodoni Smallcaps
-- ::25.186 TestChnFonts[:c07] Font name: BodoniSvtyTwoSCITCTT-Book
cocos2d-x 添加自定义字体---中文,英文的更多相关文章
- css常用中文字体的英文名称写法
我们知道网页中使用中文字体最好用其对应的英文名称,这样可以避免出现编码问题导致样式中的中文名称出现乱码,从而不识别.下面是网页中常用的中文字体所对应的英文名称.留着,不用翻资料了 中文 英文 宋体 S ...
- CSS中文字体的英文名称(simsun)宋体,(Microsoft YaHei)微软雅黑
CSS中文字体的英文名称(simsun)宋体,(Microsoft YaHei)微软雅黑 华文细黑:STHeiti Light [STXihei] 华文黑体:STHeiti 华文楷体:STKaiti ...
- web中的中文字体的英文名称
自从font-face出现以后,字体样式就不再是web开发者的难题了,但是对于移动端的中文来说,问题还是存在的,因为中文文件大小最少要3M+,即使选择性的加载某个字的字体,那也会出现不易替换的问题,所 ...
- Mac和Windows中常见中文字体的英文名称
我们在给HTML元素设置字体的时候经常会有类似 “ font-family:"微软雅黑", "黑体" ” 这样的写法,尤其是在使用Dreamweaver.Apt ...
- HTML-CSS font-family:中文字体的英文名称
本文转自网络,找不到原地址了,在这里保留了作者名. font-family:中文字体的英文名称 ellisontang 发表于2011-07-15 16:33 宋体* SimSun 黑体* SimHe ...
- css中常见中文字体的英文名称
曾经看过一些文章,建议CSS中字体应用英文来替代,但一直未引起我重视.最近官网改版,今天同事测试发现Mac的Safari总是显示宋体 → → 修改font-family:"微软雅黑" ...
- HTML5印章绘制电子签章图片,中文英文椭圆章、中文英文椭圆印章
原文:HTML5印章绘制电子签章图片,中文英文椭圆章.中文英文椭圆印章 电子签章图片采集 印章图片的采集两种互补方式: 方式1:在线生成印章图片方式,但是这种方式有个弊端,对印章中公司名称字数有限制, ...
- CSS3 里添加自定义字体
添加自定义字体是从 CSS3 开始的,下载到的字体可以在网页中使用. 下载字体 在网上找字体下载,文件后缀名有 ttf.otf 等. 在 CSS 里加载字体 @font-face { font-fam ...
- 【iOS-Cocos2d游戏开发之四】独自收集Cocos2d提供的字体!共57种(有对照的字体图)
本站文章均为李华明Himi原创,转载务必在明显处注明:(作者新浪微博:@李华明Himi) 转载自[黑米GameDev街区] 原文链接: http://www.himigame.com/iphone-c ...
随机推荐
- 推荐几款提高.net编程效率的辅助工具
1.Resharper ReSharper是一个JetBrains公司出品的著名的代码生成工具,其能帮助Microsoft Visual Studio成为一个更佳的IDE.它包括一系列丰富的能大大增加 ...
- 不一样的编码风格--Lambda表达式
Lambda表达式也是C#3.0中最重要的特性之一. 1.Lambda表达式的简介 Lambda表达式可以理解为一个匿名方法,它可以包含表达式和语句,并且用于创建委托或转换为表达式树.在使用Lambd ...
- String类与Date类的转换
public class DateTest { public static void main(String[] args) throws ParseException { Date date = n ...
- UVA 10795 A Different Task(汉诺塔 递归))
A Different Task The (Three peg) Tower of Hanoi problem is a popular one in computer science. Briefl ...
- Poj 1511 Invitation Cards(spfa)
Invitation Cards Time Limit: 8000MS Memory Limit: 262144K Total Submissions: 24460 Accepted: 8091 De ...
- leetcode345——Reverse Vowels of a String(C++)
Write a function that takes a string as input and reverse only the vowels of a string. Example 1:Giv ...
- MySQl索引创建
一.什么是索引? 索引用来快速地寻找那些具有特定值的记录,所有MySQL索引都以B-树的形式保存.如果没有索引,执行查询时MySQL必须从第一个记录开始扫描整个表的所有记录,直至找到符合要求的记录.表 ...
- Hash函数的安全性
我们为了保证消息的完整性,引进了散列函数,那么散列函数会对安全正造成什么影响呢?这是需要好好研究一番的问题. 三个概念: 1.如果y<>x,且h(x)=h(y),则称为碰撞. 2.对于给定 ...
- Jquery 动态生成表单 并将表单数据 批量通过Ajax插入到数据库
利用Jquery 动态生成 Table 表单 之后利用each 方法来遍历所有文本框获取文本的value值 并通过Ajax 将数据 提交到Web服务里把数据插入数据库 Html页面 <!DOC ...
- php 文件路径设置 set_include_path(); get_include_path();
<?php set_include_path($string); //设置路径 get_include_path(); // 获取当前的路径 //例如:文件路径为: //D:/phpweb/de ...