FAQ Database Discussion Community


The right way to include multiple fonts in css

html,css,fonts,font-face
I don't a simple moment. Which way is the right way to include multiple fonts in css? Here are simple examples. This? @font-face { font-family: DeliciousRomanRegular; src: url(/Delicious-Roman-R.otf); } @font-face { font-family: DeliciousRomanBold; src: url(/Delicious-Roman-B.otf); } or this? @font-face { font-family: Roman; src: url(/Delicious-Roman-R.otf); font-style: normal; font-weight: normal; } @font-face...

Why are THs bolder than TDs and how to avoid it?

css,fonts,html-table
Edit June 14, 2015 - from this question, I learned that "bolder" and "lighter" are relative. The source that I referenced before said that "bolder" were an absolute measure and means "extra bold". I changed that source now :) (selfhtml.org wiki). Thanks all for your help. Please consider the following...

Fonts not loading on iOS but load fine in Android

ios,qt,fonts
I'm currently loading two fonts from a qrc file. One of them is .ttf and the other is .otf. When I test my build on Android, they load and work fine (although the loading time is fairly long..) However when I test it on my iPhone and/or simulator, none of...

Increase fonts for mobile devices with Zurb Foundation

css,mobile,fonts,responsive-design,zurb-foundation-5
I've created a clean new web project with Zurb Foundation 5. On desktop and laptop it looks great. I use rem units for font sizes. On small devices the layout is responsive but the font is much smaller - I guess because of higher pixel density. The solutions (this for...

How can I determine the escape sequence for characters in an icon font?

css,fonts
I am working with a theme which uses a custom built set of icons which are loaded as a font. If I download the font I can load it in my font manager and see all the icons, but how to determine which escape sequence to use in my css...

Marlett font missing from VBA object properties

excel-vba,fonts,object-properties
I want to place a green tick mark on a userform and thought that creating a label with the caption "a" in Marlett font would do the trick. However, Marlett isn't showing up in the object properties despite definitely being installed. I can easily place the tick mark in a...

Button font size different on users PC

.net,vb.net,winforms,fonts
I created a project using winforms. A couple of my buttons contained two words. When the software was installed on a users PC, I noticed that the second word did not fit on the button. I believe this is because for whatever reason the users PC rendered the font I...

VBA for changing font and colour of a cell if a certain word is typed in it

excel,vba,excel-vba,fonts,colors
I have a somewhat large spreadsheet with a type of summary page that follows a calender layout. On this page I manually change the font and color of cells to make it easy for me to find certain things on it. For example, (I lecture mathematics) if I have revision...

Wild bug with an icon font - wrong icon displayed

css,fonts,icons
(Ask to answer) For the project I'm working on we have a custom set of icons, which I converted into a font using https://glyphter.com/ (just googled this type of service and it seemed okay). Inside one of the block I'm inserting an icon with the class from the CSS generated...

PyQt4: set a default font?

fonts,pyqt
I'm adjusting a GUI written in PyQt4, and I'd like to change every last bit of text that appears in it to a different font than what PyQt uses by default. I've been doing this by calling widget.setStyleSheet("font-family: DesiredFont;") on every widget with text in it. This is very cumbersome....

How to add an icon to the font used by materialize.css?

css,fonts,icons
I'm using this framework : https://github.com/Dogfalo/materialize. I see a lot of icons but I don't find anything for the € symbol. Although there is this one $. I'm wondering how to add a new icon, cause it is a font and I have no idea how to do it. May...

Adobe Flash Pro: Locate asset with missing font

flash,fonts
I transferred my work to a new computer, and when I open my .fla file, Adobe Flash is telling me that I'm missing a font. Is there any easy to locate which asset in my library is using that missing font? Because I'm pretty sure I no longer need the...

How can we link freetype library to Embedded Projects?

fonts,freetype,keil,coocox
I am a newbie to freetype and embedded system too. I want to use freetype functions in my embedded application (Details are given below). At first i tried the instructions given in "http://www.freetype.org/freetype2/docs/tutorial/step1.html". I could successfully complete a c project as in "example1.c" (given in freetype tutorial) in ubuntu, which...

Compiled SASS into CSS is not showing my images or fonts

css,image,fonts,sass,preprocessor
So I compiled my SASS into one css file using codekit 2 on their own localhost and the website looks perfectly fine. However when I upload my website onto a webserver (including all my SASS and CSS) it will not show some of my images. Then when I remove the...

Custom Font Won't Work

html,css,fonts
I want to have a custom font (HP Simplified Light) for my webpage. I have the font file uploaded to Dropbox, and I have the link here. But nothing happens. I get Times New Roman as the font. I've tried testing locally, both hosting the font locally, and the HTML...

FontAwesome - Failed to decode downloaded font

css,fonts,less,font-awesome
I found allready this: http://stackoverflow.com/search?q=Failed+to+decode+downloaded+font But the Answers dont help to fix my problem =/ I got on my page this errors in console: Failed to decode downloaded font: http://devcomlink.kunena.dev-monkeys.com/components/com_kunena/template/devcomlink/fonts/font-awesome/fontawesome-webfont.woff2 index.php?option=com_kunena&view=category&layout=list&Itemid=129&templateStyle=9:1 Failed to decode downloaded font:...

How to change color in php

php,html,mysql,css,fonts
So i am extrating usename and msg from MySQL database and want to change the color of the username and msg. echo "<span class='uname'>" . $extract['username'] . "</span>: <span class='msg'>" . $extract['msg'] . "</span><br>"; ...

Monospaced font to align text using spaces makes it look odd

css,fonts,monospace
I was using the default html font - Liberation Serif—30 glyphs in my page. Then i faced a problem, that multiple spaces to align two columns of text is not working properly. I found out, spaces are not displayed at the same width as other characters and hence the same...

Copy angular-ui-grid fonts into .tmp/fonts

angularjs,fonts,gulp,angular-ui-grid
I was experiencing a known issue with Angular UI Grid where some of my fonts would look Korean in production. I applied a certain fix by adding the following CSS: @font-face { font-family: 'ui-grid'; src: url('../fonts/ui-grid.eot'); src: url('../fonts/ui-grid.eot#iefix') format('embedded-opentype'), url('../fonts/ui-grid.woff') format('woff'), url('../fonts/ui-grid.ttf?') format('truetype'), url('../fonts/ui-grid.svg?#ui-grid') format('svg'); font-weight: normal; font-style: normal; }...

“Terminal” font used in Paint for Windows 8 [closed]

java,swing,fonts
I want to use the Terminal font that I've been using for a few headers I made in Paint. I know that Java doesn't support bitmap fonts. I'm trying to find a way to get a TrueType version of the above font and I'm getting absolutely nowhere. The last resort...

Draw text in all available fonts

c#,fonts
I have simple ListBox and i want to draw simple text in all available fonts in order to choose one that i like: ListBox lb; foreach (FontFamily font in System.Drawing.FontFamily.Families) { Font f = new Font(font, 15); lbFonts.Items.Add(f.Name + ": " + "11"); } Currently my ListBox is all with...

Failed to decode downloaded font

html,css,html5,fonts
This is an error I am getting in Chrome and unfortunately searching for it hasn't given me much results. The font itself is appearing correctly. However I still get this error/warning. More specifically, this is the full warning: "Failed to decode downloaded font: http://localhost:8000/app/fonts/Lato/" My CSS are these: @font-face {...

Is the line height property inherited from the body

css,inheritance,fonts
I have some html as below- nothing fancy- just a div and a span <div id="container">Some text to affect the width</div> <span>A</span> I'm using eric meyer's css reset. One of the things that he is doing is setting the line-height of the body to 1. Also, he is setting the...

Cyrllic characters in SVG font

javascript,svg,unicode,encoding,fonts
You will have to bear with me with this, as I know very little about encodings so may be asking something very simple/obvious. I am working with some SVG fonts in browser-side Javascript and I need to pull out some information on Cyrillic characters grammatically. I am doing this currently...

Custom font in listview Android?

android,listview,fonts
How to add custom font to it? This is my code: public void run() { ListAdapter adapter = new SimpleAdapter(DiaListActivity.this, diaList, R.layout.list_item, new String[]{TAG_SRNO, TAG_NAME}, new int[]{R.id.srno, R.id.name}); setListAdapter(adapter); } any help will be appreciated....

Super Thin Arial Font CSS?

html,css,fonts,weight
I am working on the header of my website and I really like the look of the thin font used in the second part of the title here: http://tympanus.net/Development/AnimatedHeaderBackgrounds/ I downloaded the source and have been playing around with it. The title used Arial font (although it isn't defined) anywhere...

What font format should I use for my site

css,fonts
I want to use a font for my website, I got the overall research and found variety of formats for fonts, Now i want to know that what is the standard format? Or What are the standard formats? .TTF (True Type Font) .EOT (Embedded OpenType) .OTF (open type font) .SVG...

Different webfont for Japanese special characters

html,css,web,fonts,webfonts
I'm working on a Japanese website and I'm using the Meiryo webfont. I really like this font but the special characters have too much margin. The exact issue is that there's too much space in front of special characters like 【, which makes the design look off if such a...

Update the standard font style for the /ja-jp/ website to Microsoft's Meiryo font

javascript,html,css,fonts,sitecore
In my sitecore website there is some enhancement requested from client. They want me to update the standard font style for the /ja-jp/ website to Microsoft's Meiryo font. This includes updating all HTML-based stylesheets related to all templates and sublayouts. I have limited time so want to start with best...

Font disturbtion on css transition

css,css3,firefox,fonts,css-transitions
I use CSS3 transition for hover effect on products, a tag comes up from bottom over product image : While the tag is coming up and after it comes up for about 0.5 second, the font is not smooth and clear, but about 0.5 ~ 1 second after transition finishes,...

how to change prompt size of textinput in flex?

flex,fonts,command-prompt
I have created a spark text input component and I prompt a text in the text input using prompt property. But the font size of prompt is very small. How to change the font size of prompt....?

Using custom font without including in info.plist ios

ios,fonts,customization
In iOS if we want to use a custom font we have to include the font.ttf in app bundle and add the font.ttf as a value to font key in the info.plist file. I want to use a custom font whose ttf file will be downloaded from my server after...

Use font awesome star rating define by width

html,css,fonts
Currently for reviews I use star rating that is displayed by css with background classes. But I want to replace this by Font Awesome because a font is much sharper on high res screens. The only problem is that the rating is defined dynamically by a width class in %....

Icon font in swing: font icons not appear in JLabel

java,swing,fonts
I'm making swing application in java, of course, with buttons. I decided to make them via JLabel with icon font for good scalabilty. I tried Font Awesome with labels, and it works fine: Font font = Font.createFont(Font.TRUETYPE_FONT, int.class.getResourceAsStream("/fonts/fontawesome.ttf")).deriveFont(20f); JFrame frame = new JFrame(); frame.setLayout(new FlowLayout(FlowLayout.TRAILING, 20, 20)); JLabel label1 =...

Adjusting font size for UILabel according to device screen iPhone4/5 and iPhone6/Plus

ios,objective-c,iphone,fonts,uilabel
I am using Autoresizing for UILabel on the xib. And when i launch app on iPhone4/5 UILabel font looks perfect but for iPhone6/Plus font looks very small. I referred so many link including Adjusting font size according to device screen and Category for UILabel Also the adjustsFontSizeToFitWidth is not working...

scoreboard fonts already in iOS?

ios,fonts
I'm writing an app and I'm thinking about using a font for the scores like the old dotted numbers from scoreboards. I saw this question and answer from a few years ago and I was wondering if I would still need to embed the font into my app or if...

how to set different font sizes in the same html header?

html,css,fonts,font-size
I want to create an html header as follows "Version1: (10.3.4) vs Version2: (10.3.4)" and I want the version number be smaller than the words "Version1" and "Version2" how can I do this?...

Setting font in JOptionPane without using HTML

java,swing,fonts,joptionpane
I tried this: Code Zip Sorry for the inconvenience but I could not attach the whole code (though it's not too big) and could not provide .java extension link so you have to get the zip and it open in html where code is with syntax highlighting. I read these:...

Support for marathi font

android,fonts
In my application i want to use marathi font.I know how to use custom fonts in android.The problem is that when i use "Kruti Dev" it shows in android studio preview emulator even thought i have not set it.But if i try to use "Subak" font i am not getting...

Where does CSS look for fonts?

css,fonts
I have an HTML which uses the Helvetica Neue font for most of the text. font-family: 'Helvetica Neue', Helvetica, Arial, Calibri, sans-serif; <font color="#ffffff" face="'Helvetica Neue Medium','Helvetica Neue', Helvetica, Arial, sans-serif">Sample text</font> Using Fount I can see that the text is actually written using Helvetica Neue Medium. My question is...

SVG fonts in CSS: Multiple path vectors to one single css class?

css,svg,fonts,font-face
I'm working on constructing font files that contain ~50 vector icons. This is because a client needs to enter a CSS classname in a CMS to give a certain attribute that icon. I've used Icomoon to generate the relevant CSS and font files, and everything works except a few icons....

Using GLYPHICONS's free pngs with classes

css,twitter-bootstrap,fonts,glyphicons
Glyphicons allows free use of its halflings icon set via Twitter Bootstrap: Bootstrap comes with two files (a .woff and a .svg) that are loaded as font files by the browser. Glyphicons also allows you to download PNGs of all the rest of its icons. Is there a way to...

Font Face issues in Internet Explorer 8

css,internet-explorer,fonts,internet-explorer-8,font-face
I created a test page for IE 8 to see if i could use Google fonts. You can find the code at the end of the question. I am including every Google font i need by using a element with a list of them. Now, depending on the HREF attribute...

Can the ouput of a HTML5 FileReader.readAsDataURL be used to reference fonts?

javascript,html5,fonts,filereader
I have a HTML5 image editor that I'd like to enable custom fonts uploaded by the user. I'd like to use the HTML5 FileReader.readAsDataURL to store the font provided by the user in the database. After storing it in the db I'd like to be able to then reference those...

font awesome not showing from bootstrap theme and im using eclipse

css,eclipse,twitter-bootstrap,fonts,font-awesome
im just a newbie and im trying to use agency start bootstrap theme. im using eclipse, and i tried to modify the home.jsp to locate the css and scripts but the font awesome and glyphicons are not showing. here is what i did. <!-- Bootstrap Core CSS --> <style type="text/css"><%@include...

CSS Font Fallback for Missing Glyphs

css,browser,fonts
CSS: p { font-family: Gill Sans, SFU GillSans; } "SFU GillSans" is a font for Vietnamese language. According to this link, if p contains a Vietnamese character that is not in Gill Sans font, then the browser will look for it in "SFU GillSans" font. Is it possible to switch...

XeLaTex + FontAwesome

fonts,latex,font-awesome
I am trying to use FontAwesome in XeLaTex on OS X. So I followed the steps described on this github: Save this into your project folder as fontawesome.sty Put \usepackage{fontawesome} into the preamble Define command for FontAwesome: \newfontfamily{\FA}{FontAwesome Regular} Redefine required characters (optional): \def\twitter{{\FA \faTwitter}} Use: \href{http://twitter.com/swaycz}{\twitter\ swaycz} So that...

OpenSansSemiBold seems unavailable on localhost

css,fonts,stylus,fontfamily
I've recently been overhauling my frontend code to use Stylus instead of CSS. Mostly it's gone okay but now wherever I use the font OpenSansSemiBold it just looks like the browser's default font. Even when I manually add the font-family: 'OpenSansSemiBold' attribute in Chrome developer tools it doesn't change to...

ios: scaling font horizontally without rasterising

ios,fonts,scale
Android provides a property textScaleX, that allows to scale text horizontally while retaining font height. I use it quite extensively for Android apps (especially for languages which are not as compact as English) and wish to find something similar in ios. Obviously, I can draw a text to a graphic...

Firefox Windows / Linux inconstancies

css,linux,firefox,fonts,font-face
My website has very different rendering in Firefox Windows / Firefox Linux (however, similar versions, default parameters for both). The reason seems to be that the font are rendered very differently. This: font-family: sans-serif; gives Arial-like font on Windows: and a little bit different font on Linux: How to solve...

Increase font size in Qt

qt,fonts,qt5
I have a GUI with some math symbols that might be hard to read at the default font size, so I would like to create a QFont object that has a size of system_default+4. However, there doesn't seem to be a way to get the default size in the first...

Am I allowed to use the .ttf format without paying licence fees?

file,fonts,true-type-fonts,legal,fees
The question is if I am allowed to use a .ttf file for any kind of program (including commercial ones). I am not asking about open ttf-loaders like freetype of if I am allowed to use a specific ttf-font. I am asking about the file format (.ttf) itself. And if...

Fonts not being served correctly using python-livereload

fonts,tornado,python-sphinx,livereload
I am using Sphinx to build a documentation project. I have created this script to watch the directory and trigger a Sphinx build when changes occur: import os import sys from livereload import Server, shell wd = os.path.dirname(sys.argv[0]) server = Server() server.watch(wd, shell('make.bat clean && make.bat html', cwd=wd), delay=1) server.serve(root='../_build/html',...

Cannot load font in JRE 8

java,fonts,awt,java-8
I cannot load a font from an S3 Inputstream in JRE 8. I do not have issue if a system is installed with JRE 7, JDK 7, or even JDK 8. val fontInputStream = s3Client.getObject(bucketName, objectKey).getObjectContent val customFont = Font.createFont(Font.TRUETYPE_FONT, fontInputStream).deriveFont(Font.TRUETYPE_FONT, 20F) The error that I got is Exception in...

Why use Arial, Helvetica, sans-serif as font-family instead of just sans-serif?

css,fonts
I can't see what is the point of doing this? For me it renders identically the same, so why should I use Arial, Helvetica, sans-serif vs just sans-serif?

font roboto dosen't work

html,css,fonts,roboto
I am trying to add the roboto-regular and roboto-light but it dosent seem to work, i don't now how to do it so I'm asking for guidance... This is a link to my code https://jsfiddle.net/omer1234/rmje7xz3/12/ HTML: <!doctype html> <html ng-app="MyApp"> <head> <link rel="stylesheet" href="noteBack.css"> <link href='http://fonts.googleapis.com/css?family=Roboto:400,700' rel='stylesheet' type='text/css'> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>...

How to display Apple San Francisco's numbers mono-spaced rather than proportionally?

osx,fonts,apple
I've recently installed El Capitan on OSX, which comes with the new San Franciso font as system font. The apple presentation here https://developer.apple.com/videos/wwdc/2015/?id=804 (Bit of an overview here: http://codemotionapps.com/san-francisco-display-vs-text-compact-vs-normal-a-brief-review/) states that, by default, numbers are displayed proportionally. They do allow to switch to displaying them mono-spaced (at least in their...

Huge unusable font size in Android Studio

android,android-studio,fonts
As the title states, I've inadvertently set the font size to something gargantuan in Android studio and it's now totally unusable. At most I see the tops of a few letters once the program loads, so I can't even get back into the options to reduce the font size. Looking...

Windows phone Store app Font size Issue

fonts,windows-runtime,windows-store-apps,windows-phone-8.1,font-size
I have created windows phone 8.1 Store app. I have change setting: setting->ease of access->Text size to MAX Now if I launch my app all fonts are disturbed to too larger font sizes, which was not happening in earlier silverlight apps Is there any way to create app irrespective of...

Currency symbol not formatting correctly in a textView?

android,fonts
In my app I have a message which can be customised by the user and then displayed in the app. If the user enters "£100" it is shown as "£100"? I tried to use a font which contains this symbol but it didn't fix my problem. Typeface font = Typeface.createFromAsset(getActivity().getAssets(),...

Cross-domain font problems

html,css,.htaccess,fonts
Sorry for the long post, but you need some background info before my question since this is a strange setup and it's quite complex. I have two fonts that's needs to be in a newletter. First font, Cyclone, is in a format OTF. The second, Albert, is format EOT and...

How my computer knows a char corresponds to which character?

fonts,operating-system
Does my OS load a font file which maps the UTF-8 codes to characters(the way to render it ) when I start up my computer? Since there are a lot of different fonts, the font files will consume a lot of memory? Or the font files are stored in hard-disk...

Change Font Color on Overflow

css,text,fonts,colors,overflow
This is where I am trying to accomplish this effect: http://www.smalldot.agency/ccren/goals-page/ As the "val" bar increases in width, it should overlap the "current" text ((which is the same text as "val" but a different color)). I am able to force "current"'s copy on top of the "val" element, but I...

css font-family doesnt work on internet explorer

html,css,fonts
CMS: Magento community (I dont think this is importat). I'm using a font that I loaded on fontsquirrel. On firefox it looks great but on internet explorer (11) this font works only with some element without a logic. This is an example page: http://www.prodottipet.simply-webspace.it/index.php/roditori.html "Cani - Roditori - Gatti -...

Changing Font-Family Property of a Label via Nativescript on Android

android,fonts,properties,nativescript
I have the following code with js to change the Font-Family of a Label. The idea is to access the native API of android to change the Font-Family, but it seems not to work. Any ideas what the problem is ? foo.xml: <Label text="foo" id="blogHead" textWrap="true" cssClass="margin-20 verticalCenter" fontSize="24" />...

fonts - how does the text gets displayed when there is no font associated to it

unicode,fonts
The data encoding is UTF8 or Unicode. Plain data does not have any font attached to it. If an editor would not have any font support how would it display the data.

Precompile and include fonts in Ruby on Rails

css,ruby-on-rails,twitter-bootstrap,fonts
After following some of the instructions here, I am trying to precompile Twitter Bootstrap Glyphicon fonts. They are pretty much just like any other custom font. Here is my css in bootstrap.min.css.scss @font-face{font-family:'Glyphicons Halflings'; src:url(glyphicons-halflings-regular.eot); src:url(glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'), url(glyphicons-halflings-regular.woff2) format('woff2'), url(glyphicons-halflings-regular.woff) format('woff'), url(glyphicons-halflings-regular.ttf) format('truetype'),...

Calculate the display width of a string with wxWidgets

c++,fonts,wxwidgets
I'm trying to draw a string to the screen using different fonts with different lengths. wxScreenDC dc; dc.SetFont(f.font); f.height=dc.GetCharHeight(); f.width=dc.GetCharWidth(); This is the code I'm using, the height is always correct and drawn on the screen correctly.. However the width is some fonts drawn correctly in all font sizes (eg....

Css styling of initial default value of a text field

html,css,input,fonts
I have a html input textfield as follows: <input type="text" name="fName" class="inpField" size="20" value="First Name *" /> Now I want to do selective styling of some text as follows: I have the default value set as "First Name *". Using css- I want to apply a global style to that...

Create character map image for a font

image,fonts,character,photoshop,adobe-illustrator
This seemed like the most sensible place to ask this but I'm not sure. What I'd like is an image, a .jpg or a .png or even a .psd, which has the character map of some font I like, and that is 2048x2048.

Add font to website

html,css,fonts
I am trying to add Ubuntu font to my website, I'd like to have it universal on the site so everything is in that font but I started by just adding it to my h1 tag to see if it works, but it doesn't work. I have uploaded the font...

Fixing custom font vertical position. Apple Font Tool Suite not available anymore?

ios,fonts,apple,vertical-alignment,custom-font
I followed the link in Fonts, and I'm redirected to the downloads site. There I can´t find the Apple Font Suite Tool package, has it been renamed? Or it doesn't longer exist? Thanks EDIT: I'm using custom fonts in my iOS app, and it seems that they add a vertical...

Avoid Symbols in Google font

fonts,webfonts,google-webfonts
I added fonts from google fonts, but they appear in web page as symbols! I tested in chrome,and FireFox Example image: ...

Google Fonts not loading sometimes

css,fonts
I am using Google fonts on my webpage but notice about 5% of the time the Google font seems to timeout and display the fallback font. So I stopped using it and I tried using @font-face with the downloaded font files on the server but I would have to add...

Convert from to .svg

html,canvas,svg,fonts,icons
I have an icon in html and I'd like to export into a .svg file, so I can add to my font-face stylesheet. Does someone know how can I export it? Or another way to convert from to any @font-face? Eq. <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-240.6 138.8...

Is there any single font which support all Indian language in all android devices?

android,fonts
I am trying to implement an app which support all Indian language.is there any single font which support all Indian Language?

@font-face for icons not working in Chrome-Ubuntu

css,google-chrome,ubuntu,fonts
I've recently started using Ubuntu. I installed Chrome from the installer provided on Google's website. When I started working on my sites, I noticed the icons didn't show. They work fine on Windows and on Firefox (both Windows and Ubuntu). I used Fontastic to generate the webfonts from SVG files....

JavaFX 8 Canvas Fonts always Bold

canvas,fonts,javafx-8
I am using a JavaFX canvas (currently using Java 8u40) to render some graphics and text. I am having a problem getting the fonts to render correctly in the canvas. It appears the font is always being drawn bold. I have an example to show the problem. First of all...

Return type of QFont() constructor in Qt

qt,fonts
I have passed a font family name as parameter to QFont constructor: QFont* font = new QFont("Mongolian Bati"); later i'll be using this font family to my Qlabel: label->setFont(*font); Here how do we know that the loaded font is Mongolian Bati ?...

Change default font of the app

android,fonts
I am working on an android project and I want to change default font for all the app, not just a single TextView or button. My custom font is stored as assets/fonts/font.ttf...

How get to know what font family does anchor element use [duplicate]

html,css,fonts
This question already has an answer here: What do the crossed style properties in Google Chrome devtools mean? 1 answer Firefox. Firebug. Simple task. How get to know what font family does anchor element use? I opened the element in Firebug. And what I see. Why font info is...

@font-face font working fine locally but when pushed to server it just shows up as a default HTML font

html,css,fonts
UPDATE: FIXED, SEE BELOW Turns out the server I had the font name as 'Close.otf' in my fonts folder and 'close.otf' in my code, I'm guessing my code worked fine locally because it isn't case sensitive, GitHub's server is though apparentely. Just fixed by changing the C from uppercase to...

New font for iOS 9 will be applied on Ionic apps?

ios,cordova,fonts,ionic
iOS 9 is expected to be released with new font - San Francisco, replacing its tranditional Hevetica fonts. I wonder how Ionic will respond to this kind of change. Here are the things that I am curious to know at this moment. Will old Ionic apps automatically use San Francisco...

Why is my website not using the fonts I specified? No access to the font?

html,css,ruby-on-rails,ruby-on-rails-4,fonts
I am using Rails and have specified my fonts as follows: #Application.html.erb includes in the head: <link href='http://fonts.googleapis.com/css?family=Indie+Flower' rel='stylesheet' type='text/css'> #One of the stylesheets includes: body{ font-family: 'Indie Flower', sans-serif; } I'm also using the Bootstrap gem (which perhaps is overriding the above?). On the development server, however, my site...

Best-practice - @font-face normal/bold/heavy

html,css,fonts
I've got a question considering the @font-face command to add custom fonts to a webpage via CSS. I've always used @font-face like this: @font-face { font-family: "MyFont"; src: url('url-to-font') [eot, woff, ttf, ...]; font-weight: normal; font-style: normal; } @font-face { font-family: "MyFont-Bold", [Fallbacks...]; src: url('url-to-font') [eot, woff, ttf, ...]; font-weight:...

i have used this code but it can't work in gujarati font

php,html5,fonts
I have used this code but it doesn't work. <meta http-equiv="Content-Type" content="text/php; charset=iso-8859-1"/> <meta http-equiv="Content-Type" content="text/php; charset=utf-8" /> ...

Anti-aliased fonts in tkinter?

python,fonts,tkinter
Is there a way to get anti-aliased fonts in tkinter? If I increase the size of the default font like so: default_font = tkFont.nametofont("TkDefaultFont") default_font.configure(size=32) the text comes out jagged. Here is some version information: Python 2.7.9 (default, May 6 2015, 09:33:48) >>> Tkinter.__version__ '$Revision: 81008 $ I am using...

Manage tiny fonts visualization with CSS/Javascript in Firefox

javascript,jquery,html,css,fonts
I am trying to create a website in which the navigation is based on zoomable contents. For instance, here is a screenshot of what you can see just after opening the webpage: Then, I am using zoom.js for "zooming" the page and be able to read the text. However, after...

Remove unnecessary css font-face font type

css,fonts
I have a template that use a font via font-face in css with font-face it call all type of .eot .svg .ttf .woff .woff2 .otf fonts. 1. Do I really need all of them? because size of them are 100 between 300kb 2. Browsers must download all of them when...

LibGDX multiple cameras

java,fonts,camera,libgdx,bitmap-fonts
So, I am working with LiBGDX and Box2D, using the PixelsPerMeter conversion, and I have a camera that follows the player around, but when I turn debug mode on I need to be able to draw a font with the fps on screen, so I always can see it in...

Flash Pro - AS3 embeded font not Showing up on Button Label in iOS

ios,actionscript-3,flash,fonts,embedded-fonts
So I have an annoying issue that I can't solve. I am creating an app in Flash Pro/AS3 for iOS. I have a button whose label font I want to change: var ButtonTextFormat:TextFormat = new TextFormat("Showcard Gothic", 120); //ButtonTextFormat.size = 120; //ButtonTextFormat.font = "Showcard Gothic"; //ButtonTextFormat.embedFonts = true; ButtonTextFormat.color =...

How to prevent different browsers rendering fonts differently?

css,fonts
I have an issue with trying to maintain a constant font style across all browsers. As seen below, safari's font rendering system makes the font weight smaller than the font weight of chrome's. Safari: Chrome: I've tried using the solutions found on other questions though they have not solved this...

how to put a private use character in string with xamarin

c#,fonts,xamarin,monotouch,monodroid
I want to use some icons from the metro font (http://metroui.org.ua/font.html) on my Xamarin project, I can't find a solution to put a character in private use on my string, it's always replace by a square with a ? inside. If anyone know how I can put special character, it...

Ignore certain Gulp-less errors, or prevent it from attempting to call @imports with css keyword

fonts,error-handling,less,gulp
So I am using gulp as a task engine to handle less compilation (among other things), and part of our stylesheets include fonts from fonts.com. Here's the relevant task in our gulpfile: var gulp = require('gulp'), plugins = require('gulp-load-plugins')({ camelize: true }); browserSync = require('browser-sync'); reload = browserSync.reload; gulp.task('styles', function()...

Change default font roFontRegistry in Roku

fonts,roku,brightscript
I have created a page with roImageCanvas ,and i am trying to change its default font with another one.bellow is my code but this won't work.Please help me to resolve this error.thanks in advance. canvas = CreateObject("roImageCanvas") port = CreateObject("roMessagePort") canvas.SetMessagePort(port) items = [] FontInterface=CreateObject("roFontRegistry") 'create global font access Fontinterface.Register("pkg:/source/Univers.ttf")...

How to set custom fonts in JavaFX Scene Builder using CSS

css,fonts,javafx,scenebuilder
I'm making a GUI in JavaFX Scene Builder and would like all text (Labels, Text Fields, Comboboxes) to use the same font. The problem is it's a custom font that likely won't be on every client's computer. I've tried CSS: @font-face { font-family: DIN; src: url(DIN.tff); } .text { -fx-font-family:...

Why do Font-Size and CssClass properties are not working in CheckBoxList in aspx page?

css,asp.net,fonts,font-size,checkboxlist
I want to increase the font size of checkboxlist values so I added Font-Size = "large" property inside <asp:CheckBoxList> but it's not working. <form id="form1" runat="server"> <table> <tr> <td style="padding-left:50px;padding-top:20px"> <asp:CheckBoxList runat="server" ID="ChkList" RepeatColumns="4" repeatLayout="Table" RepeatDirection="Horizontal" Font-Size="Large"></asp:CheckBoxList> </td> </tr> <tr> <td style="padding-left:50px; padding-top:10px;"> <asp:Button...

Matlab 2015 font size in Help browser

matlab,fonts,settings
I have Matlab R2015a. The font size in the Help browser is too small and there are no options to increase it. They say use ctrl and +, but as soon as you navigate, the font is back to its miniature size. Is there a way to increase the font...

font-awesome not working in wordpress

html,css,wordpress,fonts,font-awesome
I have a wordpress site and I installed the shortcode plugin. I am trying to install a button and I put an icon on it. When I load my site here you can see it under the slider, the button that says photo gallery http://denverkollel.org/site/ it's on the blue background....

How to use font-face on a local server (xampp)?

css,fonts,xampp,font-face
I'm experimenting with custom fonts using font-face and a local font I have on my computer. I'm using XAMPP for local server and Dreamweaver as the IDE (not sure it matters, though I "managed" my fonts there and added the font I'm trying to use). Anyways, I keep getting the...