• Stars
    star
    617
  • Rank 72,724 (Top 2 %)
  • Language
    CSS
  • License
    MIT License
  • Created almost 12 years ago
  • Updated about 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[已废弃]中文图标字体,可用于 Web 或 iOS,同时提供了国内各种常用网站、应用的徽标 SVG 源文件。

Font屌 中文图标字体

用于 Web 和 iOS 应用的中文图标字体,同时提供了国内各种常用网站、应用、知名企业的徽标 SVG 源文件。

图标列表传送门 http://lexrus.github.io/fontdiao/

使用方法

Web

<i class="icon-douban"></i>

搞前端的小伙伴应该都明白,用过 FontAwesome 或者 Fontello 的更加不用多说。

iOS

  • 仅支持 iOS 5.0 或更高版本的系统。
  • 手工安装需要将 fontdiao/ios/FontDiao 整个目录复制到你的项目中,再 #import "FontDiao.h" 即可。
  • 如果你使用 CocoaPods,在 Podfile 中加上: pod 'FontDiao', '~> 0.0.8'
  • 运行 pod install 安装 Font屌 到你的 workspace
  • #import <FontDiao/FontDiao.h> 导入头文件后即可使用。

iOS 版本目前实现了 UIImageView 和 UIButton 的 category,用起来非常简单,例: self.imageView1.icon = FDIconTmall;。枚举的实现参考了 ios-fontawesome,但是没有用 subclass 而是用 category 是为了提高兼容性,可以与其它第三方库共存。

fontdiao/ios/FontDiaoDemo 这个项目演示了如何使用 Font屌。

更多 SVG !!!

欢迎你在 issues 里提出加入新的 svg 文件的要求。如果你只能提供位图,我只能抽空把它转成 svg,通常这样比较费时间,所以我建议你先用 Illustrator、iDraw 等工具自己做。但无论怎样,我都将非常感谢你的贡献。

需要特别注意的是: SVG 图片必须是正方型,图标应该在这个正方型中居中,而且最好能将整张图片缩放到 300x300px,以便统一所有 SVG 尺寸。

重新生成

你需要:

在 Mac 上用 Homebrew 安装 fontforge:

  • brew install fontforge ttfautohint 装上 FontForge 和 TTFAutoHint
  • gem install fontcustom

在项目根目录运行 rake 命令就能用 SVG 生成所有需要的文件了。

项目中的大部分 SVG 文件经过 svgo 优化,但是通常这一步不是必须的,而且某些 SVG 经过 svgo 处理会别成其它图形...

商标法

请参考 商标法 第七章对商标的使用权的解释,避免违法使用他人商标。

LICENSE

Font屌 的 SVG、字体、CSS、HTML 遵循 WTFPL 协议
            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                    Version 2, December 2004

 Copyright (C) 2004 Sam Hocevar <[email protected]>

 Everyone is permitted to copy and distribute verbatim or modified
 copies of this license document, and changing it is allowed as long
 as the name is changed.

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  0. You just DO WHAT THE FUCK YOU WANT TO.

Font屌 的 iOS 源码遵循 MIT 协议
The MIT License (MIT)
Copyright © 2014 Lex Tang, http://LexTang.com

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

More Repositories

1

LTMorphingLabel

[EXPERIMENTAL] Graceful morphing effects for UILabel written in Swift.
Swift
7,983
star
2

VPNOn

Turn On your VPN like a hero.
Swift
4,470
star
3

ios-makefile

[DEPRECATED] The universal makefile for my iOS projects distributes IPAs in seconds
Shell
577
star
4

ios-dev-playbook

不会运维的 iOS 开发不是好设计师。这个 Ansible Playbook 能快速配置 iOS 开发需要的服务,安装如 Gogs、GitLab、Jenkins、Ghost、Ajenti 等常用服务。
Ruby
555
star
5

LTBouncyPlaceholder

A learning-by-doing UITextField extension written in Swift
Swift
490
star
6

LTJelloSwitch

A rapid prototype of UISwitch built with Swift and PaintCode.
Swift
365
star
7

LeetCode.swift

Once upon a time there was a noob of algorithms, and he knew a little about Swift.
Swift
357
star
8

LTFinderButtons

My Finder buttons collection for macOS.
Rich Text Format
305
star
9

PhoneticContacts

为你的联系人加上拼音属性,这样即使你的 iPhone 设置成英文,也能有按拼音分段的功能。暂时还没有改成用 Contacts framework,Xcode 10 无法运行哦
Swift
294
star
10

RegExPlus

A nifty RegEx test tool built with SwiftUI
Swift
203
star
11

QLSwift

A Quick Look plugin for Swift files
Objective-C
177
star
12

Huahui

。.゚✧:✿花༙྇灰༙྇✿:✧゚.。 - 灰化肥会发黑,花会化灰。又名『中国程序员常读错的英文单词的 App』
Swift
152
star
13

LTBlacklist

[DEPRECATED] The missing Blacklist app for your iOS 5/6 with private APIs. No Jailbreak Required!
Objective-C
147
star
14

SwiftyMenu

The missing Finder menu for your daily ease
Swift
128
star
15

MMDB-Swift

A tiny wrapper for libmaxminddb which allows you to lookup Geo data by IP address.
C
120
star
16

APN

[已废弃]适合 iOS 7 的 APN 设置工具,又一个没过审核的周末项目
Objective-C
116
star
17

LTUpdate

[DEPRECATED] LeT'sUpdate to the new version available in the AppStore! A GCD powered, ARC/MRC compatible class with block interfaces.
Objective-C
75
star
18

LexClockWidget

Swift
73
star
19

KissDefault

[EXPERIMANTAL] 💋Keep It(UserDefaults propertyWrapper) Simple and Stupid
Swift
46
star
20

.files

Dotfiles for my Mac
Shell
34
star
21

HighlightJSON

A tiny Safari Web Extension for presenting highlighted JSON files
Swift
33
star
22

LTTabBar

[DEPRECATED] A clumsy mimic of the Chrome-style tab bar for iOS.
Objective-C
32
star
23

LexNightmare

A boring game built with SpriteKit and Swift.
Swift
23
star
24

HNAPI

Tiny HackerNews API wrapper.
Swift
21
star
25

iDevBox

Yet another learning-by-doing XcodeKit project
Swift
18
star
26

LTDribbbleAPI

Yet another Dribbble API client for iOS 6.0+ and Mac OS X 10.8+ based on AFNetworking 2.0.
Objective-C
12
star
27

XcodeAutomator

Automator services for Xcode
8
star
28

PixelPusher

Compare your app with the original design pixel-by-pixel.
Swift
7
star
29

ansible-role-docker

An Ansible role to install Docker in Debian or Ubuntu
6
star
30

GCD

GCD = Ghost + Caddy + Dropbox
Shell
6
star
31

ios_notebook

3
star
32

XcodeTemplates

My personal Xcode templates
3
star
33

lexrus

2
star
34

LibWebpXCDemo

Swift
1
star
35

lexrus.github.io

My personal Hugo website: https://lex.sh
SCSS
1
star