Using a custom (ttf) font in CSS

You need to use the css-property font-face to declare your font. Have a look at this fancy site: http://www.font-face.com/ Example: @font-face { font-family: MyHelvetica; src: local(“Helvetica Neue Bold”), local(“HelveticaNeue-Bold”), url(MgOpenModernaBold.ttf); font-weight: bold; } See also: MDN @font-face

What is the status of TTF support in Internet Explorer?

So as I mentioned in my question above, Internet Explorer has some ttf support starting with version 9, but “only working when [fonts are] set to be installable”. Some background: …TrueType fonts have embedding “bits” which allow the creator of the font to decide the level of embedding that will be permitted. There are four … Read more

Creating icon fonts with vector software (i.e. inkscape) and fontforge?

I’ve successfully created a few icon fonts for my websites and the Inkscape FontForge approach as outlined in this how-to is pretty solid, and if you’re used to using software such as Inkscape, it’s also pretty easy too. Here’s the steps I take: Preparation (using Inkscape in this example) Open the Inkscape document that holds … Read more

TrueType Fonts in libGDX

Yes you will definitely need to add the gdx-stb-truetype jars to your project as you stated in your edit. Here is how you will use it, pretty straighforward… First you need to declare your BitmapFont and the characters you will use… BitmapFont font; public static final String FONT_CHARACTERS = “abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789][_!$%#@|\\/?-+=()*&.;,{}\”´`'<>”; Then you need to create … Read more

Custom UIFont baseline shifted

Here or even here you can find the solutions for you. It’s all about baseline. Note There’s a problem with installing Apple Fonts Utility on El Capitan. See https://apple.stackexchange.com/questions/211138/apple-font-tools-cannot-install-in-macbook-pro-el-capitan for a workaround. To edit these in the font you will need to download the Apple Font Tool Suite. Once you’ve installed this you need to … Read more

tech