90
Building Axure Icon Widget Libraries Using Web Fonts by Svetlin Denkov @svetlindenkov March 24 th , 2016 +

Building Axure Icon Widget Libraries Using Web Fonts

Embed Size (px)

Citation preview

Page 1: Building Axure Icon Widget Libraries Using Web Fonts

Building Axure Icon Widget Libraries Using Web Fonts

by Svetlin Denkov @svetlindenkov

March 24th, 2016

+

Page 2: Building Axure Icon Widget Libraries Using Web Fonts

Introduction

1  

Page 3: Building Axure Icon Widget Libraries Using Web Fonts

Who Am I?

Page 4: Building Axure Icon Widget Libraries Using Web Fonts

WHO AM I Svetlin “Svet” Denkov **Pseudo name on Axure Forums = light_forger (http://bit.ly/1DwVXyZ)

� UXer with passion for IxD & Vis. Design �  DePaul HCI Graduate

�  Constantly evolves own prototyping tool kit with different technologies

�  Writes and presents when the muse strikes him J

Page 5: Building Axure Icon Widget Libraries Using Web Fonts

Why Give This Talk

Page 6: Building Axure Icon Widget Libraries Using Web Fonts

WHY GIVE THIS TALK Known Pain Points Icons play an important role in UI design, yet Axure: - Has few customizable icon libraries (most use PNGs). - Offers no way to use existing SVGs out-of-the-box (you can import in 8.0, but can’t edit). - There is no way to create Bezier-curve widgets in 7.0.

Page 7: Building Axure Icon Widget Libraries Using Web Fonts

WHY GIVE THIS TALK (cont.) Target Audience - Visual Designers in charge of UX. - IxDs co-owning wires/prototypes with Visual Designers. - Anyone coming from Photoshop/Sketch background who wants same level of flexibility.

Page 8: Building Axure Icon Widget Libraries Using Web Fonts

WHY GIVE THIS TALK (cont.) Other Solutions? - Axure 8 has a Pen tool now. Takeaway: Better to use existing SVGs than re-author them! - SVGs CAN be added to Axure. Takeaway: This requires iFrames and Axure plugins = too messy! - Importing assets from Photoshop or Sketch Takeaway: Results in static, non editable images.

Page 9: Building Axure Icon Widget Libraries Using Web Fonts

WHY GIVE THIS TALK (cont.) Real Life Problem - Wanted to use IcoMoon icons in an Axure prototype, but there was no easy way to do so. - Using Web Fonts created a reusable solution: Axure IcoMoon Library!

https://icomoon.io/ Resources: http://bit.ly/1HFuET0

Page 10: Building Axure Icon Widget Libraries Using Web Fonts

Tonight’s Lineup

Page 11: Building Axure Icon Widget Libraries Using Web Fonts

TONIGHT’S LINEUP Our Focus

Axure    Web  Fonts  Summary  

SVG  Crea5on  

Web  Font  Crea5on  

Using  Web  Font  in  Axure  

Building  Icon  Library  

Page 12: Building Axure Icon Widget Libraries Using Web Fonts

TONIGHT’S LINEUP (cont.) Fun For Another Day - Detailed walkthrough of Web Fonts in Axure 7. For more on the topic, consult the Resources below. - Font Mapping in Axure 7. - Teaching you Photoshop’s pen tool. - Having a scholarly debate on why Sketch is better than Axure for Visual Design J

http://bit.ly/1kolcv3 http://bit.ly/ZBbXj5 http://bit.ly/1T3nzVt Resources:

Page 13: Building Axure Icon Widget Libraries Using Web Fonts

TONIGHT’S LINEUP (cont.) Assumptions - We are working under Mac and OS X. - Dealing with icon fonts primarily. - We don’t have fonts sharing identical name. - Your font has matching name in CSS reference/@font-face spec and when added to Font Book.

Page 14: Building Axure Icon Widget Libraries Using Web Fonts

2  

Axure    Web  Fonts  Summary  

SVG  Crea5on  

Web  Font  Crea5on  

Using  Web  Font  in  Axure  

Building  Icon  Library  

Page 15: Building Axure Icon Widget Libraries Using Web Fonts

AXURE WEB FONTS SUMMARY What Is A Web Font? - This is not Axure technology. Introduced in CSS2. - Uses @font-face or CSS method to load custom fonts on a site. - Different font types can be used: .ttf, .eof, .woff, etc.

http://bit.ly/1VKSl41 Resources: http://bit.ly/1dAyZOe http://bit.ly/1R7OKgp

Page 16: Building Axure Icon Widget Libraries Using Web Fonts

AXURE WEB FONTS SUMMARY The Axure Connection - First introduced in Axure 7.0 as two features: Web Fonts and Font Mapping.

Page 17: Building Axure Icon Widget Libraries Using Web Fonts

AXURE WEB FONTS SUMMARY The Axure Connection (cont.) - First introduced in Axure 7.0 as two features: Web Fonts and Font Mapping.

Page 18: Building Axure Icon Widget Libraries Using Web Fonts

AXURE WEB FONTS SUMMARY Additional Details - Can have multiple web fonts in a single prototype. - Web fonts can be letter-based or icon-based. - Letter-based fonts map character to character: “A” in Arial maps to “A” in Open Sans - Icon-based fonts use a 4-character Unicode notation to represent a glyph (image character).

http://bit.ly/1T21uFX Resources: http://bit.ly/1Rtdulx http://bit.ly/1ZgLktL

Page 19: Building Axure Icon Widget Libraries Using Web Fonts

AXURE WEB FONTS SUMMARY Font Uses - Local use = installed on local machine only. Takeaway: Best if we want to see font in local .rp. If published online, font not seen! - Web use = spec included for web font. Takeaway: Using CSS or @font-face allows to view the generated prototype on any machine. Still need local font for .rp editing.

Page 20: Building Axure Icon Widget Libraries Using Web Fonts

Axure Web Fonts Demo

Page 21: Building Axure Icon Widget Libraries Using Web Fonts

3  

Axure    Web  Fonts  Summary  

SVG  Crea5on  

Web  Font  Crea5on  

Using  Web  Font  in  Axure  

Building  Icon  Library  

Page 22: Building Axure Icon Widget Libraries Using Web Fonts

Basics

Page 23: Building Axure Icon Widget Libraries Using Web Fonts

SVG CREATION What Is SVG? - SVG = Scalable Vector Graphics or a resolution-agnostic method of scaling graphics. - SVG is a work-in-progress W3C standard. - SVGs can be created via code or with Illustrator or Inkscape.

http://bit.ly/1R7TaEa http://bit.ly/1Rv1jyd http://bit.ly/21BWVTT Resources:

Page 24: Building Axure Icon Widget Libraries Using Web Fonts

SVG CREATION Working with Web Fonts - Web fonts can be created from SVGs. - When creating a web font, the SVGs are stored in the font. - Each glyph is assigned a Unicode used to retrieve the SVG. - There are font generators for letter-based and icon-based web fonts.

http://fontello.com/ http://fontastic.me/ https://icomoon.io Resources:

Page 25: Building Axure Icon Widget Libraries Using Web Fonts

Approaches

Page 26: Building Axure Icon Widget Libraries Using Web Fonts

SVG CREATION Considerations - Can’t have overlapping paths. Unify into single shape! - Can’t have different color segments. Use single color! - Stroke must not have a fill and background must be transparent. - Use 36x36 px or 64x64 px resolution for best results.

http://bit.ly/1Vr7h9v http://bit.ly/1t6wCrL Resources:

Page 27: Building Axure Icon Widget Libraries Using Web Fonts

SVG CREATION Sourcing SVGs - Can create your own or use existing assets. - Can download from Flaticon or Freepi. Be cognizant of licensing and author attributions. - Can use IcoMoon which has its own free icons.

+flaticon.com freepik.com Resources: icomoon.io

Page 28: Building Axure Icon Widget Libraries Using Web Fonts

SVG Creation Demo

Page 29: Building Axure Icon Widget Libraries Using Web Fonts

4  

Axure    Web  Fonts  Summary  

SVG  Crea5on  

Web  Font  Crea5on  

Using  Web  Font  in  Axure  

Building  Icon  Library  

Page 30: Building Axure Icon Widget Libraries Using Web Fonts

Background

Page 31: Building Axure Icon Widget Libraries Using Web Fonts

WEB FONT CREATION Background - For this, we will use IcoMoon because it has a library of 490 free icons licensed under GPL/CC BY 4.0. - It offers a flexible web app for icon-based font creation. - It is free, so support them! I am not associated with IcoMoon in any shape or form J (pun intended).

http://bit.ly/1MvJ76h http://bit.ly/1AskLG0 Resources:

Page 32: Building Axure Icon Widget Libraries Using Web Fonts

IcoMoon Features

Page 33: Building Axure Icon Widget Libraries Using Web Fonts

WEB FONT CREATION Access The App - In IcoMoon’s home screen, we tap on IcoMoon App or directly navigate to it via https://icomoon.io/app/#/select

Page 34: Building Axure Icon Widget Libraries Using Web Fonts

WEB FONT CREATION Adding Icons - We can import our own icons or add the available icon packs.

Page 35: Building Axure Icon Widget Libraries Using Web Fonts

WEB FONT CREATION Icon Modifications - We can select, delete, move, edit and search for icons.

Page 36: Building Axure Icon Widget Libraries Using Web Fonts

WEB FONT CREATION Icon Set Options - We can specify icon size and make adjustments to the icon set.

Page 37: Building Axure Icon Widget Libraries Using Web Fonts

Adding Icons

Page 38: Building Axure Icon Widget Libraries Using Web Fonts

WEB FONT CREATION Blank Slate - Let’s remove the current icon set for sake of simplicity. We can, mix and match icons any way we like. - Then click on Import Icons and navigate to the destination which has your SVG icons. Select all of them and hit Open.

Page 39: Building Axure Icon Widget Libraries Using Web Fonts

WEB FONT CREATION Adding Icons - The map icon is now added. We can edit it or add new icons. - Let’s name our set: Icon Menu > Get Info > Edit Meta Data. - If we have the Premium service, we can name the project and save it in the Cloud. Otherwise, it remains in browser cache only.

Page 40: Building Axure Icon Widget Libraries Using Web Fonts

WEB FONT CREATION Icon Options - We can hover over to edit icon name and the Unicode code. - We can also get CSS/HTML codes, but that’s optional.

Page 41: Building Axure Icon Widget Libraries Using Web Fonts

WEB FONT CREATION Public CSS Link - We can get a temporary 24-hr CSS link. - In Premium, the CSS gets stored in the Cloud. There is a way around both methods, which we will get to in a little bit.

Page 42: Building Axure Icon Widget Libraries Using Web Fonts

Wrapping Up

Page 43: Building Axure Icon Widget Libraries Using Web Fonts

WEB FONT CREATION Font Preferences - Via Preferences we can access font-specific options. Let’s give the font a unique name! - If using it outside of Axure, we can specify additional options.

h@ps://icomoon.io/#docs  

Page 44: Building Axure Icon Widget Libraries Using Web Fonts

WEB FONT CREATION Downloading The Font - We can then download a .zip of font.

Page 45: Building Axure Icon Widget Libraries Using Web Fonts

WEB FONT CREATION Zip Contents - demo.html lists the glyphs and their Unicode characters. - fonts has 4 font formats. We will use .ttf. For format differences check out Transfonter (http://bit.ly/1RYhGEa). - style.css is the CSS needed for making the font into a web font.

Page 46: Building Axure Icon Widget Libraries Using Web Fonts

Font Creation Demo

Page 47: Building Axure Icon Widget Libraries Using Web Fonts

5  

Axure    Web  Fonts  Summary  

SVG  Crea5on  

Web  Font  Crea5on  

Using  Web  Font  in  Axure  

Building  Icon  Library  

Page 48: Building Axure Icon Widget Libraries Using Web Fonts

Local Use

Page 49: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Local Use There are couple of steps we need to do to use the icon font on our local machine: 1. Install the font. 2. Configure a Unicode keyboard input. 3. Create a text widget and enter the glyph’s Unicode code. Let’s tackle these one by one!!!

Page 50: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Installing the Font - On Mac, drag the file into Font Book. On Windows, do the same under Fonts.

Page 51: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Unicode Input You can enter glyphs which have Unicode codes in different ways. Let’s discuss couple: 1. Using the Unicode keyboard in Mac. 2. Copying characters via Firefox’s Developer Tools. NOTE: most browsers allow for Unicode character copying. On Windows, you can can use Character Map or ALT + 4-digit code.

Page 52: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Option 1 - Mac Keyboard - We go to Preferences > Keyboard, click + and scroll to Others.

Page 53: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Option 1 - Mac Keyboard (cont.) - After clicking Add in the previous screen, we see the new entry.

Page 54: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Option 1 - Mac Keyboard (cont.) - Now, we can select the keyboard from the status bar!

Page 55: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Option 2 - Firefox Developer Tools - We can open a Firefox window and right click on the screen. - Then select Inspect Element to view the browser’s Dev Tools.

Page 56: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Option 2 - Firefox Developer Tools (cont.) - We then select > Console tab.

Page 57: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Option 2 - Firefox Developer Tools (cont.) - We type copy(‘\uxxxx’); where xxxx is the code of the glyph. - In our case, that’s e900. We hit Enter. CMD + V shows the glyph representation within the text box.

Page 58: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Getting It To Work - If Axure 7 was open while we installed the new font, that font won’t show in the font list. We will close and reopen the software! - Next, we drag a text widget and set its font to the new font. - We won’t see a noticeable change because the Unicode value has not been pasted yet!

Page 59: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Getting It To Work (cont.). - We first select the Unicode keyboard. - Next, while editing the text widget, we hold ALT and type the Unicode character code. Ours is e900! - The end result should be something like this:

NOT - The latter means something went wrong!!!

Page 60: Building Axure Icon Widget Libraries Using Web Fonts

Local Font Use Demo

Page 61: Building Axure Icon Widget Libraries Using Web Fonts

Remote Use

Page 62: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Remote Use - Good job! Now we have a custom icon font for Axure. - But we want to share our prototype with a client 100 miles away via AxShare. Will it work? - Nope! Because our .rp is using a font nobody can see online! We must put the font in an accessible web location first!

Page 63: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Preparing style.css - In style.css we only need the highlighted area. We must use relative paths for the url property.

Page 64: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Connecting to Server - We can use an FTP program such as Filezilla (http://bit.ly/1gEw9op) or CyberDuck (http://bit.ly/1Bj8KVv) to connect to a website host.

Page 65: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Access public_html Folder - The directory structure can very from host to host. - If unsure, inquire with the host’s Support team to find where your site resides.

Page 66: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Transfer Font Folder - We then transfer the font folder. For cleaner file structure, a fonts parent folder can be created. - Our directory must have 755 permissions, and files within 644.

Page 67: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Edit .htaccess file - We must edit the .htaccess file to enable web fonts.

Page 68: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Add Definition - We must add the following definition to the file and save it.

http://bit.ly/1WAxCjI Resources:

Page 69: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Copy style.css URL - This is the link we will paste into our Axure file.

Page 70: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Enter The URL in Axure - Under Publish > Generate HTML, in Web Fonts we add the link.

Page 71: Building Axure Icon Widget Libraries Using Web Fonts

USING WEBFONT IN AXURE Publish to AxShare - Under Publish, we click on Publish to Axure Share. - To test if the remote setup works, we can open the link above on a different device, computer or phone!

Page 72: Building Axure Icon Widget Libraries Using Web Fonts

USING WEB FONT IN AXURE Troubleshooting 1. Do you have the right paths in Axure and in .css file? 2. Can you access the .css (proper permissions on server)? 3. Is your .htaccess updated for web fonts? 4. Still not seeing it in your browser? Clear your history cache! NOTE: Still having problems? Try [email protected] or the Axure Forums (http://bit.ly/1Rvdueo).

Page 73: Building Axure Icon Widget Libraries Using Web Fonts

Remote Font Use Demo

Page 74: Building Axure Icon Widget Libraries Using Web Fonts

6  

Axure    Web  Fonts  Summary  

SVG  Crea5on  

Web  Font  Crea5on  

Using  Web  Font  in  Axure  

Building  Icon  Library  

Page 75: Building Axure Icon Widget Libraries Using Web Fonts

Basics

Page 76: Building Axure Icon Widget Libraries Using Web Fonts

BUILDING ICON LIBRARY Prerequisites - We must have the custom font installed on the machine on which we are authoring the library. - We must ensure there are no copyright issues: 1. Font uses SVGs that are ours. 2. Distribution of font and .rplib is permissible. 3. If we leveraged third-party resources, we must include a summary page in the library explaining this.

Page 77: Building Axure Icon Widget Libraries Using Web Fonts

BUILDING ICON LIBRARY Creating The .rplib File - This option opens a new file with .rplib extension. - We must save it to a file name right away!

Page 78: Building Axure Icon Widget Libraries Using Web Fonts

BUILDING ICON LIBRARY Adding A Widget Container - For each icon, we create a widget, like a page in .rp file. - We must name the widgets appropriately (helps with searches). - If multiple icons exist for the same concept, we can use the following notations: pen1, pen2, or pen-modern, pen-classic.

Page 79: Building Axure Icon Widget Libraries Using Web Fonts

BUILDING ICON LIBRARY Inserting The Widget - We place a Label widget on the screen at (0, 0). - We then resize it to 36x36 px. A different size can be used, but this one works well. - Center aligning the text vertically and horizontally is a must.

Page 80: Building Axure Icon Widget Libraries Using Web Fonts

BUILDING ICON LIBRARY Applying The Font - We set the font in the widget to testFontABC and the size to 36. - Next, using Unicode keyboard input, we type ALT + e900. - Now, we should the glyph show up!

Page 81: Building Axure Icon Widget Libraries Using Web Fonts

Wrap Up

Page 82: Building Axure Icon Widget Libraries Using Web Fonts

BUILDING ICON LIBRARY Including Additional Details - In the Widget Properties page, we must have Use the thumbnail selected, which uses the icon itself as a thumbnail image. - We can add a Tooltip and widget details under Widget Notes.

Page 83: Building Axure Icon Widget Libraries Using Web Fonts

BUILDING ICON LIBRARY Best Practices - Include a cover page sharing information about how to use the library, author’s contact info, versioning, etc. - Use one widget per icon sized at 36x36 or 64x64 px. - Set default color to black or dark gray. - Give appropriate names to widgets (follow IcoMoon’s examples). - Group categories of icons in folders, which creates visual separation of collections.

Page 84: Building Axure Icon Widget Libraries Using Web Fonts

BUILDING ICON LIBRARY Process - Once the library is ready, we must import it to our local installation of Axure, so it is available for all projects. - Next, we have to distribute the library to all team members by packaging the following assets: 1. The fonts folder. 2. Link to style.css (or actual .css file if not sharing the server URL) 3. .rplib library file. - These can be distributed via email or stored on a network drive. - As last step, if the library will evolve, we must introduce a change management process for font and library creation.

Page 85: Building Axure Icon Widget Libraries Using Web Fonts

Library Creation Demo

Page 86: Building Axure Icon Widget Libraries Using Web Fonts

Summary

7  

Page 87: Building Axure Icon Widget Libraries Using Web Fonts

SUMMARY What We Covered We covered much ground today! Give yourselves a pat on the back for getting through it J

Axure    Web  Fonts  Summary  

SVG  Crea5on  

Web  Font  Crea5on  

Using  Web  Font  in  Axure  

Building  Icon  Library  

Page 88: Building Axure Icon Widget Libraries Using Web Fonts

SUMMARY Major Takeaways 1. Axure doesn’t have true SVG support…yet! 2. The tool is capable of high fidelity visual designs. 3. Web Fonts lend Axure more flexibility in creating custom icons. 4. We can cut the authoring process by leveraging existing SVGs. 5. Time investment pays off long term by having shared use of the same assets by multiple team members.

Page 89: Building Axure Icon Widget Libraries Using Web Fonts

Questions?

8  

Page 90: Building Axure Icon Widget Libraries Using Web Fonts

That’s All, Folks!

light_forger

@svetlindenkov

Svetlin Denkov