Loading...
 

History: Icons SVG or Fonts

Preview of version: 35

Resources

Some SVG libraries

Discussion


There are hundreds of icons in Tiki. Right now, jpeg/png/gif. The opportunity is to move them progressively to a vector format. This permits scaling, styling, saving bandwidth, etc.
There are 2 options: SVG vs fonts
It would be a shame to maintain both if there is one that could address the needs. It would be a shame to invest migration time in one of the solutions only to do the work in double later if a change is decided.

Feeling is that Tiki should pick the best future-thinking solution between SVG & fonts:

Futureproof - SVG or FONT

svg -> No Unnecessary HTTP Requests

I just started to look into the possibility to use .SVG instead of FONT and so far I did find a bunch of discussion WHY to use SVG or not to use SVG instead of FONT when it goes to vector-icons.
I have mainly heard about possible issues in respect of browser compatibility towards SVG, but I did NOT find ANY VG icon sets for possible integration (with a very limited! time on research).
At the bottom of the wiki page I added the licenses for the icon FONTs mentioned on the wiki page.
http://www.webhostinghub.com/glyphs shows an example how to possibly achieve switchable "icon-sets", as they use the Bootstrap Glyphicon-Halfling names for their icons.
Finally the PNG fallback seems to be already sorted in Tiki for FONT thanks to our Bootstrap activists.
For a convenient way of a PNG fallback for SVG I did not find further helpful information.

=> Conclusion=> In my mind, if no serious arguments will be brought up, the actual path to FONT seems the best to do.
In the end, when reviewing the licenses, I see only Fontawesome and Glyphicon-Halflings so far (both already implemented) and optionally Monosocialiconsfont as "add-on".

Maybe somebody digs out additional resources and projects?

Semantic Icon Names

Use semantic names for icon names
Maybe based on names from here (removing "fa-" from the beginning): http://fontawesome.io/cheatsheet

Overwriting Icons

Make it possible for themes to override icons
Questions looking for an answer:

  • how can you easily change icon if you don't like what is shipped by Tiki? Can it be maintained simply by adding the image path to your preferred icon in the custom css file?
  • Would it be possible, if that made any sense, to use something like "icon sets" to replace icons for a Tiki site globally? How much effort that would be?
    Example: http://www.webhostinghub.com/glyphs/bootstrap/ same name - different glyphs (license see below)

Source - Guideline - License

Pick some preferred icon source(s) so community has guidelines for consistency and make sure licensing is OK

Fallback

Have a Smarty function (or something) so vectorial is chosen if supported by the browser, and use png as a fallback

    • The icon sources will surely have a png fallback available
    • If no fallback is available give an error message "Please use a modern browser"

  • some glyphicons come with bootstrap (http://getbootstrap.com/components/), but the variety is not enough, we need more icons
  • font-awesome seems to be a good addition both from variety and licensing point
  • both glyphicons and font-awesome icons are managed now with smarty functions (lib/smarty_tiki/), so in the tpl files you only need to add the name of the icon, e.g.:

{glyph name="plus"} or {fa name="automobile"}

  • maybe rework the icon smarty function (lib/smarty_tiki/function.icon.php) to manage icons in one place (update merge it with function.glyph.php and function.fa.php)

Licenses

  • Glyphicons-Halflings http://glyphicons.com/license/
    Same Licence as Bootstrap (so must be MIT in BS 3.1+)
    but attribution to glyphicons.com appreciated

  • WebHostingHub Glyphs http://www.webhostinghub.com/glyphs/
    SIL Open Font License for download and using in personal and commercial projects.
    PNG icons are distributed under Creative Commons Attribution 3.0 License.
    Redistribution is not authorized. (just link to http://www.webhostinghub.com/glyphs/ to let people know where they can download those awesome glyphs!)

  • Themify.me http://themify.me/themify-icons
    Mentioned on the website: 100% FREE! You may use or distribute it for any purpose, whether personal or commercial.
    no explicit license mentioned!


Also see https://dev.tiki.org/Icons

alias

History

Advanced
Information Version
Mon 04 of Feb, 2019 21:28 GMT luci remove redundant maketoc when the page already has auto-toc 38
Mon 13 of Jun, 2016 04:46 GMT chibaguy URL corrected to fix 404 error. 37
Sun 22 of Mar, 2015 19:30 GMT marclaporte 36
Wed 10 of Sep, 2014 18:28 GMT Torsten added !!Related link to dev/Icons 35
Mon 01 of Sep, 2014 10:54 GMT luci 34
Sat 30 of Aug, 2014 18:27 GMT lindon 33
Fri 29 of Aug, 2014 03:18 GMT chibaguy Replaced hardcoded color with a Bootstrap class. If class's color isn't good, let's change it in the theme option stylesheet. 32
Fri 29 of Aug, 2014 03:06 GMT chibaguy Fixed typos. 31
Fri 29 of Aug, 2014 02:28 GMT Torsten now 40% is enough 30
Fri 29 of Aug, 2014 02:27 GMT Torsten Reviewed the headings 29
Fri 29 of Aug, 2014 02:21 GMT Torsten added bg to div and moved levels param from wrong in div to right in maketoc 28
Fri 29 of Aug, 2014 02:19 GMT Torsten typos mainly ;-) 27
Fri 29 of Aug, 2014 02:17 GMT Torsten changed to 50% and limit to level 2 to gain space on the page (heading starts with !! anyway) 26
Fri 29 of Aug, 2014 02:16 GMT Torsten lit width of maketoc div to 40% 25
Fri 29 of Aug, 2014 02:15 GMT Torsten added brackets to links and added maketoc in a right floating div 24
Fri 29 of Aug, 2014 02:08 GMT Torsten changed text SVG/FONT personal opinion in discussion to make it complying with the txt of the e-mail sent to the devlist a minute ago. 23
Fri 29 of Aug, 2014 01:51 GMT Torsten after some review of resourced mentioned here, I added a few cents to the discussion (in a box) 22
Thu 28 of Aug, 2014 23:56 GMT Torsten Added question to "icon sets" to "!!!! Make it possible for themes to override icons" 21
Fri 01 of Aug, 2014 01:04 GMT marclaporte Oups 20
Wed 30 of Jul, 2014 21:11 GMT marclaporte Old name 19
Wed 30 of Jul, 2014 15:09 GMT marclaporte Thank you Simon Guibord (labalab) for suggesting this one 18
Tue 08 of Jul, 2014 23:26 GMT gezza 17
Tue 08 of Jul, 2014 23:16 GMT gezza 16
Wed 02 of Jul, 2014 15:11 GMT gezza 15
Wed 02 of Jul, 2014 14:59 GMT gezza 14
Mon 30 of Jun, 2014 18:59 GMT gezza adding thoughts to the page 13
Sat 28 of Jun, 2014 09:14 GMT gezza some notes 12
Sat 24 of May, 2014 13:28 GMT marclaporte 11
Sat 24 of May, 2014 13:21 GMT marclaporte Source for SVG icons 10
Sat 24 of May, 2014 12:58 GMT marclaporte 9
Sat 24 of May, 2014 12:42 GMT marclaporte 8
Fri 09 of May, 2014 14:47 GMT luci 7
Thu 01 of May, 2014 03:13 GMT marclaporte 6
Thu 01 of May, 2014 01:04 GMT marclaporte Thanks Mike! 5
Fri 21 of Mar, 2014 03:41 GMT marclaporte 4
Thu 11 of Apr, 2013 01:43 GMT marclaporte 3
Sat 23 of Mar, 2013 14:10 GMT marclaporte 2
Tue 16 of Oct, 2012 22:28 GMT marclaporte 1

Switch Theme

Layout

Latest Changes

No records to display ...more

Subscribe to Tiki Newsletters!

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other big news!
Contribute to Tiki

Site Config