fonts

Cant find custom font - iOS

旧城冷巷雨未停 提交于 2020-01-09 09:42:11
问题 i have added a custom font - one which i have downloaded from from the net. it is in TTF format and can be used on other programs on my mac. (Successfully added it to font book and used in fireworks). I have added the key to the info .plist but the font doesn't seem to work. When i NSLog the font it is null so i am assuming it isn't finding it. The TTF is called LONDON__.TTF but has a name as London font. What should i use as the font and add to the info.plist for this to work? Thanks Dan

Cant find custom font - iOS

∥☆過路亽.° 提交于 2020-01-09 09:41:24
问题 i have added a custom font - one which i have downloaded from from the net. it is in TTF format and can be used on other programs on my mac. (Successfully added it to font book and used in fireworks). I have added the key to the info .plist but the font doesn't seem to work. When i NSLog the font it is null so i am assuming it isn't finding it. The TTF is called LONDON__.TTF but has a name as London font. What should i use as the font and add to the info.plist for this to work? Thanks Dan

Multiple Font Style Combinations in vb.net

南楼画角 提交于 2020-01-07 08:32:44
问题 If I want to create a font with multiple style combinations, like bold AND underline, I have to place the 'or' statement between it, like in the example below: lblArt.Font = New Font("Tahoma", 18, FontStyle.Bold Or FontStyle.Underline) If you place bold 'and' underline, it won't work, and you only get 1 of the 2 (like how the or statement should be working), while that would be the logically way to do it. What is the reason behind this? 回答1: Boolean logic works a bit differently than the way

how change font for text in listview with custom font in android?

旧街凉风 提交于 2020-01-07 08:13:22
问题 I am developing some app. which contains listview and i want to display the text with custom font .. i am using this code in BaseAdapter class but when i use it the text is disappeared TextView text = (TextView) vi.findViewById(R.id.text); // title tf = Typeface.createFromAsset(activity.getAssets(), "fonts/Vijaya.ttf"); text.setTypeface(tf); text.setText(quote.get(QuotesActivity.KEY_TEXT)); this is my full code: class: package com.engahmedphp.successquotes; import java.io.IOException; import

Android: Use two Custom Fonts for one EditText

三世轮回 提交于 2020-01-07 06:25:08
问题 This may sound a bit fishy but, even i dont know if this is possible in android or not. The requirement is i need to write two languages in the edittext, one urdu and the other is default english, now the problem is in the typeface, since i have to use the urdu typeface as a default, i used setTypeface like the following: editText.setTypeface(englishFont); But the problem is the english in this typeface is not good, in fact it is smaller than usual for this i have to use another typeface for

Android: Use two Custom Fonts for one EditText

落爺英雄遲暮 提交于 2020-01-07 06:25:03
问题 This may sound a bit fishy but, even i dont know if this is possible in android or not. The requirement is i need to write two languages in the edittext, one urdu and the other is default english, now the problem is in the typeface, since i have to use the urdu typeface as a default, i used setTypeface like the following: editText.setTypeface(englishFont); But the problem is the english in this typeface is not good, in fact it is smaller than usual for this i have to use another typeface for

Chrome not reading all my @font-faces

会有一股神秘感。 提交于 2020-01-07 04:07:25
问题 I'm using different fonts for my page. Codes I've used in my CSS file are as followed: @font-face{ font-family:dst; src:url('fonts/dastnevis.ttf'), url('fonts/dastnevis.eot'), url('fonts/dastnevis.otf'); } @font-face{ font-family:hayat; src:url('fonts/hayat.ttf'), url('fonts/hayat.eot'), url('fonts/hayat.otf'); } @font-face{ font-family:taha; src:url('fonts/taha.ttf'), url('fonts/taha.eot'), url('fonts/taha.otf'); } The problem is that Chrome (I'm using version 28) is reading only one of

Font height changes between Firefox & Webkit browsers?

被刻印的时光 ゝ 提交于 2020-01-07 04:00:23
问题 The font (myriad pro) seems to be different between Firefox & Webkit browsers (Chrome & Safari). I have not tested on Internet Explorer. form.standard.small input[type=submit] { width: 104px; height: 36px; margin: 12px 2px 4px; padding: 5px 27px 5px 45px; font-size: 14px; background:url('../images/button-small.png') no-repeat 0px 0px; } When I go into the computed style in Firebug, all parameters are the same (line-height, font-size, padding, margin, etc). I tried isolating the @font-face

Embedded font don't work in Apache FOP

为君一笑 提交于 2020-01-07 03:52:23
问题 I am using FOP to tranform xml to pdf, and I need to use Chinese characters.I did do something to use Chinese font,but it seems don't work at all. I create the font xml file. and registered in the fop.xconf <font metrics-url="/home/zhufree/Tools/fop-2.1/conf/simkai.xml" kerning="yes" embed-url="/home/zhufree/Tools/fop-2.1/conf/kaiti.ttf"> <font-triplet name="simkai" style="normal" weight="normal" /> <font-triplet name="simkai" style="normal" weight="bold" /> <font-triplet name="simkai" style=

How to use custom font in Cordova?

ⅰ亾dé卋堺 提交于 2020-01-07 02:37:05
问题 In cordova I am using the normal font which is written through p tag or h1 tag etc. I want to write in an stylish font like BROADWAY or CASTELLAR which are available in Microsoft Office and can also be found online as tff file. Is there a way by which I can use any custom font in Cordova. ==>By Custom font I mean any font other than the default font. 回答1: Yes it is possible. put these in your .css file: @face-face { font-family: 'font name'; src: url("font address"); } then use font-family: