FAQ Database Discussion Community

## 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...

## 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 =...

## 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...

## 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 ?...

## 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...

## 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(),...

## 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...

css,fonts,less,font-awesome

## Fonts not being served correctly using python-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',...

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

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....

## 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?

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...

## 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...

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

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...

## 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...

## 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....

## 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...

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...

## 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...

## 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...

## @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...

## 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...

## 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...

css,fonts,icons

## 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...

## 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...

## 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...

## 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 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,...

## Create character map image for a font

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.

## 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...

## 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 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?...

## 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...

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 {...

## 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...

## 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...

## 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...