Skip to content

Instantly share code, notes, and snippets.

@calvincorreli
Created February 9, 2012 17:53
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calvincorreli/1781569 to your computer and use it in GitHub Desktop.
Save calvincorreli/1781569 to your computer and use it in GitHub Desktop.
Glyphicons helper
task :glyphs => :environment do
glyphs = []
glyphs_hash = {}
longest_name = 0
Dir.glob(Rails.root.join("app", "assets", "images", "glyphicons", "*.png")) do |path|
width, height = `identify -format "%wx%h" #{path}`.strip.split(/x/)
# glyphicons_083_random.png
# glyphicons_083_random@2x.png
# glyphicons_halflings_047_bold.png
path.match(/\/(glyphicons_(halflings_)?(\d+)_([^.@]+)(@2x)?)\.png$/)
filename, halfling, num, name, x2 = $1, $2, $3, $4, $5
fullname = name + "_" + (halfling.present? ? 'halfling' : x2.present? ? 'x2' : 'normal')
if glyphs_hash[fullname]
fullname = name + "_2_" + (halfling.present? ? 'halfling' : x2.present? ? 'x2' : 'normal')
end
glyphs_hash[fullname] = true
glyphs << { :name => fullname, :num => num, :width => width, :height => height, :filename => filename }
len = fullname.length
longest_name = len if len > longest_name
end
File.open(Rails.root.join("lib", "glyphicons.rb"), "w") do |f|
f.write("module Glyphicons\n")
f.write(" GLYPHICONS = {\n")
f.write(glyphs.map {|glyph| " '#{glyph[:name]}' #{" " * (longest_name - glyph[:name].length)} => [#{'%2d' % glyph[:width]}, #{'%2d' % glyph[:height]}, '#{glyph[:filename]}']" }.join(",\n"))
f.write("\n }\n")
f.write("end\n")
end
end
module Glyphicons
GLYPHICONS = {
'glass_normal' => [24, 24, 'glyphicons_000_glass'],
'glass_x2' => [44, 48, 'glyphicons_000_glass@2x'],
'leaf_normal' => [24, 25, 'glyphicons_001_leaf'],
'leaf_x2' => [48, 49, 'glyphicons_001_leaf@2x'],
'dog_normal' => [26, 25, 'glyphicons_002_dog'],
'dog_x2' => [52, 49, 'glyphicons_002_dog@2x'],
'user_normal' => [23, 22, 'glyphicons_003_user'],
'user_x2' => [46, 45, 'glyphicons_003_user@2x'],
'girl_normal' => [22, 22, 'glyphicons_004_girl'],
'girl_x2' => [44, 44, 'glyphicons_004_girl@2x'],
'car_normal' => [26, 22, 'glyphicons_005_car'],
'car_x2' => [52, 44, 'glyphicons_005_car@2x'],
'user_add_normal' => [28, 22, 'glyphicons_006_user_add'],
'user_add_x2' => [54, 45, 'glyphicons_006_user_add@2x'],
'user_remove_normal' => [26, 22, 'glyphicons_007_user_remove'],
'user_remove_x2' => [52, 45, 'glyphicons_007_user_remove@2x'],
'film_normal' => [22, 26, 'glyphicons_008_film'],
'film_x2' => [44, 49, 'glyphicons_008_film@2x'],
'magic_normal' => [24, 24, 'glyphicons_009_magic'],
'magic_x2' => [48, 49, 'glyphicons_009_magic@2x'],
'envelope_normal' => [24, 16, 'glyphicons_010_envelope'],
'envelope_x2' => [48, 32, 'glyphicons_010_envelope@2x'],
'camera_normal' => [26, 20, 'glyphicons_011_camera'],
'camera_x2' => [52, 40, 'glyphicons_011_camera@2x'],
'heart_normal' => [24, 22, 'glyphicons_012_heart'],
'heart_x2' => [48, 44, 'glyphicons_012_heart@2x'],
'beach_umbrella_normal' => [25, 25, 'glyphicons_013_beach_umbrella'],
'beach_umbrella_x2' => [50, 49, 'glyphicons_013_beach_umbrella@2x'],
'train_normal' => [20, 27, 'glyphicons_014_train'],
'train_x2' => [40, 54, 'glyphicons_014_train@2x'],
'print_normal' => [24, 24, 'glyphicons_015_print'],
'print_x2' => [48, 48, 'glyphicons_015_print@2x'],
'bin_normal' => [20, 28, 'glyphicons_016_bin'],
'bin_x2' => [38, 55, 'glyphicons_016_bin@2x'],
'music_normal' => [21, 25, 'glyphicons_017_music'],
'music_x2' => [41, 49, 'glyphicons_017_music@2x'],
'note_normal' => [18, 25, 'glyphicons_018_note'],
'note_x2' => [35, 48, 'glyphicons_018_note@2x'],
'cogwheel_normal' => [24, 24, 'glyphicons_019_cogwheel'],
'cogwheel_x2' => [46, 46, 'glyphicons_019_cogwheel@2x'],
'home_normal' => [27, 26, 'glyphicons_020_home'],
'home_x2' => [55, 52, 'glyphicons_020_home@2x'],
'snowflake_normal' => [28, 28, 'glyphicons_021_snowflake'],
'snowflake_x2' => [56, 56, 'glyphicons_021_snowflake@2x'],
'fire_normal' => [20, 26, 'glyphicons_022_fire'],
'fire_x2' => [40, 52, 'glyphicons_022_fire@2x'],
'cogwheels_normal' => [26, 26, 'glyphicons_023_cogwheels'],
'cogwheels_x2' => [51, 51, 'glyphicons_023_cogwheels@2x'],
'parents_normal' => [32, 22, 'glyphicons_024_parents'],
'parents_x2' => [66, 44, 'glyphicons_024_parents@2x'],
'binoculars_normal' => [24, 24, 'glyphicons_025_binoculars'],
'binoculars_x2' => [48, 48, 'glyphicons_025_binoculars@2x'],
'road_normal' => [28, 24, 'glyphicons_026_road'],
'road_x2' => [56, 48, 'glyphicons_026_road@2x'],
'search_normal' => [24, 24, 'glyphicons_027_search'],
'search_x2' => [48, 48, 'glyphicons_027_search@2x'],
'cars_normal' => [36, 25, 'glyphicons_028_cars'],
'cars_x2' => [72, 50, 'glyphicons_028_cars@2x'],
'notes_2_normal' => [20, 27, 'glyphicons_029_notes_2'],
'notes_2_x2' => [40, 54, 'glyphicons_029_notes_2@2x'],
'pencil_normal' => [25, 25, 'glyphicons_030_pencil'],
'pencil_x2' => [48, 48, 'glyphicons_030_pencil@2x'],
'bus_normal' => [32, 25, 'glyphicons_031_bus'],
'bus_x2' => [64, 50, 'glyphicons_031_bus@2x'],
'wifi_alt_normal' => [26, 26, 'glyphicons_032_wifi_alt'],
'wifi_alt_x2' => [52, 51, 'glyphicons_032_wifi_alt@2x'],
'luggage_normal' => [20, 27, 'glyphicons_033_luggage'],
'luggage_x2' => [40, 54, 'glyphicons_033_luggage@2x'],
'old_man_normal' => [23, 24, 'glyphicons_034_old_man'],
'old_man_x2' => [46, 48, 'glyphicons_034_old_man@2x'],
'woman_normal' => [22, 22, 'glyphicons_035_woman'],
'woman_x2' => [44, 44, 'glyphicons_035_woman@2x'],
'file_normal' => [17, 24, 'glyphicons_036_file'],
'file_x2' => [34, 48, 'glyphicons_036_file@2x'],
'credit_normal' => [26, 24, 'glyphicons_037_credit'],
'credit_x2' => [52, 48, 'glyphicons_037_credit@2x'],
'airplane_normal' => [24, 25, 'glyphicons_038_airplane'],
'airplane_x2' => [48, 50, 'glyphicons_038_airplane@2x'],
'notes_normal' => [20, 25, 'glyphicons_039_notes'],
'notes_x2' => [40, 50, 'glyphicons_039_notes@2x'],
'stats_normal' => [26, 25, 'glyphicons_040_stats'],
'stats_x2' => [52, 51, 'glyphicons_040_stats@2x'],
'charts_normal' => [27, 24, 'glyphicons_041_charts'],
'charts_x2' => [54, 48, 'glyphicons_041_charts@2x'],
'pie_chart_normal' => [26, 25, 'glyphicons_042_pie_chart'],
'pie_chart_x2' => [50, 47, 'glyphicons_042_pie_chart@2x'],
'group_normal' => [35, 22, 'glyphicons_043_group'],
'group_x2' => [68, 46, 'glyphicons_043_group@2x'],
'keys_normal' => [24, 26, 'glyphicons_044_keys'],
'keys_x2' => [48, 52, 'glyphicons_044_keys@2x'],
'calendar_normal' => [23, 25, 'glyphicons_045_calendar'],
'calendar_x2' => [46, 50, 'glyphicons_045_calendar@2x'],
'router_normal' => [27, 26, 'glyphicons_046_router'],
'router_x2' => [54, 51, 'glyphicons_046_router@2x'],
'camera_small_normal' => [22, 24, 'glyphicons_047_camera_small'],
'camera_small_x2' => [45, 48, 'glyphicons_047_camera_small@2x'],
'dislikes_normal' => [26, 24, 'glyphicons_048_dislikes'],
'dislikes_x2' => [51, 47, 'glyphicons_048_dislikes@2x'],
'star_normal' => [25, 24, 'glyphicons_049_star'],
'star_x2' => [50, 48, 'glyphicons_049_star@2x'],
'link_normal' => [21, 23, 'glyphicons_050_link'],
'link_x2' => [42, 46, 'glyphicons_050_link@2x'],
'eye_open_normal' => [31, 17, 'glyphicons_051_eye_open'],
'eye_open_x2' => [61, 33, 'glyphicons_051_eye_open@2x'],
'eye_close_normal' => [31, 24, 'glyphicons_052_eye_close'],
'eye_close_x2' => [60, 48, 'glyphicons_052_eye_close@2x'],
'alarm_normal' => [28, 26, 'glyphicons_053_alarm'],
'alarm_x2' => [51, 50, 'glyphicons_053_alarm@2x'],
'clock_normal' => [24, 24, 'glyphicons_054_clock'],
'clock_x2' => [48, 48, 'glyphicons_054_clock@2x'],
'stopwatch_normal' => [23, 27, 'glyphicons_055_stopwatch'],
'stopwatch_x2' => [46, 53, 'glyphicons_055_stopwatch@2x'],
'projector_normal' => [28, 25, 'glyphicons_056_projector'],
'projector_x2' => [56, 50, 'glyphicons_056_projector@2x'],
'history_normal' => [25, 26, 'glyphicons_057_history'],
'history_x2' => [49, 50, 'glyphicons_057_history@2x'],
'truck_normal' => [32, 27, 'glyphicons_058_truck'],
'truck_x2' => [64, 56, 'glyphicons_058_truck@2x'],
'cargo_normal' => [25, 26, 'glyphicons_059_cargo'],
'cargo_x2' => [50, 52, 'glyphicons_059_cargo@2x'],
'compass_normal' => [24, 24, 'glyphicons_060_compass'],
'compass_x2' => [48, 48, 'glyphicons_060_compass@2x'],
'keynote_normal' => [20, 30, 'glyphicons_061_keynote'],
'keynote_x2' => [40, 59, 'glyphicons_061_keynote@2x'],
'attach_normal' => [26, 24, 'glyphicons_062_attach'],
'attach_x2' => [51, 47, 'glyphicons_062_attach@2x'],
'power_normal' => [22, 24, 'glyphicons_063_power'],
'power_x2' => [43, 47, 'glyphicons_063_power@2x'],
'lightbulb_normal' => [20, 26, 'glyphicons_064_lightbulb'],
'lightbulb_x2' => [38, 51, 'glyphicons_064_lightbulb@2x'],
'tag_normal' => [24, 24, 'glyphicons_065_tag'],
'tag_x2' => [48, 48, 'glyphicons_065_tag@2x'],
'tags_normal' => [30, 24, 'glyphicons_066_tags'],
'tags_x2' => [60, 48, 'glyphicons_066_tags@2x'],
'cleaning_normal' => [24, 25, 'glyphicons_067_cleaning'],
'cleaning_x2' => [48, 49, 'glyphicons_067_cleaning@2x'],
'ruller_normal' => [27, 14, 'glyphicons_068_ruller'],
'ruller_x2' => [54, 28, 'glyphicons_068_ruller@2x'],
'gift_normal' => [24, 25, 'glyphicons_069_gift'],
'gift_x2' => [48, 50, 'glyphicons_069_gift@2x'],
'umbrella_normal' => [26, 28, 'glyphicons_070_umbrella'],
'umbrella_x2' => [52, 56, 'glyphicons_070_umbrella@2x'],
'book_normal' => [22, 24, 'glyphicons_071_book'],
'book_x2' => [44, 48, 'glyphicons_071_book@2x'],
'bookmark_normal' => [16, 24, 'glyphicons_072_bookmark'],
'bookmark_x2' => [31, 47, 'glyphicons_072_bookmark@2x'],
'signal_normal' => [31, 23, 'glyphicons_073_signal'],
'signal_x2' => [63, 45, 'glyphicons_073_signal@2x'],
'cup_normal' => [22, 24, 'glyphicons_074_cup'],
'cup_x2' => [44, 48, 'glyphicons_074_cup@2x'],
'stroller_normal' => [25, 26, 'glyphicons_075_stroller'],
'stroller_x2' => [50, 50, 'glyphicons_075_stroller@2x'],
'headphones_normal' => [24, 24, 'glyphicons_076_headphones'],
'headphones_x2' => [48, 48, 'glyphicons_076_headphones@2x'],
'headset_normal' => [24, 28, 'glyphicons_077_headset'],
'headset_x2' => [48, 56, 'glyphicons_077_headset@2x'],
'warning_sign_normal' => [29, 24, 'glyphicons_078_warning_sign'],
'warning_sign_x2' => [56, 48, 'glyphicons_078_warning_sign@2x'],
'signal_2_normal' => [24, 24, 'glyphicons_079_signal'],
'signal_2_x2' => [48, 48, 'glyphicons_079_signal@2x'],
'retweet_normal' => [30, 15, 'glyphicons_080_retweet'],
'retweet_x2' => [60, 31, 'glyphicons_080_retweet@2x'],
'refresh_normal' => [25, 26, 'glyphicons_081_refresh'],
'refresh_x2' => [48, 48, 'glyphicons_081_refresh@2x'],
'roundabout_normal' => [27, 27, 'glyphicons_082_roundabout'],
'roundabout_x2' => [54, 53, 'glyphicons_082_roundabout@2x'],
'random_normal' => [28, 20, 'glyphicons_083_random'],
'random_x2' => [55, 40, 'glyphicons_083_random@2x'],
'heat_normal' => [29, 25, 'glyphicons_084_heat'],
'heat_x2' => [58, 50, 'glyphicons_084_heat@2x'],
'repeat_normal' => [24, 26, 'glyphicons_085_repeat'],
'repeat_x2' => [47, 48, 'glyphicons_085_repeat@2x'],
'display_normal' => [28, 24, 'glyphicons_086_display'],
'display_x2' => [56, 48, 'glyphicons_086_display@2x'],
'log_book_normal' => [22, 24, 'glyphicons_087_log_book'],
'log_book_x2' => [44, 48, 'glyphicons_087_log_book@2x'],
'adress_book_normal' => [22, 24, 'glyphicons_088_adress_book'],
'adress_book_x2' => [44, 48, 'glyphicons_088_adress_book@2x'],
'magnet_normal' => [21, 23, 'glyphicons_089_magnet'],
'magnet_x2' => [42, 47, 'glyphicons_089_magnet@2x'],
'table_normal' => [26, 24, 'glyphicons_090_table'],
'table_x2' => [52, 48, 'glyphicons_090_table@2x'],
'adjust_normal' => [26, 26, 'glyphicons_091_adjust'],
'adjust_x2' => [46, 46, 'glyphicons_091_adjust@2x'],
'tint_normal' => [23, 26, 'glyphicons_092_tint'],
'tint_x2' => [44, 52, 'glyphicons_092_tint@2x'],
'crop_normal' => [26, 26, 'glyphicons_093_crop'],
'crop_x2' => [52, 52, 'glyphicons_093_crop@2x'],
'vector_path_square_normal' => [24, 24, 'glyphicons_094_vector_path_square'],
'vector_path_square_x2' => [48, 48, 'glyphicons_094_vector_path_square@2x'],
'vector_path_circle_normal' => [24, 24, 'glyphicons_095_vector_path_circle'],
'vector_path_circle_x2' => [48, 48, 'glyphicons_095_vector_path_circle@2x'],
'vector_path_polygon_normal' => [26, 25, 'glyphicons_096_vector_path_polygon'],
'vector_path_polygon_x2' => [52, 50, 'glyphicons_096_vector_path_polygon@2x'],
'vector_path_line_normal' => [24, 24, 'glyphicons_097_vector_path_line'],
'vector_path_line_x2' => [48, 48, 'glyphicons_097_vector_path_line@2x'],
'vector_path_curve_normal' => [24, 24, 'glyphicons_098_vector_path_curve'],
'vector_path_curve_x2' => [48, 48, 'glyphicons_098_vector_path_curve@2x'],
'vector_path_all_normal' => [24, 24, 'glyphicons_099_vector_path_all'],
'vector_path_all_x2' => [48, 48, 'glyphicons_099_vector_path_all@2x'],
'font_normal' => [27, 23, 'glyphicons_100_font'],
'font_x2' => [54, 46, 'glyphicons_100_font@2x'],
'italic_normal' => [14, 24, 'glyphicons_101_italic'],
'italic_x2' => [27, 48, 'glyphicons_101_italic@2x'],
'bold_normal' => [19, 24, 'glyphicons_102_bold'],
'bold_x2' => [38, 48, 'glyphicons_102_bold@2x'],
'text_underline_normal' => [20, 24, 'glyphicons_103_text_underline'],
'text_underline_x2' => [40, 48, 'glyphicons_103_text_underline@2x'],
'text_strike_normal' => [20, 22, 'glyphicons_104_text_strike'],
'text_strike_x2' => [40, 44, 'glyphicons_104_text_strike@2x'],
'text_height_normal' => [26, 24, 'glyphicons_105_text_height'],
'text_height_x2' => [52, 46, 'glyphicons_105_text_height@2x'],
'text_width_normal' => [22, 24, 'glyphicons_106_text_width'],
'text_width_x2' => [42, 48, 'glyphicons_106_text_width@2x'],
'text_resize_normal' => [26, 26, 'glyphicons_107_text_resize'],
'text_resize_x2' => [52, 52, 'glyphicons_107_text_resize@2x'],
'left_indent_normal' => [24, 22, 'glyphicons_108_left_indent'],
'left_indent_x2' => [48, 46, 'glyphicons_108_left_indent@2x'],
'right_indent_normal' => [24, 22, 'glyphicons_109_right_indent'],
'right_indent_x2' => [48, 46, 'glyphicons_109_right_indent@2x'],
'align_left_normal' => [24, 21, 'glyphicons_110_align_left'],
'align_left_x2' => [48, 42, 'glyphicons_110_align_left@2x'],
'align_center_normal' => [24, 21, 'glyphicons_111_align_center'],
'align_center_x2' => [48, 42, 'glyphicons_111_align_center@2x'],
'align_right_normal' => [24, 21, 'glyphicons_112_align_right'],
'align_right_x2' => [48, 42, 'glyphicons_112_align_right@2x'],
'justify_normal' => [24, 21, 'glyphicons_113_justify'],
'justify_x2' => [48, 42, 'glyphicons_113_justify@2x'],
'list_normal' => [24, 21, 'glyphicons_114_list'],
'list_x2' => [48, 42, 'glyphicons_114_list@2x'],
'text_smaller_normal' => [22, 16, 'glyphicons_115_text_smaller'],
'text_smaller_x2' => [44, 32, 'glyphicons_115_text_smaller@2x'],
'text_bigger_normal' => [24, 22, 'glyphicons_116_text_bigger'],
'text_bigger_x2' => [48, 44, 'glyphicons_116_text_bigger@2x'],
'embed_normal' => [30, 14, 'glyphicons_117_embed'],
'embed_x2' => [60, 29, 'glyphicons_117_embed@2x'],
'embed_close_normal' => [30, 24, 'glyphicons_118_embed_close'],
'embed_close_x2' => [60, 48, 'glyphicons_118_embed_close@2x'],
'adjust_2_normal' => [23, 24, 'glyphicons_119_adjust'],
'adjust_2_x2' => [46, 48, 'glyphicons_119_adjust@2x'],
'message_full_normal' => [24, 28, 'glyphicons_120_message_full'],
'message_full_x2' => [48, 56, 'glyphicons_120_message_full@2x'],
'message_empty_normal' => [24, 28, 'glyphicons_121_message_empty'],
'message_empty_x2' => [48, 56, 'glyphicons_121_message_empty@2x'],
'message_in_normal' => [24, 28, 'glyphicons_122_message_in'],
'message_in_x2' => [48, 56, 'glyphicons_122_message_in@2x'],
'message_out_normal' => [24, 28, 'glyphicons_123_message_out'],
'message_out_x2' => [48, 56, 'glyphicons_123_message_out@2x'],
'message_plus_normal' => [29, 23, 'glyphicons_124_message_plus'],
'message_plus_x2' => [58, 46, 'glyphicons_124_message_plus@2x'],
'message_minus_normal' => [29, 23, 'glyphicons_125_message_minus'],
'message_minus_x2' => [58, 46, 'glyphicons_125_message_minus@2x'],
'message_ban_normal' => [29, 23, 'glyphicons_126_message_ban'],
'message_ban_x2' => [58, 46, 'glyphicons_126_message_ban@2x'],
'message_flag_normal' => [27, 23, 'glyphicons_127_message_flag'],
'message_flag_x2' => [54, 46, 'glyphicons_127_message_flag@2x'],
'message_lock_normal' => [28, 24, 'glyphicons_128_message_lock'],
'message_lock_x2' => [56, 48, 'glyphicons_128_message_lock@2x'],
'message_new_normal' => [28, 22, 'glyphicons_129_message_new'],
'message_new_x2' => [56, 44, 'glyphicons_129_message_new@2x'],
'inbox_normal' => [24, 23, 'glyphicons_130_inbox'],
'inbox_x2' => [48, 46, 'glyphicons_130_inbox@2x'],
'inbox_plus_normal' => [27, 27, 'glyphicons_131_inbox_plus'],
'inbox_plus_x2' => [54, 54, 'glyphicons_131_inbox_plus@2x'],
'inbox_minus_normal' => [27, 27, 'glyphicons_132_inbox_minus'],
'inbox_minus_x2' => [54, 54, 'glyphicons_132_inbox_minus@2x'],
'inbox_lock_normal' => [26, 28, 'glyphicons_133_inbox_lock'],
'inbox_lock_x2' => [52, 56, 'glyphicons_133_inbox_lock@2x'],
'inbox_in_normal' => [24, 26, 'glyphicons_134_inbox_in'],
'inbox_in_x2' => [48, 52, 'glyphicons_134_inbox_in@2x'],
'inbox_out_normal' => [24, 26, 'glyphicons_135_inbox_out'],
'inbox_out_x2' => [48, 52, 'glyphicons_135_inbox_out@2x'],
'computer_locked_normal' => [28, 24, 'glyphicons_136_computer_locked'],
'computer_locked_x2' => [56, 48, 'glyphicons_136_computer_locked@2x'],
'computer_service_normal' => [28, 24, 'glyphicons_137_computer_service'],
'computer_service_x2' => [56, 48, 'glyphicons_137_computer_service@2x'],
'computer_proces_normal' => [28, 24, 'glyphicons_138_computer_proces'],
'computer_proces_x2' => [56, 48, 'glyphicons_138_computer_proces@2x'],
'phone_normal' => [15, 25, 'glyphicons_139_phone'],
'phone_x2' => [30, 50, 'glyphicons_139_phone@2x'],
'database_lock_normal' => [26, 28, 'glyphicons_140_database_lock'],
'database_lock_x2' => [52, 56, 'glyphicons_140_database_lock@2x'],
'database_plus_normal' => [27, 27, 'glyphicons_141_database_plus'],
'database_plus_x2' => [54, 54, 'glyphicons_141_database_plus@2x'],
'database_minus_normal' => [27, 27, 'glyphicons_142_database_minus'],
'database_minus_x2' => [54, 54, 'glyphicons_142_database_minus@2x'],
'database_ban_normal' => [26, 27, 'glyphicons_143_database_ban'],
'database_ban_x2' => [52, 54, 'glyphicons_143_database_ban@2x'],
'folder_open_normal' => [30, 22, 'glyphicons_144_folder_open'],
'folder_open_x2' => [60, 44, 'glyphicons_144_folder_open@2x'],
'folder_plus_normal' => [29, 25, 'glyphicons_145_folder_plus'],
'folder_plus_x2' => [58, 50, 'glyphicons_145_folder_plus@2x'],
'folder_minus_normal' => [29, 25, 'glyphicons_146_folder_minus'],
'folder_minus_x2' => [58, 50, 'glyphicons_146_folder_minus@2x'],
'folder_lock_normal' => [28, 26, 'glyphicons_147_folder_lock'],
'folder_lock_x2' => [56, 52, 'glyphicons_147_folder_lock@2x'],
'folder_flag_normal' => [27, 25, 'glyphicons_148_folder_flag'],
'folder_flag_x2' => [54, 50, 'glyphicons_148_folder_flag@2x'],
'folder_new_normal' => [28, 24, 'glyphicons_149_folder_new'],
'folder_new_x2' => [56, 48, 'glyphicons_149_folder_new@2x'],
'check_normal' => [22, 18, 'glyphicons_150_check'],
'check_x2' => [44, 37, 'glyphicons_150_check@2x'],
'edit_normal' => [24, 21, 'glyphicons_151_edit'],
'edit_x2' => [47, 41, 'glyphicons_151_edit@2x'],
'new_window_normal' => [26, 22, 'glyphicons_152_new_window'],
'new_window_x2' => [53, 46, 'glyphicons_152_new_window@2x'],
'more_windows_normal' => [23, 23, 'glyphicons_153_more_windows'],
'more_windows_x2' => [45, 45, 'glyphicons_153_more_windows@2x'],
'show_big_thumbnails_normal' => [22, 22, 'glyphicons_154_show_big_thumbnails'],
'show_big_thumbnails_x2' => [44, 44, 'glyphicons_154_show_big_thumbnails@2x'],
'show_thumbnails_normal' => [22, 22, 'glyphicons_155_show_thumbnails'],
'show_thumbnails_x2' => [44, 44, 'glyphicons_155_show_thumbnails@2x'],
'show_thumbnails_with_lines_normal' => [24, 15, 'glyphicons_156_show_thumbnails_with_lines'],
'show_thumbnails_with_lines_x2' => [48, 30, 'glyphicons_156_show_thumbnails_with_lines@2x'],
'show_lines_normal' => [24, 15, 'glyphicons_157_show_lines'],
'show_lines_x2' => [48, 30, 'glyphicons_157_show_lines@2x'],
'playlist_normal' => [29, 24, 'glyphicons_158_playlist'],
'playlist_x2' => [57, 48, 'glyphicons_158_playlist@2x'],
'picture_normal' => [24, 20, 'glyphicons_159_picture'],
'picture_x2' => [48, 38, 'glyphicons_159_picture@2x'],
'imac_normal' => [26, 22, 'glyphicons_160_imac'],
'imac_x2' => [52, 44, 'glyphicons_160_imac@2x'],
'macbook_normal' => [28, 15, 'glyphicons_161_macbook'],
'macbook_x2' => [54, 31, 'glyphicons_161_macbook@2x'],
'ipad_normal' => [20, 27, 'glyphicons_162_ipad'],
'ipad_x2' => [40, 53, 'glyphicons_162_ipad@2x'],
'iphone_normal' => [14, 24, 'glyphicons_163_iphone'],
'iphone_x2' => [133, 48, 'glyphicons_163_iphone@2x'],
'iphone_transfer_normal' => [29, 24, 'glyphicons_164_iphone_transfer'],
'iphone_transfer_x2' => [54, 48, 'glyphicons_164_iphone_transfer@2x'],
'iphone_exchange_normal' => [29, 24, 'glyphicons_165_iphone_exchange'],
'iphone_exchange_x2' => [54, 48, 'glyphicons_165_iphone_exchange@2x'],
'ipod_normal' => [14, 22, 'glyphicons_166_ipod'],
'ipod_x2' => [26, 44, 'glyphicons_166_ipod@2x'],
'ipod_shuffle_normal' => [15, 13, 'glyphicons_167_ipod_shuffle'],
'ipod_shuffle_x2' => [30, 27, 'glyphicons_167_ipod_shuffle@2x'],
'ear_plugs_normal' => [20, 24, 'glyphicons_168_ear_plugs'],
'ear_plugs_x2' => [40, 48, 'glyphicons_168_ear_plugs@2x'],
'albums_normal' => [28, 18, 'glyphicons_169_albums'],
'albums_x2' => [56, 36, 'glyphicons_169_albums@2x'],
'step_backward_normal' => [14, 18, 'glyphicons_170_step_backward'],
'step_backward_x2' => [27, 34, 'glyphicons_170_step_backward@2x'],
'fast_backward_normal' => [25, 18, 'glyphicons_171_fast_backward'],
'fast_backward_x2' => [48, 34, 'glyphicons_171_fast_backward@2x'],
'rewind_normal' => [23, 18, 'glyphicons_172_rewind'],
'rewind_x2' => [44, 34, 'glyphicons_172_rewind@2x'],
'play_normal' => [16, 18, 'glyphicons_173_play'],
'play_x2' => [33, 34, 'glyphicons_173_play@2x'],
'pause_normal' => [10, 16, 'glyphicons_174_pause'],
'pause_x2' => [21, 32, 'glyphicons_174_pause@2x'],
'stop_normal' => [14, 14, 'glyphicons_175_stop'],
'stop_x2' => [28, 28, 'glyphicons_175_stop@2x'],
'forward_normal' => [23, 18, 'glyphicons_176_forward'],
'forward_x2' => [44, 34, 'glyphicons_176_forward@2x'],
'fast_forward_normal' => [25, 18, 'glyphicons_177_fast_forward'],
'fast_forward_x2' => [48, 34, 'glyphicons_177_fast_forward@2x'],
'step_forward_normal' => [14, 18, 'glyphicons_178_step_forward'],
'step_forward_x2' => [27, 34, 'glyphicons_178_step_forward@2x'],
'eject_normal' => [18, 17, 'glyphicons_179_eject'],
'eject_x2' => [35, 31, 'glyphicons_179_eject@2x'],
'facetime_video_normal' => [24, 16, 'glyphicons_180_facetime_video'],
'facetime_video_x2' => [48, 32, 'glyphicons_180_facetime_video@2x'],
'download_alt_normal' => [24, 24, 'glyphicons_181_download_alt'],
'download_alt_x2' => [48, 48, 'glyphicons_181_download_alt@2x'],
'mute_normal' => [22, 16, 'glyphicons_182_mute'],
'mute_x2' => [43, 31, 'glyphicons_182_mute@2x'],
'volume_down_normal' => [16, 16, 'glyphicons_183_volume_down'],
'volume_down_x2' => [31, 31, 'glyphicons_183_volume_down@2x'],
'volume_up_normal' => [24, 26, 'glyphicons_184_volume_up'],
'volume_up_x2' => [47, 50, 'glyphicons_184_volume_up@2x'],
'screenshot_normal' => [27, 27, 'glyphicons_185_screenshot'],
'screenshot_x2' => [54, 54, 'glyphicons_185_screenshot@2x'],
'move_normal' => [24, 24, 'glyphicons_186_move'],
'move_x2' => [48, 48, 'glyphicons_186_move@2x'],
'more_normal' => [22, 7, 'glyphicons_187_more'],
'more_x2' => [44, 13, 'glyphicons_187_more@2x'],
'brightness_reduce_normal' => [20, 20, 'glyphicons_188_brightness_reduce'],
'brightness_reduce_x2' => [39, 40, 'glyphicons_188_brightness_reduce@2x'],
'brightness_increase_normal' => [24, 24, 'glyphicons_189_brightness_increase'],
'brightness_increase_x2' => [48, 48, 'glyphicons_189_brightness_increase@2x'],
'circle_plus_normal' => [26, 26, 'glyphicons_190_circle_plus'],
'circle_plus_x2' => [50, 50, 'glyphicons_190_circle_plus@2x'],
'circle_minus_normal' => [26, 26, 'glyphicons_191_circle_minus'],
'circle_minus_x2' => [50, 50, 'glyphicons_191_circle_minus@2x'],
'circle_remove_normal' => [26, 26, 'glyphicons_192_circle_remove'],
'circle_remove_x2' => [50, 50, 'glyphicons_192_circle_remove@2x'],
'circle_ok_normal' => [26, 26, 'glyphicons_193_circle_ok'],
'circle_ok_x2' => [50, 50, 'glyphicons_193_circle_ok@2x'],
'circle_question_mark_normal' => [26, 26, 'glyphicons_194_circle_question_mark'],
'circle_question_mark_x2' => [50, 50, 'glyphicons_194_circle_question_mark@2x'],
'circle_info_normal' => [26, 26, 'glyphicons_195_circle_info'],
'circle_info_x2' => [50, 50, 'glyphicons_195_circle_info@2x'],
'circle_exclamation_mark_normal' => [26, 26, 'glyphicons_196_circle_exclamation_mark'],
'circle_exclamation_mark_x2' => [50, 50, 'glyphicons_196_circle_exclamation_mark@2x'],
'remove_normal' => [26, 26, 'glyphicons_197_remove'],
'remove_x2' => [50, 50, 'glyphicons_197_remove@2x'],
'ok_normal' => [26, 26, 'glyphicons_198_ok'],
'ok_x2' => [50, 50, 'glyphicons_198_ok@2x'],
'ban_normal' => [26, 26, 'glyphicons_199_ban'],
'ban_x2' => [50, 50, 'glyphicons_199_ban@2x'],
'download_normal' => [26, 26, 'glyphicons_200_download'],
'download_x2' => [50, 50, 'glyphicons_200_download@2x'],
'upload_normal' => [26, 26, 'glyphicons_201_upload'],
'upload_x2' => [50, 50, 'glyphicons_201_upload@2x'],
'shopping_cart_normal' => [26, 23, 'glyphicons_202_shopping_cart'],
'shopping_cart_x2' => [50, 46, 'glyphicons_202_shopping_cart@2x'],
'lock_normal' => [21, 26, 'glyphicons_203_lock'],
'lock_x2' => [42, 51, 'glyphicons_203_lock@2x'],
'unlock_normal' => [21, 26, 'glyphicons_204_unlock'],
'unlock_x2' => [42, 57, 'glyphicons_204_unlock@2x'],
'electricity_normal' => [11, 24, 'glyphicons_205_electricity'],
'electricity_x2' => [23, 48, 'glyphicons_205_electricity@2x'],
'ok_2_normal' => [25, 19, 'glyphicons_206_ok_2'],
'ok_2_x2' => [48, 39, 'glyphicons_206_ok_2@2x'],
'remove_2_normal' => [18, 18, 'glyphicons_207_remove_2'],
'remove_2_x2' => [37, 38, 'glyphicons_207_remove_2@2x'],
'cart_out_normal' => [26, 25, 'glyphicons_208_cart_out'],
'cart_out_x2' => [50, 50, 'glyphicons_208_cart_out@2x'],
'cart_in_normal' => [26, 24, 'glyphicons_209_cart_in'],
'cart_in_x2' => [50, 49, 'glyphicons_209_cart_in@2x'],
'left_arrow_normal' => [20, 18, 'glyphicons_210_left_arrow'],
'left_arrow_x2' => [40, 34, 'glyphicons_210_left_arrow@2x'],
'right_arrow_normal' => [20, 18, 'glyphicons_211_right_arrow'],
'right_arrow_x2' => [40, 34, 'glyphicons_211_right_arrow@2x'],
'down_arrow_normal' => [18, 20, 'glyphicons_212_down_arrow'],
'down_arrow_x2' => [34, 40, 'glyphicons_212_down_arrow@2x'],
'up_arrow_normal' => [18, 20, 'glyphicons_213_up_arrow'],
'up_arrow_x2' => [34, 40, 'glyphicons_213_up_arrow@2x'],
'resize_small_normal' => [24, 24, 'glyphicons_214_resize_small'],
'resize_small_x2' => [48, 48, 'glyphicons_214_resize_small@2x'],
'resize_full_normal' => [24, 24, 'glyphicons_215_resize_full'],
'resize_full_x2' => [48, 48, 'glyphicons_215_resize_full@2x'],
'circle_arrow_left_normal' => [26, 26, 'glyphicons_216_circle_arrow_left'],
'circle_arrow_left_x2' => [50, 50, 'glyphicons_216_circle_arrow_left@2x'],
'circle_arrow_right_normal' => [26, 26, 'glyphicons_217_circle_arrow_right'],
'circle_arrow_right_x2' => [50, 50, 'glyphicons_217_circle_arrow_right@2x'],
'circle_arrow_right_2_normal' => [26, 26, 'glyphicons_218_circle_arrow_right'],
'circle_arrow_right_2_x2' => [50, 50, 'glyphicons_218_circle_arrow_right@2x'],
'circle_arrow_right_2_normal' => [26, 26, 'glyphicons_219_circle_arrow_right'],
'circle_arrow_right_2_x2' => [50, 50, 'glyphicons_219_circle_arrow_right@2x'],
'play_button_normal' => [26, 26, 'glyphicons_220_play_button'],
'play_button_x2' => [50, 50, 'glyphicons_220_play_button@2x'],
'unshare_normal' => [24, 18, 'glyphicons_221_unshare'],
'unshare_x2' => [46, 34, 'glyphicons_221_unshare@2x'],
'share_normal' => [24, 18, 'glyphicons_222_share'],
'share_x2' => [46, 34, 'glyphicons_222_share@2x'],
'thin_right_arrow_normal' => [15, 22, 'glyphicons_223_thin_right_arrow'],
'thin_right_arrow_x2' => [28, 44, 'glyphicons_223_thin_right_arrow@2x'],
'thin_arrow_left_normal' => [15, 22, 'glyphicons_224_thin_arrow_left'],
'thin_arrow_left_x2' => [28, 44, 'glyphicons_224_thin_arrow_left@2x'],
'bluetooth_normal' => [14, 24, 'glyphicons_225_bluetooth'],
'bluetooth_x2' => [29, 50, 'glyphicons_225_bluetooth@2x'],
'euro_normal' => [22, 23, 'glyphicons_226_euro'],
'euro_x2' => [43, 47, 'glyphicons_226_euro@2x'],
'usd_normal' => [17, 26, 'glyphicons_227_usd'],
'usd_x2' => [34, 52, 'glyphicons_227_usd@2x'],
'bp_normal' => [17, 24, 'glyphicons_228_bp'],
'bp_x2' => [33, 46, 'glyphicons_228_bp@2x'],
'retweet_2_normal' => [33, 21, 'glyphicons_229_retweet_2'],
'retweet_2_x2' => [65, 42, 'glyphicons_229_retweet_2@2x'],
'moon_normal' => [22, 25, 'glyphicons_230_moon'],
'moon_x2' => [43, 48, 'glyphicons_230_moon@2x'],
'sun_normal' => [24, 24, 'glyphicons_231_sun'],
'sun_x2' => [48, 48, 'glyphicons_231_sun@2x'],
'cloud_normal' => [27, 17, 'glyphicons_232_cloud'],
'cloud_x2' => [55, 34, 'glyphicons_232_cloud@2x'],
'direction_normal' => [26, 26, 'glyphicons_233_direction'],
'direction_x2' => [51, 51, 'glyphicons_233_direction@2x'],
'brush_normal' => [25, 23, 'glyphicons_234_brush'],
'brush_x2' => [50, 45, 'glyphicons_234_brush@2x'],
'pen_normal' => [24, 24, 'glyphicons_235_pen'],
'pen_x2' => [47, 47, 'glyphicons_235_pen@2x'],
'zoom_in_normal' => [25, 25, 'glyphicons_236_zoom_in'],
'zoom_in_x2' => [48, 48, 'glyphicons_236_zoom_in@2x'],
'zoom_out_normal' => [25, 25, 'glyphicons_237_zoom_out'],
'zoom_out_x2' => [48, 48, 'glyphicons_237_zoom_out@2x'],
'pin_normal' => [10, 25, 'glyphicons_238_pin'],
'pin_x2' => [20, 50, 'glyphicons_238_pin@2x'],
'riflescope_normal' => [25, 25, 'glyphicons_239_riflescope'],
'riflescope_x2' => [51, 50, 'glyphicons_239_riflescope@2x'],
'rotation_lock_normal' => [27, 24, 'glyphicons_240_rotation_lock'],
'rotation_lock_x2' => [54, 48, 'glyphicons_240_rotation_lock@2x'],
'flash_normal' => [14, 25, 'glyphicons_241_flash'],
'flash_x2' => [27, 49, 'glyphicons_241_flash@2x'],
'google_maps_normal' => [15, 24, 'glyphicons_242_google_maps'],
'google_maps_x2' => [30, 49, 'glyphicons_242_google_maps@2x'],
'anchor_normal' => [24, 25, 'glyphicons_243_anchor'],
'anchor_x2' => [48, 49, 'glyphicons_243_anchor@2x'],
'conversation_normal' => [25, 18, 'glyphicons_244_conversation'],
'conversation_x2' => [52, 37, 'glyphicons_244_conversation@2x'],
'chat_normal' => [24, 19, 'glyphicons_245_chat'],
'chat_x2' => [49, 39, 'glyphicons_245_chat@2x'],
'male_normal' => [22, 22, 'glyphicons_246_male'],
'male_x2' => [44, 44, 'glyphicons_246_male@2x'],
'female_normal' => [16, 27, 'glyphicons_247_female'],
'female_x2' => [31, 53, 'glyphicons_247_female@2x'],
'asterisk_normal' => [20, 20, 'glyphicons_248_asterisk'],
'asterisk_x2' => [40, 40, 'glyphicons_248_asterisk@2x'],
'divide_normal' => [18, 16, 'glyphicons_249_divide'],
'divide_x2' => [36, 32, 'glyphicons_249_divide@2x'],
'snorkel_diving_normal' => [27, 25, 'glyphicons_250_snorkel_diving'],
'snorkel_diving_x2' => [55, 50, 'glyphicons_250_snorkel_diving@2x'],
'scuba_diving_normal' => [27, 24, 'glyphicons_251_scuba_diving'],
'scuba_diving_x2' => [55, 48, 'glyphicons_251_scuba_diving@2x'],
'oxygen_bottle_normal' => [22, 27, 'glyphicons_252_oxygen_bottle'],
'oxygen_bottle_x2' => [44, 55, 'glyphicons_252_oxygen_bottle@2x'],
'fins_normal' => [31, 27, 'glyphicons_253_fins'],
'fins_x2' => [62, 53, 'glyphicons_253_fins@2x'],
'fishes_normal' => [28, 30, 'glyphicons_254_fishes'],
'fishes_x2' => [57, 60, 'glyphicons_254_fishes@2x'],
'boat_normal' => [24, 24, 'glyphicons_255_boat'],
'boat_x2' => [47, 48, 'glyphicons_255_boat@2x'],
'delete_point_normal' => [26, 17, 'glyphicons_256_delete_point'],
'delete_point_x2' => [51, 34, 'glyphicons_256_delete_point@2x'],
'sheriffs_-star_normal' => [24, 26, 'glyphicons_257_sheriffs_-star'],
'sheriffs_-star_x2' => [49, 53, 'glyphicons_257_sheriffs_-star@2x'],
'qrcode_normal' => [24, 24, 'glyphicons_258_qrcode'],
'qrcode_x2' => [48, 48, 'glyphicons_258_qrcode@2x'],
'barcode_normal' => [24, 24, 'glyphicons_259_barcode'],
'barcode_x2' => [48, 48, 'glyphicons_259_barcode@2x'],
'pool_normal' => [24, 24, 'glyphicons_260_pool'],
'pool_x2' => [48, 48, 'glyphicons_260_pool@2x'],
'buoy_normal' => [24, 24, 'glyphicons_261_buoy'],
'buoy_x2' => [48, 49, 'glyphicons_261_buoy@2x'],
'spade_normal' => [24, 24, 'glyphicons_262_spade'],
'spade_x2' => [49, 48, 'glyphicons_262_spade@2x'],
'bank_normal' => [24, 24, 'glyphicons_263_bank'],
'bank_x2' => [49, 48, 'glyphicons_263_bank@2x'],
'vcard_normal' => [22, 24, 'glyphicons_264_vcard'],
'vcard_x2' => [44, 48, 'glyphicons_264_vcard@2x'],
'electrical_plug_normal' => [18, 25, 'glyphicons_265_electrical_plug'],
'electrical_plug_x2' => [37, 51, 'glyphicons_265_electrical_plug@2x'],
'flag_normal' => [21, 26, 'glyphicons_266_flag'],
'flag_x2' => [42, 51, 'glyphicons_266_flag@2x'],
'credit_card_normal' => [26, 19, 'glyphicons_267_credit_card'],
'credit_card_x2' => [52, 38, 'glyphicons_267_credit_card@2x'],
'keyboard_wireless_normal' => [27, 19, 'glyphicons_268_keyboard_wireless'],
'keyboard_wireless_x2' => [54, 38, 'glyphicons_268_keyboard_wireless@2x'],
'keyboard_wired_normal' => [27, 25, 'glyphicons_269_keyboard_wired'],
'keyboard_wired_x2' => [54, 50, 'glyphicons_269_keyboard_wired@2x'],
'shield_normal' => [22, 24, 'glyphicons_270_shield'],
'shield_x2' => [44, 49, 'glyphicons_270_shield@2x'],
'ring_normal' => [21, 24, 'glyphicons_271_ring'],
'ring_x2' => [41, 49, 'glyphicons_271_ring@2x'],
'cake_normal' => [22, 24, 'glyphicons_272_cake'],
'cake_x2' => [45, 49, 'glyphicons_272_cake@2x'],
'drink_normal' => [23, 24, 'glyphicons_273_drink'],
'drink_x2' => [46, 48, 'glyphicons_273_drink@2x'],
'beer_normal' => [23, 24, 'glyphicons_274_beer'],
'beer_x2' => [46, 48, 'glyphicons_274_beer@2x'],
'fast_food_normal' => [28, 24, 'glyphicons_275_fast_food'],
'fast_food_x2' => [56, 48, 'glyphicons_275_fast_food@2x'],
'cutlery_normal' => [13, 24, 'glyphicons_276_cutlery'],
'cutlery_x2' => [27, 48, 'glyphicons_276_cutlery@2x'],
'pizza_normal' => [26, 29, 'glyphicons_277_pizza'],
'pizza_x2' => [50, 58, 'glyphicons_277_pizza@2x'],
'birthday_cake_normal' => [26, 29, 'glyphicons_278_birthday_cake'],
'birthday_cake_x2' => [52, 58, 'glyphicons_278_birthday_cake@2x'],
'tablet_normal' => [25, 25, 'glyphicons_279_tablet'],
'tablet_x2' => [50, 50, 'glyphicons_279_tablet@2x'],
'settings_normal' => [24, 24, 'glyphicons_280_settings'],
'settings_x2' => [49, 50, 'glyphicons_280_settings@2x'],
'bullets_normal' => [27, 23, 'glyphicons_281_bullets'],
'bullets_x2' => [53, 46, 'glyphicons_281_bullets@2x'],
'cardio_normal' => [25, 26, 'glyphicons_282_cardio'],
'cardio_x2' => [51, 51, 'glyphicons_282_cardio@2x'],
't-shirt_normal' => [28, 23, 'glyphicons_283_t-shirt'],
't-shirt_x2' => [56, 47, 'glyphicons_283_t-shirt@2x'],
'pants_normal' => [19, 24, 'glyphicons_284_pants'],
'pants_x2' => [39, 48, 'glyphicons_284_pants@2x'],
'sweater_normal' => [29, 24, 'glyphicons_285_sweater'],
'sweater_x2' => [59, 48, 'glyphicons_285_sweater@2x'],
'fabric_normal' => [27, 22, 'glyphicons_286_fabric'],
'fabric_x2' => [53, 43, 'glyphicons_286_fabric@2x'],
'leather_normal' => [23, 24, 'glyphicons_287_leather'],
'leather_x2' => [47, 47, 'glyphicons_287_leather@2x'],
'scissors_normal' => [24, 27, 'glyphicons_288_scissors'],
'scissors_x2' => [45, 55, 'glyphicons_288_scissors@2x'],
'podium_normal' => [28, 21, 'glyphicons_289_podium'],
'podium_x2' => [56, 42, 'glyphicons_289_podium@2x'],
'skull_normal' => [22, 24, 'glyphicons_290_skull'],
'skull_x2' => [41, 49, 'glyphicons_290_skull@2x'],
'celebration_normal' => [24, 25, 'glyphicons_291_celebration'],
'celebration_x2' => [48, 50, 'glyphicons_291_celebration@2x'],
'tea_kettle_normal' => [26, 23, 'glyphicons_292_tea_kettle'],
'tea_kettle_x2' => [52, 47, 'glyphicons_292_tea_kettle@2x'],
'french_press_normal' => [23, 25, 'glyphicons_293_french_press'],
'french_press_x2' => [46, 50, 'glyphicons_293_french_press@2x'],
'coffe_cup_normal' => [25, 19, 'glyphicons_294_coffe_cup'],
'coffe_cup_x2' => [50, 38, 'glyphicons_294_coffe_cup@2x'],
'pot_normal' => [27, 22, 'glyphicons_295_pot'],
'pot_x2' => [55, 44, 'glyphicons_295_pot@2x'],
'grater_normal' => [18, 24, 'glyphicons_296_grater'],
'grater_x2' => [36, 48, 'glyphicons_296_grater@2x'],
'kettle_normal' => [23, 24, 'glyphicons_297_kettle'],
'kettle_x2' => [46, 48, 'glyphicons_297_kettle@2x'],
'hospital_normal' => [24, 24, 'glyphicons_298_hospital'],
'hospital_x2' => [48, 48, 'glyphicons_298_hospital@2x'],
'hospital_h_normal' => [24, 24, 'glyphicons_299_hospital_h'],
'hospital_h_x2' => [48, 48, 'glyphicons_299_hospital_h@2x'],
'microphone_normal' => [17, 24, 'glyphicons_300_microphone'],
'microphone_x2' => [35, 51, 'glyphicons_300_microphone@2x'],
'webcam_normal' => [19, 24, 'glyphicons_301_webcam'],
'webcam_x2' => [36, 47, 'glyphicons_301_webcam@2x'],
'temple_christianity_church_normal' => [24, 25, 'glyphicons_302_temple_christianity_church'],
'temple_christianity_church_x2' => [48, 50, 'glyphicons_302_temple_christianity_church@2x'],
'temple_islam_normal' => [25, 24, 'glyphicons_303_temple_islam'],
'temple_islam_x2' => [51, 49, 'glyphicons_303_temple_islam@2x'],
'temple_hindu_normal' => [24, 24, 'glyphicons_304_temple_hindu'],
'temple_hindu_x2' => [48, 48, 'glyphicons_304_temple_hindu@2x'],
'temple_buddhist_normal' => [28, 22, 'glyphicons_305_temple_buddhist'],
'temple_buddhist_x2' => [56, 44, 'glyphicons_305_temple_buddhist@2x'],
'electrical_socket_eu_normal' => [23, 23, 'glyphicons_306_electrical_socket_eu'],
'electrical_socket_eu_x2' => [46, 46, 'glyphicons_306_electrical_socket_eu@2x'],
'electrical_socket_us_normal' => [23, 23, 'glyphicons_307_electrical_socket_us'],
'electrical_socket_us_x2' => [46, 46, 'glyphicons_307_electrical_socket_us@2x'],
'bomb_normal' => [27, 26, 'glyphicons_308_bomb'],
'bomb_x2' => [53, 51, 'glyphicons_308_bomb@2x'],
'comments_normal' => [24, 23, 'glyphicons_309_comments'],
'comments_x2' => [48, 46, 'glyphicons_309_comments@2x'],
'flower_normal' => [19, 25, 'glyphicons_310_flower'],
'flower_x2' => [39, 50, 'glyphicons_310_flower@2x'],
'baseball_normal' => [25, 26, 'glyphicons_311_baseball'],
'baseball_x2' => [49, 50, 'glyphicons_311_baseball@2x'],
'rugby_normal' => [23, 24, 'glyphicons_312_rugby'],
'rugby_x2' => [47, 47, 'glyphicons_312_rugby@2x'],
'ax_normal' => [27, 25, 'glyphicons_313_ax'],
'ax_x2' => [53, 48, 'glyphicons_313_ax@2x'],
'table_tennis_normal' => [24, 24, 'glyphicons_314_table_tennis'],
'table_tennis_x2' => [46, 48, 'glyphicons_314_table_tennis@2x'],
'bowling_normal' => [23, 24, 'glyphicons_315_bowling'],
'bowling_x2' => [46, 46, 'glyphicons_315_bowling@2x'],
'tree_conifer_normal' => [21, 24, 'glyphicons_316_tree_conifer'],
'tree_conifer_x2' => [43, 49, 'glyphicons_316_tree_conifer@2x'],
'tree_deciduous_normal' => [20, 25, 'glyphicons_317_tree_deciduous'],
'tree_deciduous_x2' => [41, 51, 'glyphicons_317_tree_deciduous@2x'],
'more-items_normal' => [21, 24, 'glyphicons_318_more-items'],
'more-items_x2' => [43, 48, 'glyphicons_318_more-items@2x'],
'sort_normal' => [25, 25, 'glyphicons_319_sort'],
'sort_x2' => [51, 50, 'glyphicons_319_sort@2x'],
'facebook_normal' => [24, 24, 'glyphicons_320_facebook'],
'facebook_x2' => [48, 48, 'glyphicons_320_facebook@2x'],
'twitter_t_normal' => [24, 24, 'glyphicons_321_twitter_t'],
'twitter_t_x2' => [48, 48, 'glyphicons_321_twitter_t@2x'],
'twitter_normal' => [24, 24, 'glyphicons_322_twitter'],
'twitter_x2' => [48, 48, 'glyphicons_322_twitter@2x'],
'buzz_normal' => [24, 24, 'glyphicons_323_buzz'],
'buzz_x2' => [48, 48, 'glyphicons_323_buzz@2x'],
'vimeo_normal' => [24, 24, 'glyphicons_324_vimeo'],
'vimeo_x2' => [48, 48, 'glyphicons_324_vimeo@2x'],
'flickr_normal' => [24, 24, 'glyphicons_325_flickr'],
'flickr_x2' => [48, 48, 'glyphicons_325_flickr@2x'],
'last_fm_normal' => [24, 24, 'glyphicons_326_last_fm'],
'last_fm_x2' => [48, 48, 'glyphicons_326_last_fm@2x'],
'rss_normal' => [24, 24, 'glyphicons_327_rss'],
'rss_x2' => [48, 48, 'glyphicons_327_rss@2x'],
'skype_normal' => [24, 24, 'glyphicons_328_skype'],
'skype_x2' => [48, 48, 'glyphicons_328_skype@2x'],
'e-mail_normal' => [24, 24, 'glyphicons_329_e-mail'],
'e-mail_x2' => [48, 48, 'glyphicons_329_e-mail@2x'],
'instapaper_normal' => [24, 24, 'glyphicons_330_instapaper'],
'instapaper_x2' => [48, 48, 'glyphicons_330_instapaper@2x'],
'evernote_normal' => [24, 24, 'glyphicons_331_evernote'],
'evernote_x2' => [48, 48, 'glyphicons_331_evernote@2x'],
'xing_normal' => [24, 24, 'glyphicons_332_xing'],
'xing_x2' => [48, 48, 'glyphicons_332_xing@2x'],
'zootool_normal' => [24, 24, 'glyphicons_333_zootool'],
'zootool_x2' => [48, 48, 'glyphicons_333_zootool@2x'],
'dribbble_normal' => [24, 24, 'glyphicons_334_dribbble'],
'dribbble_x2' => [48, 48, 'glyphicons_334_dribbble@2x'],
'deviantart_normal' => [24, 24, 'glyphicons_335_deviantart'],
'deviantart_x2' => [48, 48, 'glyphicons_335_deviantart@2x'],
'read_it_later_normal' => [24, 24, 'glyphicons_336_read_it_later'],
'read_it_later_x2' => [48, 48, 'glyphicons_336_read_it_later@2x'],
'linked_in_normal' => [24, 24, 'glyphicons_337_linked_in'],
'linked_in_x2' => [48, 48, 'glyphicons_337_linked_in@2x'],
'forrst_normal' => [24, 24, 'glyphicons_338_forrst'],
'forrst_x2' => [48, 48, 'glyphicons_338_forrst@2x'],
'pinboard_normal' => [24, 24, 'glyphicons_339_pinboard'],
'pinboard_x2' => [48, 48, 'glyphicons_339_pinboard@2x'],
'behance_normal' => [24, 24, 'glyphicons_340_behance'],
'behance_x2' => [48, 48, 'glyphicons_340_behance@2x'],
'github_normal' => [24, 24, 'glyphicons_341_github'],
'github_x2' => [48, 48, 'glyphicons_341_github@2x'],
'youtube_normal' => [24, 24, 'glyphicons_342_youtube'],
'youtube_x2' => [48, 48, 'glyphicons_342_youtube@2x'],
'skitch_normal' => [24, 24, 'glyphicons_343_skitch'],
'skitch_x2' => [48, 48, 'glyphicons_343_skitch@2x'],
'4square_normal' => [24, 24, 'glyphicons_344_4square'],
'4square_x2' => [48, 48, 'glyphicons_344_4square@2x'],
'quora_normal' => [24, 24, 'glyphicons_345_quora'],
'quora_x2' => [48, 48, 'glyphicons_345_quora@2x'],
'google_plus_normal' => [24, 24, 'glyphicons_346_google_plus'],
'google_plus_x2' => [48, 48, 'glyphicons_346_google_plus@2x'],
'spootify_normal' => [24, 24, 'glyphicons_347_spootify'],
'spootify_x2' => [48, 48, 'glyphicons_347_spootify@2x'],
'stumbleupon_normal' => [24, 24, 'glyphicons_348_stumbleupon'],
'stumbleupon_x2' => [48, 48, 'glyphicons_348_stumbleupon@2x'],
'readability_normal' => [24, 24, 'glyphicons_349_readability'],
'readability_x2' => [48, 48, 'glyphicons_349_readability@2x'],
'glass_halfling' => [12, 12, 'glyphicons_halflings_000_glass'],
'music_halfling' => [11, 12, 'glyphicons_halflings_001_music'],
'search_halfling' => [13, 13, 'glyphicons_halflings_002_search'],
'envelope_halfling' => [12, 10, 'glyphicons_halflings_003_envelope'],
'heart_halfling' => [13, 11, 'glyphicons_halflings_004_heart'],
'star_halfling' => [13, 12, 'glyphicons_halflings_005_star'],
'star_empty_halfling' => [13, 12, 'glyphicons_halflings_006_star_empty'],
'user_halfling' => [12, 12, 'glyphicons_halflings_007_user'],
'film_halfling' => [12, 11, 'glyphicons_halflings_008_film'],
'show_big_thumbnails_halfling' => [11, 11, 'glyphicons_halflings_009_show_big_thumbnails'],
'show_thumbnails_halfling' => [11, 11, 'glyphicons_halflings_010_show_thumbnails'],
'show_thumbnails_with_lines_halfling' => [12, 11, 'glyphicons_halflings_011_show_thumbnails_with_lines'],
'ok_halfling' => [13, 11, 'glyphicons_halflings_012_ok'],
'remove_halfling' => [10, 10, 'glyphicons_halflings_013_remove'],
'zoom_in_halfling' => [13, 13, 'glyphicons_halflings_014_zoom_in'],
'zoom_out_halfling' => [13, 13, 'glyphicons_halflings_015_zoom_out'],
'off_halfling' => [12, 12, 'glyphicons_halflings_016_off'],
'signal_halfling' => [11, 12, 'glyphicons_halflings_017_signal'],
'cogwheel_halfling' => [12, 12, 'glyphicons_halflings_018_cogwheel'],
'bin_halfling' => [11, 13, 'glyphicons_halflings_019_bin'],
'home_halfling' => [13, 13, 'glyphicons_halflings_020_home'],
'file_halfling' => [ 9, 12, 'glyphicons_halflings_021_file'],
'time_halfling' => [12, 12, 'glyphicons_halflings_022_time'],
'road_halfling' => [14, 12, 'glyphicons_halflings_023_road'],
'download_halfling' => [11, 12, 'glyphicons_halflings_024_download'],
'download_2_halfling' => [12, 12, 'glyphicons_halflings_025_download'],
'upload_halfling' => [12, 12, 'glyphicons_halflings_026_upload'],
'inbox_halfling' => [12, 12, 'glyphicons_halflings_027_inbox'],
'circle_play_halfling' => [12, 12, 'glyphicons_halflings_028_circle_play'],
'repeat_halfling' => [12, 12, 'glyphicons_halflings_029_repeat'],
'refresh_halfling' => [12, 12, 'glyphicons_halflings_030_refresh'],
'list_halfling' => [11, 12, 'glyphicons_halflings_031_list'],
'lock_halfling' => [11, 12, 'glyphicons_halflings_032_lock'],
'flag_halfling' => [10, 11, 'glyphicons_halflings_033_flag'],
'headphones_halfling' => [12, 12, 'glyphicons_halflings_034_headphones'],
'volume_off_halfling' => [12, 8, 'glyphicons_halflings_035_volume_off'],
'volume_down_halfling' => [ 9, 8, 'glyphicons_halflings_036_volume_down'],
'volume_up_halfling' => [12, 10, 'glyphicons_halflings_037_volume_up'],
'qrcode_halfling' => [12, 12, 'glyphicons_halflings_038_qrcode'],
'barcode_halfling' => [12, 12, 'glyphicons_halflings_039_barcode'],
'tag_halfling' => [12, 12, 'glyphicons_halflings_040_tag'],
'tags_halfling' => [15, 12, 'glyphicons_halflings_041_tags'],
'book_halfling' => [10, 12, 'glyphicons_halflings_042_book'],
'bookmark_halfling' => [ 9, 13, 'glyphicons_halflings_043_bookmark'],
'print_halfling' => [12, 12, 'glyphicons_halflings_044_print'],
'camera_halfling' => [12, 9, 'glyphicons_halflings_045_camera'],
'font_halfling' => [12, 12, 'glyphicons_halflings_046_font'],
'bold_halfling' => [ 9, 12, 'glyphicons_halflings_047_bold'],
'italic_halfling' => [ 7, 12, 'glyphicons_halflings_048_italic'],
'text_height_halfling' => [14, 12, 'glyphicons_halflings_049_text_height'],
'text_width_halfling' => [12, 13, 'glyphicons_halflings_050_text_width'],
'align_left_halfling' => [12, 11, 'glyphicons_halflings_051_align_left'],
'align_center_halfling' => [12, 11, 'glyphicons_halflings_052_align_center'],
'align_right_halfling' => [12, 11, 'glyphicons_halflings_053_align_right'],
'justify_halfling' => [12, 11, 'glyphicons_halflings_054_justify'],
'list_2_halfling' => [12, 11, 'glyphicons_halflings_055_list'],
'left_indent_halfling' => [13, 11, 'glyphicons_halflings_056_left_indent'],
'right_indent_halfling' => [13, 11, 'glyphicons_halflings_057_right_indent'],
'facetime_video_halfling' => [12, 8, 'glyphicons_halflings_058_facetime_video'],
'picture_halfling' => [12, 11, 'glyphicons_halflings_059_picture'],
'pencil_halfling' => [13, 14, 'glyphicons_halflings_060_pencil'],
'map_marker_halfling' => [ 9, 12, 'glyphicons_halflings_061_map_marker'],
'adjust_halfling' => [12, 12, 'glyphicons_halflings_062_adjust'],
'tint_halfling' => [ 9, 13, 'glyphicons_halflings_063_tint'],
'edit_halfling' => [13, 12, 'glyphicons_halflings_064_edit'],
'share_halfling' => [12, 11, 'glyphicons_halflings_065_share'],
'check_halfling' => [12, 11, 'glyphicons_halflings_066_check'],
'move_halfling' => [12, 12, 'glyphicons_halflings_067_move'],
'step_backward_halfling' => [ 7, 11, 'glyphicons_halflings_068_step_backward'],
'fast_backward_halfling' => [12, 11, 'glyphicons_halflings_069_fast_backward'],
'backward_halfling' => [11, 11, 'glyphicons_halflings_070_backward'],
'play_halfling' => [ 9, 11, 'glyphicons_halflings_071_play'],
'pause_halfling' => [ 7, 9, 'glyphicons_halflings_072_pause'],
'stop_halfling' => [ 9, 9, 'glyphicons_halflings_073_stop'],
'forward_halfling' => [11, 11, 'glyphicons_halflings_074_forward'],
'fast_forward_halfling' => [12, 11, 'glyphicons_halflings_075_fast_forward'],
'step_forward_halfling' => [ 7, 11, 'glyphicons_halflings_076_step_forward'],
'eject_halfling' => [11, 9, 'glyphicons_halflings_077_eject'],
'thin_left_arrow_halfling' => [ 8, 12, 'glyphicons_halflings_078_thin_left_arrow'],
'thin_right_arrow_halfling' => [ 8, 12, 'glyphicons_halflings_079_thin_right_arrow'],
'circle_plus_halfling' => [12, 12, 'glyphicons_halflings_080_circle_plus'],
'circle_minus_halfling' => [12, 12, 'glyphicons_halflings_081_circle_minus'],
'circle_remove_halfling' => [12, 12, 'glyphicons_halflings_082_circle_remove'],
'circle_ok_halfling' => [12, 12, 'glyphicons_halflings_083_circle_ok'],
'circle_question_mark_halfling' => [12, 12, 'glyphicons_halflings_084_circle_question_mark'],
'circle_info_halfling' => [12, 12, 'glyphicons_halflings_085_circle_info'],
'remove_2_halfling' => [12, 12, 'glyphicons_halflings_086_remove'],
'ok_2_halfling' => [12, 12, 'glyphicons_halflings_087_ok'],
'ban_halfling' => [12, 12, 'glyphicons_halflings_088_ban'],
'screenshot_halfling' => [12, 12, 'glyphicons_halflings_089_screenshot'],
'left_arrow_halfling' => [12, 10, 'glyphicons_halflings_090_left_arrow'],
'right_arrow_halfling' => [12, 10, 'glyphicons_halflings_091_right_arrow'],
'up_arrow_halfling' => [ 9, 12, 'glyphicons_halflings_092_up_arrow'],
'down_arrow_halfling' => [ 9, 12, 'glyphicons_halflings_093_down_arrow'],
'share_2_halfling' => [12, 10, 'glyphicons_halflings_094_share'],
'resize_full_halfling' => [12, 12, 'glyphicons_halflings_095_resize_full'],
'resize_small_halfling' => [12, 12, 'glyphicons_halflings_096_resize_small'],
'plus_halfling' => [11, 11, 'glyphicons_halflings_097_plus'],
'minus_halfling' => [ 9, 3, 'glyphicons_halflings_098_minus'],
'asterisk_halfling' => [10, 10, 'glyphicons_halflings_099_asterisk'],
'circle_exclamation_mark_halfling' => [12, 12, 'glyphicons_halflings_100_circle_exclamation_mark'],
'road_2_halfling' => [14, 12, 'glyphicons_halflings_101_road'],
'leaf_halfling' => [12, 13, 'glyphicons_halflings_102_leaf'],
'fire_halfling' => [11, 13, 'glyphicons_halflings_103_fire'],
'eye_open_halfling' => [14, 10, 'glyphicons_halflings_104_eye_open'],
'eye_close_halfling' => [14, 12, 'glyphicons_halflings_105_eye_close'],
'warning_sign_halfling' => [16, 12, 'glyphicons_halflings_106_warning_sign'],
'plane_halfling' => [11, 12, 'glyphicons_halflings_107_plane'],
'calendar_halfling' => [11, 12, 'glyphicons_halflings_108_calendar'],
'random_halfling' => [14, 12, 'glyphicons_halflings_109_random'],
'comments_halfling' => [12, 11, 'glyphicons_halflings_110_comments'],
'magnet_halfling' => [10, 12, 'glyphicons_halflings_111_magnet'],
'thin_top_arrow_halfling' => [12, 8, 'glyphicons_halflings_112_thin_top_arrow'],
'thin_bottom_arrow_halfling' => [12, 8, 'glyphicons_halflings_113_thin_bottom_arrow'],
'retweet_halfling' => [16, 9, 'glyphicons_halflings_114_retweet'],
'shopping_cart_halfling' => [12, 12, 'glyphicons_halflings_115_shopping_cart'],
'folder_halfling' => [12, 11, 'glyphicons_halflings_116_folder'],
'folder_open_halfling' => [15, 11, 'glyphicons_halflings_117_folder_open'],
'resize_vertically_halfling' => [ 6, 12, 'glyphicons_halflings_118_resize_vertically'],
'resize_horizontally_halfling' => [12, 6, 'glyphicons_halflings_119_resize_horizontally']
}
end
module GlyphiconsHelper
include Glyphicons
# options:
# :variant = :normal, :halfling, :x2
def glyphicon(name, options = {})
variant = (options.delete(:variant).presence || 'normal').to_s
width, height, filename = GLYPHICONS["#{name}_#{variant}"]
divisor = variant == 'normal' ? 1.5 : 1
image_tag(
"glyphicons/#{filename}.png",
options.merge(:size => "#{(width.to_f/divisor).round}x#{(height.to_f/divisor).round}", :class => ['glyphicon', options.delete(:class)].compact.join(" "))
)
end
def link_to_glyphicon(name, *args)
options = args.last.is_a?(Hash) ? args.last.dup : {}
if options[:class].present?
options[:class] += " glyphicon"
else
options[:class] = "glyphicon"
end
variant = options.delete(:variant) || :normal
args[args.length - 1] = options if args.last.is_a?(Hash)
link_to(glyphicon(name, :variant => variant), *args)
end
end
@dux
Copy link

dux commented Mar 30, 2012

where is the file with icons? hint: the png one
you can add path in comment

@calvincorreli
Copy link
Author

You gotta buy them from http://glyphicons.com/.

//Lars

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment