custom-font

Assets folder in Android Studio?

你说的曾经没有我的故事 提交于 2019-12-18 11:19:04
问题 Im trying to use a custom font, and I've read that I suppose to place the fonts in assets/fonts. I'm using Android Studio and it doesn't seem like I have a assets folder. So I created one. But my app crashes when I place the assets folder in src/main. Im using this code to load my fonts. Typeface fontRegular = Typeface.createFromAsset(getAssets(), "fonts/DroidSans.ttf"); Typeface fontBold = Typeface.createFromAsset(getAssets(), "fonts/DroidSans-Bold.ttf"); myDeviceModelTxt.setTypeface

Designing labels/text views with custom fonts in Interface Builder

对着背影说爱祢 提交于 2019-12-18 00:19:27
问题 I am currently working on an iPhone project in which all labels/text views etc. should appear with a custom font (I'm using Xcode 4.2.1). I have done some research on this, and the only solution seems to be adding the font files to the project, editing the info.plist file appropriately and setting the font programmatically (i.e. by outlets or by subclassing the relevant views). In any case, these approaches won't lead to the interface builder displaying the text with the custom font (it will

Custom Arabic font in iOS

和自甴很熟 提交于 2019-12-17 09:17:26
问题 I am trying to make an iphone application that displays mainly Arabic language content. I want to use a custom Arabic font for displaying that content, not the iPhone default Arabic font. I used the following code: - (void)viewDidLoad { [super viewDidLoad]; [arabicLabel setFont: [UIFont fontWithName: @"Simple Indust Shaded" size: 20]]; arabicLabel.text = @"السلام عليكم"; } where arabicLabel is an IBOutlet UILabel. I put the label in the App resources and add it to the info.plist file as

Custom Arabic font in iOS

▼魔方 西西 提交于 2019-12-17 09:16:11
问题 I am trying to make an iphone application that displays mainly Arabic language content. I want to use a custom Arabic font for displaying that content, not the iPhone default Arabic font. I used the following code: - (void)viewDidLoad { [super viewDidLoad]; [arabicLabel setFont: [UIFont fontWithName: @"Simple Indust Shaded" size: 20]]; arabicLabel.text = @"السلام عليكم"; } where arabicLabel is an IBOutlet UILabel. I put the label in the App resources and add it to the info.plist file as

How to properly import custom font on all browsers

人盡茶涼 提交于 2019-12-13 14:20:41
问题 I have a custom font called Roboto Condensed . I have placed all the fonts into a fonts folder. I have a eot , woff , woff2 , ttf , and svg all in here for cyrilica, greek, vietnamese, and latin along with extensions for greek, cyrillic and latin. I am attempting to import it into my site like this: /* cyrillic-ext */ @font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 300; src: url("fonts/Roboto Condensed Cyrillic Ext.eot"); src: url("fonts/Roboto Condensed

How to set custom font and weight (style) to UInavigationbar title

爱⌒轻易说出口 提交于 2019-12-12 23:35:42
问题 How to set custom font name and custom font weight (font style) for UINavigationBar title? 回答1: Try this code. Swift 3x This could be a better approach to set nanvigationBar title font and Style. navigationController?.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName:UIColor.ANY COLOUR, NSFontAttributeName:UIFont(name:"FontName-FontStyle", size: ANY SIZE)!] Some Font Styles: Regular,Bold,BoldItalic,CondensedBlack,CondensedBold,Italic,Light,LightItalic,Thin,ThinItalic

Highcharts styling, Legend & custom fonts

自作多情 提交于 2019-12-12 17:31:25
问题 I have a problem with styling legend items in Highcharts , when applying a Custom Font to the legend items. Actually items are so close to each other and itemMarginBottom and itemMarginTop are not working. Here is part of my Highcharts code: legend: { enabled: true, y: 20, align: 'right', verticalAlign: 'top', margin: 30, width: 200, borderWidth: 0, itemMarginTop: 15, itemMarginBottom: 15, itemStyle: { color: '#000', fontFamily: 'MuseoS500' } }, And here is the legend's screenshot: My Ugly

Custom font not showing on device, but does on simulator

坚强是说给别人听的谎言 提交于 2019-12-12 10:33:02
问题 I've been playing around with custom fonts in iOS and have got most of it figured out apart from the custom font won't show on any of my devices. I have added the font to the root of the project file. Added it to the info.plist file under the array or "Fonts provided by application" Checked that the case sensitivity of both the original file and what I added to the info.plist file are the same. Used [playMenuBtn.titleLabel setFont:[UIFont fontWithName:@"fontname" size:40]]; to make the font

Custom fonts in Mac sdk using storyboard

放肆的年华 提交于 2019-12-12 07:24:11
问题 How to add a custom font to storyboard in Mac app development. I went through some blogs and tried by adding font book and develop one NStextfield using this custom font using storyboard. But it is system dependent. I created the DMG and install in another computer it uses the default font. I did it programmatically, but my requirement is through storyboard. Please help me on this 回答1: I spent a bit of time trying to figure this out and found the solution in this related question. In your

How to show American Sign Language (Hand Signs) on iOS Keyboard Keys?

↘锁芯ラ 提交于 2019-12-12 06:07:38
问题 I have to create a custom keyboard which support American Sign Language. For that I have to convert English language keyboard's keys symbols to American Sign language hand symbols keys. So how to translate (English Alphabets) to ASL- (Hand Sign) on iOS Keyboard. Look This: How to simulate a sign language keyboard in IOS? We have to do opposite of this. i.e Hand Signs on Keyboard. And when user press hand sign keys alphabets it's respected alphabet will show up in text editor. Hint: Sign