Giter Site home page Giter Site logo

fontawesome-for-ios's Introduction

FontAwesome-for-iOS

Now Updated to FontAwesome 3.0 3.1.1 (see differences and all new icons at http://htmlpreview.github.com/?https://github.com/leberwurstsaft/BButton/blob/master/FontAwesomeIcons.html)

FontAwesome fixed to have correct (at least much better) vertical alignment in iOS UILabel

In iOS the UILabel's vertical alignment tends to work well only for the built-in fonts. As soon as you use a custom font, it will most likely not be rendered centered on the label. The same applies to all kinds of UIControls etc. that have UILabel as a part of them (UIButton e.g.).

The solution is given by Andy Yardley in an article here: http://www.andyyardley.com/2012/04/24/custom-ios-fonts-and-how-to-fix-the-vertical-position-problem/

Basically, the fonts have values for "ascender" and "descender" that are not working out nicely for iOS's rendering.

I followed his instructions and pinpointed some values (probably not the best, but sufficiently good) to achieve a font file that lets iOS render the UILabel correctly vertically aligned. Yay!

Thanks you for FontAwesome, Dave!

##Used in these projects## https://github.com/mattlawer/BButton

https://github.com/alexdrone/ios-fontawesome

##FontAwesome License The Font Awesome font is licensed under the SIL OFL 1.1: http://scripts.sil.org/OFL

Attribution is no longer required as of Font Awesome 3.0, but much appreciated:

Font Awesome by Dave Gandy - http://fontawesome.io

fontawesome-for-ios's People

Contributors

leberwurstsaft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.