custom-font

Using custom font in viewpagerindicator

我只是一个虾纸丫 提交于 2019-12-06 00:59:08
In my project I am using the font android: fontFamily = "sans-serif-light", and working properly. I am also using the library viewpagerindicator. I want to use the font android: fontFamily = "sans-serif-light" also in the viewpagerindicator, but can not find how to do it I've tried using android:fontFamily = "sans-serif-light" in <com.viewpagerindicator.TitlePageIndicator ... and in style, but without success. I have also tried: PageIndicator mIndicator = (TitlePageIndicator) findViewById (R.id.indicator); Typeface myTypeface = Typeface.createFromAsset (getAssets (), "fonts / Roboto-Light.ttf"

Custom Font STILL wont work in IE

[亡魂溺海] 提交于 2019-12-05 20:51:14
The webpage where I'm trying to get the custom font "Duke-Fill" to display is http://www.hamlinforcongress.com/helpout.php I'm using: @font-face { font-family: 'header_font'; src: url('Duke-Fill.eot?#iefix') format('embedded-opentype'), url('Duke-Fill.woff') format('woff'), url('Duke-Fill.ttf') format('truetype'), url('Duke-Fill.svg#svgFontName') format('svg'); } .header_font{ font-family: header_font; } I've tried every other suggestion I can find on the Internet, but nothing can make the custom font display in Internet Explorer. It works perfectly in every other conceivable browser, but not

Loading custom font using JavaFX 8 and css

廉价感情. 提交于 2019-12-05 03:15:32
The Problem I'm creating a Super Mario themed css style sheet for my application, and I want to change the font of my buttons to a custom font called Press Start 2P, which is the pixelated font used in the NES Mario games. However, my application's not loading the font for some odd reason. CSS code: .text { -fx-font-family: "Press-Start-2P"; } .button { -fx-background-color: transparent; //-fx-text-fill: rgb(255, 255, 255); } @font-face { font-family: Press-Start-2P; src: url("PressStart2P.ttf"); } When I run the application, it gives me this message: Apr 25, 2015 8:22:32 AM com.sun.javafx.css

The new Custom Font Method in android using xml

让人想犯罪 __ 提交于 2019-12-04 14:17:25
As android released its O preview, a new feature has been added called fonts in xml . Its easy to implement but i have few doubts. let me first add the best way to do it 1.)Right-click the res folder and go to New > Android resource directory . The New Resource Directory window appears. 2.)In the Resource type list, select font , and then click OK. 3.) Add your font files in the font folder .The folder structure below generates R.font.dancing_script, R.font.la_la, and R.font.ba_ba. 4.) Double-click a font file to preview the file's fonts in the editor. Next we must create a font family 1.

Custom font for iPad - iOS 3.2 isn't working

此生再无相见时 提交于 2019-12-04 06:37:32
问题 I'm building an iPad-Only application. I need to use a custom font with some labels, so I added them to my project. They appear in my application target for "Copy Bundle Resources". I also added their names to my App's -Info.plist file: <key>UIAppFonts</key> <array> <string>font1.ttf</string> <string>font2.ttf</string> <string>font3.ttf</string> <string>font4.ttf</string> </array> Even so, when I try to set the font of my labels, it seems to just use the default. I haven't been able to figure

@font-face not displaying correctly in IE

泄露秘密 提交于 2019-12-03 13:00:02
问题 I have been searching for hours, asked friends and it didn't work out. So I hope you guys can help me. My website uses a custom font, but IE(10) doesn't support that on the way I do it. I have no idea it supports other methods. Here is mine: @font-face { font-family: shardee; src:url('fonts/Shardee.ttf'); } It is not necessary to have a custom font in Internet Explorer, but it would be nice. When Internet Explorer doesn't know the font, it used its default font. But the problem is, that the

@font-face not displaying correctly in IE

眉间皱痕 提交于 2019-12-03 03:08:12
I have been searching for hours, asked friends and it didn't work out. So I hope you guys can help me. My website uses a custom font, but IE(10) doesn't support that on the way I do it. I have no idea it supports other methods. Here is mine: @font-face { font-family: shardee; src:url('fonts/Shardee.ttf'); } It is not necessary to have a custom font in Internet Explorer, but it would be nice. When Internet Explorer doesn't know the font, it used its default font. But the problem is, that the font-size of the custom font is perfect, but of the Internet Explorer default font it is way too big. I

UITextView with custom font not working when text set to “attributed”

[亡魂溺海] 提交于 2019-12-03 01:55:07
I have a UITextView with some text that came from a .rtf (pasted directly onto Xcode) The context contain only one custom font (Futura Book BT 11.0) If I set the "text(attributed)" property to "plain"= The custom font appear properly from the storyboard and from the app If I set the "text" property to "attributed"=. The custom font appear properly from the storyboard BUT not from the app. As my goal was to have a text with multiple font working, how to have the attributed property to work with custom fonts? (Swift) Thanks! The custom font appear properly from the storyboard BUT not from the

@font-face not working on Wordpress site

蹲街弑〆低调 提交于 2019-12-02 17:41:58
问题 I'm using the @font-face function to use a custom font (Geosanslight) on my Wordpress site. I have downloaded the webkit using http://www.fontsquirrel.com and uploaded them into the folder http://www.lynnepassmore.com/public_html/wp-content/themes/esteem/fonts. I have then used the @font-face function in my custom css file to call them. However the font is not visible on any browser. Here is my @font-face css: @font-face { font-family: 'geosanslight'; src: url('../fonts/geosanslight-webfont

Adding a UIFont and looking for the fontfamily crashes with EXC_BAD_ACCESS

為{幸葍}努か 提交于 2019-12-02 12:17:07
My problem is, that when I add a font which is described here and when I want to retrieve the font family names with [UIFont familyNames] it crashes. I did it the same way described in the example, but for me it doesn't work. This is my stack trace: 0x314b9ebe in CFDictionaryGetValue 0x33d79be4 in copy_localized_value 0x33d79bd4 in CGFontNameTableCopyRootName 0x33d796f2 in CGFontNameTableCreate 0x33d79e86 in CGFontCopyFamilyName 0x3414ca00 in AddFontsFromCGFontAndPath 0x3414cb7e in AddFontsFromURLOrPath 0x3414cc98 in Initialize 0x3414ce0a in GSFontCopyFamilyNames 0x323fce84 in +[UIFont