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. swing容器继承重绘问题解决

    swing容器继承重绘问题解决   以JPanel为例,继承JPanel,想动态为器更换背景,这就涉及到重绘问题.一下是本人重写代码: package ui; import java.awt.Grap ...

  2. Implicit conversion from enumeration type 'enum CGImageAlphaInfo' to different enumeration type 'CGB

    Implicit conversion from enumeration type 'enum CGImageAlphaInfo' to different enumeration type 'CGB ...

  3. c语言中的结构体为值类型,当把一个结构体赋值给另一个结构体时,为值传递

    #include <stdio.h> int main() { struct person { int age; }; }; //值传递,将p1中所有成员变量的值赋值个p2中对应的成员变量 ...

  4. mysql 根据某个字段将多条记录的某个字段拼接成一个字段

    未合并情况 SELECT a.id, b.name AS "role" FROM sys_user a INNER JOIN sys_user_role c ON a.id=c.u ...

  5. JamCam创业故事:辞掉工作,去开发一个应用

    编者按:这是JamCam创始人的自述.这家初创公司提供的应用很简单,但是极为成功:有了JamCam,你所录制的视频会自动添加你正在iPhone中聆听的音乐,作为视频的背景音乐.和朋友分享时是不是方便多 ...

  6. 浅析JAVA设计模式(二)

    2. 里氏替换原则:LSP(Liskov Substitution Principle)里氏替换原则,定义为只要父类出现的地方子类就可以出现,而且用子类替换后,程序也不会出现问题,使用者根本不用关心是 ...

  7. centOS 多网卡 启动网络 eth0 does not to be present

    centOS 6.4 中 em1 就是eth0... ---------------------------------------- http://www.php-oa.com/2012/03/07 ...

  8. Linux网络应用编程之Packet Tracer安装及界面介绍

    Packet Tracer入门 一,Packet Tracer介绍 packet tracer 是由Cisco公司发布的一个辅助学习工具,为学习思科网络课程的初学者去设计.配置.排除网络故障提供了网络 ...

  9. javascript下动态this与动态绑定实例代码

    this 的值取决于 function 被调用的方式,一共有四种, 如果一个 function 是一个对象的属性,该 funtion 被调用的时候,this 的值是这个对象. 如果 function ...

  10. Swift语言 1小时速学教程

    本文由 张渊杰 (网名寂静)编写 Swift语言 1小时速学教程 写在前面的话 有些人可能想, 呵呵, 1小时学一门语言, 你不是搞笑吧, 我想说, 是的, 完全可以, 就要看你怎么学了 要想在1小时 ...