FAQ Database Discussion Community

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Using GLYPHICONS's free pngs with classes

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

css,fonts,icons

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

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

font awesome not showing from bootstrap theme and im using eclipse

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

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

Precompile and include fonts in Ruby on Rails

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'),...

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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