fonts

Is @font-face usable now?

百般思念 提交于 2020-01-19 04:48:08
问题 I have to use a fancy font in a project but I'd really like to avoid sifr and other ugly alternatives so I'm looking at @font-face. However, I'm really confused with several blog/sites offering different views on its usability. Is is ready yet? Which browsers support it today? Thanks 回答1: Just about every browser implements it now. The only real catch is that Internet Explorer requires font files in its own OTF format and will not understand TTF format. Many sites that provide fonts for use

Using Chinese fonts in TCPDF and FPDI. Encoding problems

僤鯓⒐⒋嵵緔 提交于 2020-01-17 11:15:35
问题 I am writing a script that generates Chinese character worksheets (so students can generate and practice writing) The script is passed a 15 character string from a form in index.php. The string is then exploded into an array of 15 elements (each a Chinese character). The problem arises when I want to use the Write() function to populate the file with these characters, I've used the input to pick appropiate images without any problems but now it's the encoding of the fonts that gives me a hard

Custom fonts in hybrid mobile app (phone gap) UI

社会主义新天地 提交于 2020-01-17 09:09:08
问题 I have used few custom fonts in my first hybrid mobile app (in phonegap) using @font-face rules. Font files with different extension were packing with app and called them using CSS. And it rendered perfectly. But doubtful on this method and would like to know is this a right approach? Please guide me. Thanks! 回答1: I've been using Cordova and that approach for some time now, and never had problems with it. Provided that this is what you're doing... @font-face { font-family: dinpro_black; src:

inconsolata not working windows 7

早过忘川 提交于 2020-01-17 07:38:08
问题 I have no idea which of the SE sites to ask this on (there's no windows SE site like there is on linux;) so I'll try this one. I tried installing inconsolata to use as my default programming font. The problem is, it looks either messed up or is complete gibberish. I'm using windows 7 Home Premium if that helps. I've included some screenshots so you can see for yourself. The first is of jsfiddle (which uses inconsolata) and the second is netbeans with the same code as the jsfiddle one: Does

Getting @font-face to work in html email

时光怂恿深爱的人放手 提交于 2020-01-17 07:26:46
问题 I'm using @font-face to display a typeface I have bought and am self-hosting. It works fine on Apple devices, but in some versions of Outlook and Android my text is not displayed at - just a big blank space where the text content should be. Here is my code: <head> <style type="text/css"> @media screen { @font-face { font-family: 'ElenaWebBasic'; src: url('https://www.xyz.co.uk/webfonts/ElenaWebBasicBold/ElenaWebBasicBold.eot'); src: url('https://www.xyz.co.uk/webfonts/ElenaWebBasicBold

Get colours from fonts in PDFBox

一笑奈何 提交于 2020-01-17 06:03:10
问题 I am trying to get the font colour from PDFBox and I seem to keep throwing an exception. Can someone help? The way I tried to obtain the colour was (page is the PDPage I obtained): PDResources = page.getResources(); Iterable<COSName> fontNames = resources.getFontNames(); for (COSName fontName:fontNames) System.out.println("name: " + resources.getFont(fontName).getName() + "colour: " + resources.getColorSpace(fontName).getName()); This prints out the exception: org.apache.pdfbox.pdmodel

Xamarin Forms: How to set FontAttributes Bold for a custom font

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-17 05:17:05
问题 I have a Xamarin Forms project use FontAwesome follow this link: http://forums.xamarin.com/discussion/31530/fontawesome-label-heres-how It work well. But when I add this code: myLabel.FontAttributes = FontAttributes.Bold; The icon becomes an rectangle image with "?" in it. I think it's because the custom font I set is just in normal font attribute. How can I set font for bold attribute in Xamarin Forms? 回答1: Ok, so FontAwesome does not support bold type. So I have to use the normal font

installed font not working in ec2 in rails app

泪湿孤枕 提交于 2020-01-17 04:28:06
问题 I have downloaded font by running wget http://www.fontsquirrel.com/fonts/download/amatic inside my ec2 instance. Then I created a .fonts director and unzipped those files inside it. Then I ls .fonts and there were the font files. Then I ran fc-cache -f -v and it gave me this output /usr/share/fonts: caching, new cache contents: 0 fonts, 3 dirs /usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 5 dirs /usr/share/fonts/cmap/adobe-cns1: caching, new cache contents: 0 fonts, 0 dirs /usr

Using fonts (ttf or odf) in iOS applications — is it a hit or miss whether they work? (SourceSansPro-ExtraLight)

吃可爱长大的小学妹 提交于 2020-01-17 03:40:29
问题 I've had hit-or-miss success with using custom fonts in an iOS app. I follow these steps: Drag in the font into my project and copy into the project Make sure the font is included in the Build Phases Add the font name (including the extension) into the app's plist file. I confirmed that I am using the postscript name: SourceSansPro-ExtraLight.ttf Try to use the font self.daysLeftLabel.font = [UIFont fontWithName:@"SourceSansPro-ExtraLight" size:14]; However, only the generic system font is

flash as3 xml cdata bold tags rendered in htmlText with an embedded font

夙愿已清 提交于 2020-01-17 01:22:11
问题 I'm just trying to get flash to render bold text in a dynamic text field with an embedded font, using data I've imported from an xml file using CDATA. Anyone know how to do this? XML File: <description><![CDATA[ FOR THE PAST TWO YEARS, <b>SUPERFAD</b> HAS WORKED CLOSELY WITH THE <b>MARTIN AGENCY</b> TO VISUALIZE THE ORIGINAL WORKS OF <b>SPORT CAMPAIGN</b>. THE CAMPAIGN SPOTLIGHTS THE EXTREME ATHLETES OF THE VARIOUS EVENTS AS ARTISTS IN THEIR OWN WORLD, USING THE TOOLS OF THEIR SPORT TO CREATE