custom-font

Using a UIWebView, can I use a custom font?

五迷三道 提交于 2019-11-29 07:43:33
问题 I've seen all the talk on the web about the difficulty of using a custom font in iPhone OS. Is it possible, to load a font from within my bundle into the UIWebView component? EDIT: I saw it in the app called "Omer" by "Rusty Brick"... It seems to be a web view, because I see a delay and during the loading delay the custom area is white. What other component could this have been? EDIT2: I contacted Rusty Brick. They told me which font it was. A standard font. 回答1: It is possible to load custom

Custom Fonts Xcode 4.3

£可爱£侵袭症+ 提交于 2019-11-28 19:56:44
I'm trying to use this font in my project but it won't work. I added the .ttf file in my project and added its name in the MyApp-Info.plist under the key: Fonts provided by application. Then I tried this: [_titleLabel setFont:[UIFont fontWithName:@"chalkboard" size:_titleLabel.font.pointSize]]; I also checked if the name of the font is really "chalkboard" and it is. The displayed font is still Helvetica, only smaller. Where could the problem be? Thanks in advance. You need to use font name, not filename. Font name is inside the ttf file. You can find font names for iOS here: http://iosfonts

Custom Fonts for DOMPDF

纵然是瞬间 提交于 2019-11-28 17:32:52
问题 I'm Using DOM PDF 0.6.0 Beta 2. I want to use custom fonts (Fonts: 'Segeo Print', 'Lucida Handwriting','Airplanes in the Night Sky') in PDF file. I followed the guidelines to install and use fonts in my PHP Code, which is given here http://code.google.com/p/dompdf/wiki/CPDFUnicode But I'm not able to get desire fonts in my PDF. You can find my code in this post. Please Let me know how I can resolve this issue. <?php require_once("dompdf_config.inc.php"); $html = "<html> <head> <meta http

Bottom of custom font cut off in Opera and webkit

Deadly 提交于 2019-11-28 07:41:06
I'm using a custom font in a page I'm developing, Droid Sans, and at certain font sizes, the bottom is cut off, but only in Opera and webkit browsers. It's easy to reproduce on Google's own webfonts page looking for Droid Sans and showing the whole alphabet at 18px: http://www.google.com/webfonts It's especially clear for the lower case g . Is there some css trick / hack I can use to increase the line height / show the whole character or am I really limited to only certain sizes of the font? line-height and padding for example don't change anything and 20px font-size works fine and at the

Custom Font in ios not working

浪子不回头ぞ 提交于 2019-11-28 04:19:49
I want to use HelveticaNeue-UltraLight in my ios application. I'm adding the font file as a resource to my project and adding the "Fonts provided by application" key in the plist file. The file name is HelveticaNeue.dfont and I've added it to the key array. When I check for the available fonts I can see it now... NSArray *fonts = [UIFont fontNamesForFamilyName:@"Helvetica Neue"]; for(NSString *string in fonts){ NSLog(@"%@", string); } 1-07-08 17:32:57.866 myApp[5159:207] HelveticaNeue-Bold 2011-07-08 17:32:57.866 myApp[5159:207] HelveticaNeue-CondensedBlack 2011-07-08 17:32:57.867 myApp[5159

Check if custom font can display character

别等时光非礼了梦想. 提交于 2019-11-28 01:51:28
I have a custom font which is displaying the box character. The font I am using does not support all languages apparently. I want to check if the String I am about to display can be displayed by my custom font. If it cannot then I want to use the standard Android font (which I know can display the characters). I can't find a method to check if my Typeface can display a particular String though. I am sure I have seen a method around that does this somewhere. Anyone know? As of Android version 23, You can test it like this: Typeface typeface; //initialize the custom font here //enter the

Custom font not working in lollipop

送分小仙女□ 提交于 2019-11-28 01:49:32
问题 Is there any way to use geomanist(custom) font in android lollipop. But it works in all other version. Here is my code In MyApplication class FontsOverride.setDefaultFont(this, "DEFAULT", "geomanist-lightnew.ttf"); FontsOverride.setDefaultFont(this, "MONOSPACE", "geomanist-lightnew.ttf"); FontsOverride.setDefaultFont(this, "SERIF", "geomanist-lightnew.ttf"); FontsOverride.setDefaultFont(this, "SANS_SERIF", "geomanist-lightnew.ttf"); public final class FontsOverride { public static void

Xcode 8 custom font doesn't show up in interface builder

北城以北 提交于 2019-11-27 19:16:17
I am trying to use custom font (Bebas Neue) in my iOS application. The steps I took are: Copy the .otf files to the project. Confirm the .otf files have set the project as target. Added the .otf files in 'Fonts provided by application' in plist. In Build Phases, the .otf files are in 'Copy Bundle Resources'. Install the font on my Mac. Try to print out all fonts available but I can't see my custom font. The code I used: for name in UIFont.familyNames() { println(name) if let nameString = name as? String { println(UIFont.fontNamesForFamilyName(nameString)) } } Trying to set the font in code and

Failed to decode downloaded font, OTS parsing error: invalid version tag + rails 4

删除回忆录丶 提交于 2019-11-27 17:33:30
I am doing assets pre-compile, and running the application in production mode. After compilation when I load the my index page I got followings warnings in the chrome console: Failed to decode downloaded font: http://localhost:3000/fonts/ionicons.ttf?v=2.0.0 prospects:1 OTS parsing error: invalid version tag Failed to decode downloaded font: http://localhost:3000/fonts/ionicons.woff?v=2.0.0 prospects:1 OTS parsing error: invalid version tag The issue is its not loading icons instead of that its showing squares . we used the custom fonts and the code is: @font-face { font-family: 'icomoon'; src

Custom font via CSS

和自甴很熟 提交于 2019-11-27 16:41:55
问题 I am learning php, html and css now and I'm trying to use a custom font on my site. I found the @font-face property that allows to make that, but it doesn't work. What am I doing wrong? css: @font-face {font-family: LazurskiCTT;src:url(../sources/fonts/ie/LazurskiCTT Regular.eot);} /*IE*/ @font-face {font-family:LazurskiCTT;src:url(../sources/fonts/LazurskiCTT Regular.Ttf);} /*Other browsers*/ #myFonts{font-family:LazurskiCTT;} html: <p id="myFonts">Lazurski</p> Maybe it's because I use it on