Home Web Front-end HTML Tutorial 制作font-icon有感 - jerrylsxu

制作font-icon有感 - jerrylsxu

May 23, 2016 am 09:54 AM

连日来有些空闲,趁着这闲余时间,我尝试亲自制作一些Font-Icon,让以后可以运用到工作中。但是基于本人水平有限,PS操作只能以非常基础来形容,而AI呢,根本就只会放大操作。在这过程真的非常感谢设计同事的帮助。

现在想完成以下图标转换成Font-Icon,图标以下所示。

  第一个Icon是一个小电视,命名为ico_tv,在设计师给的设计稿中,它已经是路径了,但是细看一下,这个ico_tv有三条路径,但是在网上的一些把svg转成Font-Icon的网站中(例如fontello ,但是icoMoon可以,如果使用的是icoMoon后面的合并路径可以忽略),它在转换的时候只需要一条路径,这就需要我们在PS中把它们的路径都合在一起。

Ico_tv的三条路径

  在PS中,把所以的路径合在一起,需要把路径选取好之后,点击上面的“路径操作按钮”,里面有4个选项,合并,减去,相交,去重,这4个效果就相当于集合的操作,我们想保留的是蓝色的部分,也是之后变成字体之后,着色的部分,而这里4条路径,分别是,ico_tv的外框,以及右边的3个小长方形,需要把小长方形的那部分去掉,这里的操作就选用“去重”。完成后,当点击按钮时候,路径都选中。

Ico_tv路径合成后

 

  打开AI,新建面板,350mmX350mm,在PS上选中所有的路径,拖拉到AI上,把路径放大到跟画板差不多大,填充颜色(iconMoon需要填充单一颜色,fontello则可以不填充,不过推荐最好有填充颜色,看着更为直观)。然后保持成为svg格式。

打开IcoMoon网页(我较多使用这个网站),在这里可以上传我刚刚绘制的ico_tv,还可以进行一些简单编辑。

上传icon的按钮

  最后导出Font代码,填写icon对应的Unicode编码,旁边会现在所对应的符号。点击download即可下载代码。最后展示如图。

  然而,如果给的设计稿里面的icon只是一个图层的话,就需要把它们转化成路径了。一般使用矩形工具那一列,把形状变成路径,还有钢笔工具,路径选择工具等,做图层那个icon的临摹。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What is the purpose of the <datalist> element? What is the purpose of the <datalist> element? Mar 21, 2025 pm 12:33 PM

The article discusses the HTML &lt;datalist&gt; element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

What is the purpose of the <progress> element? What is the purpose of the <progress> element? Mar 21, 2025 pm 12:34 PM

The article discusses the HTML &lt;progress&gt; element, its purpose, styling, and differences from the &lt;meter&gt; element. The main focus is on using &lt;progress&gt; for task completion and &lt;meter&gt; for stati

What is the purpose of the <meter> element? What is the purpose of the <meter> element? Mar 21, 2025 pm 12:35 PM

The article discusses the HTML &lt;meter&gt; element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates &lt;meter&gt; from &lt;progress&gt; and ex

What is the viewport meta tag? Why is it important for responsive design? What is the viewport meta tag? Why is it important for responsive design? Mar 20, 2025 pm 05:56 PM

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

What is the purpose of the <iframe> tag? What are the security considerations when using it? What is the purpose of the <iframe> tag? What are the security considerations when using it? Mar 20, 2025 pm 06:05 PM

The article discusses the &lt;iframe&gt; tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

How do I use the HTML5 <time> element to represent dates and times semantically? How do I use the HTML5 <time> element to represent dates and times semantically? Mar 12, 2025 pm 04:05 PM

This article explains the HTML5 &lt;time&gt; element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit

How do I use HTML5 form validation attributes to validate user input? How do I use HTML5 form validation attributes to validate user input? Mar 17, 2025 pm 12:27 PM

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

What are the best practices for cross-browser compatibility in HTML5? What are the best practices for cross-browser compatibility in HTML5? Mar 17, 2025 pm 12:20 PM

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

See all articles