Giter Site home page Giter Site logo

johnwong / iconfont Goto Github PK

View Code? Open in Web Editor NEW
193.0 8.0 25.0 102 KB

IconFont is a way to build lossless images of pure color with font file。IconFont是一种通过字体文件来构建纯色图的方案。

Home Page: http://johnwong.github.io/mobile/2015/04/03/using-icon-font-in-ios.html

License: MIT License

Objective-C 100.00%
icon-font lossless-images fontforge

iconfont's People

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

iconfont's Issues

字体偏移的问题

_closeIcon.image = [HQFontImageDictionary iconWithName:@"" fontSize:48 color:[UIColor redColor]];
//自定义,但两个字体会有上下偏移不同,不知道是否字体文件问题
_editIcon.image = [HQFontImageList iconWithName:@"" fontSize:48 color:[UIColor redColor]];

示例工程里的,其实就是引用两个不同的字体文件,但是,另外一个有偏下的问题
是否有什么原因导致的呢?
是LLIconfont.ttf和iconfont.ttf的什么差异导致此问题?

为何不用图标名称访问呢

接口设计有点反人类啊,设计图标是有名字的,为啥用这些字符

define kTBCityIconCheck TBCityIconInfoMake(@"\U0000e601", 24, [UIColor blackColor])

设计成这样多好呢:

define kTBCityIconCheck TBCityIconInfoMake(@"check", 24, [UIColor blackColor])

从check映射到\U0000e601可以做一个字体关系映射表啊
自动生成一个映射关系,粘贴到代码里也许就可以了,接口内部很容易处理

NSDictonary * xxx = @{
@"check":@"\U0000e601",
etc..
}

Icon底部被截断

遇到有Icon内部撑得比较满,换言之四周的空白间距非常小的情况下,可以很明显地看到图片底部被截断了一点了,在你的代码基础上做了一个Demo,你可以看看:https://github.com/wonderffee/IconFont

在这个Demo里我只显示了一个Icon,这个Icon的底部应该是一个完整的圆弧形,但是实际上显示是不完整的。怀疑UIGraphicsBeginImageContext绘图有Bug还是怎么的

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.