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 添加自定义字体---中文,英文的更多相关文章

  1. css常用中文字体的英文名称写法

    我们知道网页中使用中文字体最好用其对应的英文名称,这样可以避免出现编码问题导致样式中的中文名称出现乱码,从而不识别.下面是网页中常用的中文字体所对应的英文名称.留着,不用翻资料了 中文 英文 宋体 S ...

  2. CSS中文字体的英文名称(simsun)宋体,(Microsoft YaHei)微软雅黑

    CSS中文字体的英文名称(simsun)宋体,(Microsoft YaHei)微软雅黑 华文细黑:STHeiti Light [STXihei] 华文黑体:STHeiti 华文楷体:STKaiti ...

  3. web中的中文字体的英文名称

    自从font-face出现以后,字体样式就不再是web开发者的难题了,但是对于移动端的中文来说,问题还是存在的,因为中文文件大小最少要3M+,即使选择性的加载某个字的字体,那也会出现不易替换的问题,所 ...

  4. Mac和Windows中常见中文字体的英文名称

    我们在给HTML元素设置字体的时候经常会有类似 “ font-family:"微软雅黑", "黑体" ” 这样的写法,尤其是在使用Dreamweaver.Apt ...

  5. HTML-CSS font-family:中文字体的英文名称

    本文转自网络,找不到原地址了,在这里保留了作者名. font-family:中文字体的英文名称 ellisontang 发表于2011-07-15 16:33 宋体* SimSun 黑体* SimHe ...

  6. css中常见中文字体的英文名称

    曾经看过一些文章,建议CSS中字体应用英文来替代,但一直未引起我重视.最近官网改版,今天同事测试发现Mac的Safari总是显示宋体 → → 修改font-family:"微软雅黑" ...

  7. HTML5印章绘制电子签章图片,中文英文椭圆章、中文英文椭圆印章

    原文:HTML5印章绘制电子签章图片,中文英文椭圆章.中文英文椭圆印章 电子签章图片采集 印章图片的采集两种互补方式: 方式1:在线生成印章图片方式,但是这种方式有个弊端,对印章中公司名称字数有限制, ...

  8. CSS3 里添加自定义字体

    添加自定义字体是从 CSS3 开始的,下载到的字体可以在网页中使用. 下载字体 在网上找字体下载,文件后缀名有 ttf.otf 等. 在 CSS 里加载字体 @font-face { font-fam ...

  9. 【iOS-Cocos2d游戏开发之四】独自收集Cocos2d提供的字体!共57种(有对照的字体图)

    本站文章均为李华明Himi原创,转载务必在明显处注明:(作者新浪微博:@李华明Himi) 转载自[黑米GameDev街区] 原文链接: http://www.himigame.com/iphone-c ...

随机推荐

  1. Objective-C 成员变量的访问修饰即成员变量可见性解析

    总体来说Objective-C的访问成员变量可见性和C++基本一样,只是多了个@package. 以下是详细说明: 例子: @interface CTPerson : NSObject { @priv ...

  2. Spring学习之代理

    Spring的核心就是IOC和AOP IOC就是控制反转:   就是用配置文件的方式给javabean 赋值. 正常的在程序里;用new 的方式创建一个对象的时候,他就固定了值, 如果是注入的方式的话 ...

  3. Java文件操作 读写操作

    一.Java读取文件 案例1:读取D盘的1.txt文件 编码: File file = new File("D:/1.txt"); FileReader fr = new File ...

  4. java web-----DAO设计模式(数据库访问)

    一,DAO设计模式用于 j2ee 的数据层访问,包括五部分, 数据库连接类(包含数据库的连接与关闭操作的一个类), VO类(私有变量与数据库表格对应,接收数据库中表格各字段内容), DAO接口类(包含 ...

  5. eclipse+PyDev 中报错"scrapy.spiders.Spider" ,可用"# @UndefinedVariable"压制.

    # -*- coding:utf-8 -*- ''' Created on 2015年10月22日 (1.1) 例子来源: http://scrapy-chs.readthedocs.org/zh_C ...

  6. ZOJ 1025 Wooden Sticks(快排+贪心)

    题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=25 题目大意:机器运送n个木条,每个木条有一个长度和重量.运送第一根木 ...

  7. 九度OJ 1433 FatMouse -- 贪心算法

    题目地址:http://ac.jobdu.com/problem.php?pid=1433 题目描述: FatMouse prepared M pounds of cat food, ready to ...

  8. python中的gil是什么?

    1.gil是什么? 在Python源代码:Python-2.7.10/Python/ceval.c.我看到的Python源代码版本为2.7.10 static PyThread_type_lock i ...

  9. WP8手机解锁时提示“请确保IPOVERUSBSVC服务正常运行”解决方法

    如果你各种重启服务 卸载手机 重装驱动都试过了还不行,请看看你是否安装了Hyper-v或Vitualbox虚拟机,很有可能是虚拟交换机造成的. 我在网络连接属性里看到这个 把它卸载后,解锁成功. 解锁 ...

  10. PHP curl 采集内容之规则 及图片下载方法2

    <?phpheader("Content-type:text/html; charset=utf-8");/*$pattern = '/xxx(.*)yyyy/isU'; / ...