The other horizontal lines are the ascender (by default at 800), the x-height (500), and the descender (-200). The second line from above is the cap height, by default at 700 units. The second line from below is the baseline. Press Cmd-zero to scale the glyph to the size of the window. You see a set of lines, a grey placeholder image behind them, and a grey glyph info box below. Your glyph will look something like this: Double click your glyph with the PUA code, and Glyphs will open a new Edit tab and insert that glyph for you. Putting icons into your fontĪlright, now we are ready for our first icon. Why is there rounding at all, you ask? Well, some font formats only support coordinates rounded to full units, and full units actually make editing easier. All coordinates will be rounded according to these two settings. If you are curious and want to know more about moving vectors between Adobe Illustrator and Glyphs, you can read about it in the Importing from Illustrator tutorial.Īlso, you can minimize rounding errors by setting File > Font Info > Other Settings > Grid Step to zero, or setting the Subdivision to ten or a hundred. This is all you need to know for this tutorial. So, before you copy and paste your icons into Glyphs, scale them up to approximately 700 points in the originating application. And since by default, the UPM is set to 1000 units, the average cap height will be 700 units. The average cap height is 70 percent of the UPM (units per em) size. And, usually, you will want your icons to be approximately the size of a capital letter. Keep in mind that one point in Illustrator etc., will be one unit in Glyphs. And since scaling in Glyphs can lead to rounding errors, it is best to scale your artwork to the right size before you bring it into the font. From most vector apps, you can simply copy and paste into Glyphs. Glyphs provides great drawing tools, but chances are you already have vector icons. If you want to know more about glyph names, read through the Getting your glyph names right Preparing your icons in other apps So, homeIcon and loginIcon are okay, but names like home button and MäxIcon are not okay. ![]() ![]() Spaces are not allowed, and the name must not start with a figure. Only use upper- and lowercase ASCII letters, i.e., A-Z and a-z, perhaps figures (0-9) at the end of the name. Or simply add Icon to the end of the glyph name and you will avoid all trouble. Glyphs has a built-in list of glyph names it recognizes, and you can see it in Window > Glyph Info if you like. If it changes again to something outside the PUA, chances are you picked a name that is reserved for another glyph. Keep an eye on that Unicode value after changing the glyph name. When Glyphs asks you whether you know what you are doing, say Remove: So, the first thing we do in the Font window, is select all glyphs and click on the Minus button at the bottom of the window. Why not an icon? Because it can confuse search engines, the search function of your website, or the person trying to make sense of what is displayed on the screen if, for some reason, our icon webfont cannot be loaded and is substituted with a fallback font. So, for instance, into U+0041 LATIN CAPITAL LETTER A, you should only ever put something that at least vaguely resembles an A. Into a Unicode-assigned glyph, you should only put pictures that match the meaning of the Unicode value. If you want to know more about Unicode, glyphs, and characters, read the Unicode tutorial. Sometimes, glyphs do not have Unicode values, but in our icon font, each glyph will have one. The character-glyph relationship is established through the Unicode value assigned to a glyph. ![]() In short, characters are what you type, glyphs are what you see. The slots inside a font are called glyphs (hence the name of our favorite font editor), and those glyphs usually correspond to characters. When you are done, close the Font Info window (or tab) to return to the Font window, and perhaps save your font again.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |