草庐IT

android - 使用薄型或浓缩型 Roboto

是否可以使用Robotothinorcondensedstyle在ICS中无需包含.ttf并手动加载它,我的意思是无需使用:Typeface.createFromAsset(this.getAssets(),"fonts/DroidSerif-Bold.ttf"); 最佳答案 Android4.1之前的版本仅包含四种基本的Roboto样式:Regular、Bold、Italic和BoldItalic.在没有Assets的情况下,无法在ICS中使用精简或压缩样式。Android4.1(JellyBean,API16)及以上includ

ios - SenticoSansDT - 中型和薄型不在 xcode 中加载

我尝试加载以下字体SenticoSansDT-LightSenticoSansDT-RegularSenticoSansDT-ThinSenticoSansDT-Medium都是后缀为.ttf的字体文件我添加到Xcode并检查目标。在构建阶段添加字体以及info.plist。但我只看到要启用的Regular和Light字体。字体簿和Storyboard中均未显示Medium 最佳答案 在mac上安装.ttf文件并使用下面的代码找到字体的确切名称。NSArray*familyNames=[[NSArrayalloc]initWithA