iced_fonts 0.3.0

Include fonts via feature flags in your Iced project!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
#![allow(unused_must_use)]

use iced::{
    Center, Element, Length, Task, font,
    widget::{column, row},
};
use iced_fonts::{NERD_FONT_BYTES, nerd::*};

pub fn main() -> iced::Result {
    iced::application(App::new, App::update, App::view)
        .title("nerd")
        .run()
}

#[derive(Default)]
struct App {}

#[derive(Debug, Clone, Copy)]
enum Message {
    FontLoaded(Result<(), font::Error>),
}

impl App {
    fn new() -> (Self, Task<Message>) {
        (
            Self {},
            Task::batch(vec![font::load(NERD_FONT_BYTES).map(Message::FontLoaded)]),
        )
    }

    fn update(&mut self, message: Message) {
        match message {
            Message::FontLoaded(result) => {
                dbg!(result);
            }
        }
    }

    fn view(&self) -> Element<Message> {
        column![
            row![
                iec_power(),
                iec_toggle_power(),
                iec_power_on(),
                iec_sleep_mode(),
                unitwosixthreezero(),
                oct_heart(),
                oct_zap(),
                unitwosevensixC(),
                unitwosevensixD(),
                unitwosevensixE(),
                unitwosevensixF(),
                unitwosevensevenzero(),
                unitwosevensevenone(),
                iec_power_off(),
                pom_clean_code(),
                pom_pomodoro_done(),
                pom_pomodoro_estimated(),
                pom_pomodoro_ticking(),
                pom_pomodoro_squashed(),
                pom_short_pause(),
                pom_long_pause(),
                pom_away(),
                pom_pair_programming(),
                pom_internal_interruption(),
                pom_external_interruption(),
                pl_branch(),
                pl_line_number(),
                pl_readonly(),
            ]
            .padding(12)
            .spacing(20)
            .width(Length::Fill)
            .align_y(Center),
            row![
                ple_current_column(),
                pl_left_hard_divider(),
                pl_left_soft_divider(),
                pl_right_hard_divider(),
                pl_right_soft_divider(),
                ple_right_half_circle_thick(),
                ple_right_half_circle_thin(),
                ple_left_half_circle_thick(),
                ple_left_half_circle_thin(),
                ple_lower_left_triangle(),
                ple_backslash_separator(),
                ple_lower_right_triangle(),
                ple_forwardslash_separator(),
                ple_upper_left_triangle(),
                ple_forwardslash_separator_redundant(),
                ple_upper_right_triangle(),
                ple_backslash_separator_redundant(),
                ple_flame_thick(),
                ple_flame_thin(),
                ple_flame_thick_mirrored(),
                ple_flame_thin_mirrored(),
                ple_pixelated_squares_small(),
                ple_pixelated_squares_small_mirrored(),
                ple_pixelated_squares_big(),
                ple_pixelated_squares_big_mirrored(),
                ple_ice_waveform(),
                ple_ice_waveform_mirrored(),
                ple_honeycomb(),
            ]
            .padding(12)
            .spacing(20)
            .width(Length::Fill)
            .align_y(Center),
            row![
                ple_honeycomb_outline(),
                ple_lego_separator(),
                ple_lego_separator_thin(),
                ple_lego_block_facing(),
                ple_lego_block_sideways(),
                ple_trapezoid_top_bottom(),
                ple_trapezoid_top_bottom_mirrored(),
                ple_right_hard_divider_inverse(),
                ple_left_hard_divider_inverse(),
                fae_smaller(),
                fae_snowing(),
                fae_soda(),
                fae_sofa(),
                fae_soup(),
                fae_spermatozoon(),
                fae_spin_double(),
                fae_stomach(),
                fae_storm(),
                fae_telescope(),
                fae_thermometer(),
                fae_thermometer_high(),
                fae_thermometer_low(),
                fae_thin_close(),
                fae_toilet(),
                fae_tools(),
                fae_tooth(),
                fae_uterus(),
                fae_wthreec(),
            ]
            .padding(12)
            .spacing(20)
            .width(Length::Fill)
            .align_y(Center),
            row![
                fae_walking(),
                fae_virus(),
                fae_telegram_circle(),
                fae_slash(),
                fae_telegram(),
                fae_shirt(),
                fae_tacos(),
                fae_sushi(),
                fae_triangle_ruler(),
                fae_tree(),
                fae_sun_cloud(),
                fae_ruby_o(),
                fae_ruler(),
                fae_umbrella(),
                fae_medicine(),
                fae_microscope(),
                fae_milk_bottle(),
                fae_minimize(),
                fae_molecule(),
                fae_moon_cloud(),
                fae_mushroom(),
                fae_mustache(),
                fae_mysql(),
                fae_nintendo(),
                fae_palette_color(),
                fae_pi(),
                fae_pizza(),
                fae_planet(),
            ]
            .padding(12)
            .spacing(20)
            .width(Length::Fill)
            .align_y(Center),
            row![
                fae_plant(),
                fae_playstation(),
                fae_poison(),
                fae_popcorn(),
                fae_popsicle(),
                fae_pulse(),
                fae_python(),
                fae_quora_circle(),
                fae_quora_square(),
                fae_radioactive(),
                fae_raining(),
                fae_real_heart(),
                fae_refrigerator(),
                fae_restore(),
                fae_ring(),
                fae_ruby(),
                fae_fingerprint(),
                fae_floppy(),
                fae_footprint(),
                fae_freecodecamp(),
                fae_galaxy(),
                fae_galery(),
                fae_glass(),
                fae_google_drive(),
                fae_google_play(),
                fae_gps(),
                fae_grav(),
                fae_guitar(),
            ]
            .padding(12)
            .spacing(20)
            .width(Length::Fill)
            .align_y(Center),
            row![
                fae_gut(),
                fae_halter(),
                fae_hamburger(),
                fae_hat(),
                fae_hexagon(),
                fae_high_heel(),
                fae_hotdog(),
                fae_ice_cream(),
                fae_id_card(),
                fae_imdb(),
                fae_infinity(),
                fae_java(),
                fae_layers(),
                fae_lips(),
                fae_lipstick(),
                fae_liver(),
                fae_lung(),
                fae_makeup_brushes(),
                fae_maximize(),
                fae_wallet(),
                fae_chess_horse(),
                fae_chess_king(),
                fae_chess_pawn(),
                fae_chess_queen(),
                fae_chess_tower(),
                fae_cheese(),
                fae_chilli(),
                fae_chip(),
            ]
            .padding(12)
            .spacing(20)
            .width(Length::Fill)
            .align_y(Center),
            row![
                fae_cicling(),
                fae_cloud(),
                fae_cockroach(),
                fae_coffe_beans(),
                fae_coins(),
                fae_comb(),
                fae_comet(),
                fae_crown(),
                fae_cup_coffe(),
                fae_dice(),
                fae_disco(),
                fae_dna(),
                fae_donut(),
                fae_dress(),
                fae_drop(),
                fae_ello(),
                fae_envelope_open(),
                fae_envelope_open_o(),
                fae_equal(),
                fae_equal_bigger(),
                fae_feedly(),
                fae_file_export(),
                fae_file_import(),
                fae_wind(),
                fae_atom(),
                fae_bacteria(),
                fae_banana(),
                fae_bath(),
            ]
            .padding(12)
            .spacing(20)
            .width(Length::Fill)
            .align_y(Center),
            row![
                fae_bed(),
                fae_benzene(),
                fae_bigger(),
                fae_biohazard(),
                fae_blogger_circle(),
                fae_blogger_square(),
                fae_bones(),
                fae_book_open(),
                fae_book_open_o(),
                fae_brain(),
                fae_bread(),
                fae_butterfly(),
                fae_carot(),
                fae_cc_by(),
                fae_cc_cc(),
                fae_cc_nc(),
                fae_cc_nc_eu(),
                fae_cc_nc_jp(),
                fae_cc_nd(),
                fae_cc_remix(),
                fae_cc_sa(),
                fae_cc_share(),
                fae_cc_zero(),
                fae_checklist_o(),
                fae_cherry(),
                fae_chess_bishop(),
                fae_xbox(),
                fae_apple_fruit(),
            ]
            .padding(12)
            .spacing(20)
            .width(Length::Fill)
            .align_y(Center),
            row![
                fae_chicken_thigh(),
                fae_gift_card(),
                fae_injection(),
                fae_isle(),
                fae_lollipop(),
                fae_loyalty_card(),
                fae_meat(),
                fae_mountains(),
                fae_orange(),
                fae_peach(),
                fae_pear(),
                weather_day_cloudy_gusts(),
                weather_day_cloudy_windy(),
                weather_day_cloudy(),
                weather_day_fog(),
                weather_day_hail(),
                weather_day_lightning(),
                weather_day_rain_mix(),
                weather_day_rain_wind(),
                weather_day_rain(),
                weather_day_showers(),
                weather_day_snow(),
                weather_day_sprinkle(),
                weather_day_sunny_overcast(),
                weather_day_sunny(),
                weather_day_storm_showers(),
                weather_day_thunderstorm(),
                weather_cloudy_gusts(),
            ]
            .padding(12)
            .spacing(20)
            .width(Length::Fill)
            .align_y(Center),
            row![
                weather_cloudy_windy(),
                weather_cloudy(),
                weather_fog(),
                weather_hail(),
                weather_lightning(),
                weather_rain_mix(),
                weather_rain_wind(),
                weather_rain(),
                weather_showers(),
                weather_snow(),
                weather_sprinkle(),
                weather_storm_showers(),
                weather_thunderstorm(),
                weather_windy(),
                weather_night_alt_cloudy_gusts(),
                weather_night_alt_cloudy_windy(),
                weather_night_alt_hail(),
                weather_night_alt_lightning(),
                weather_night_alt_rain_mix(),
                weather_night_alt_rain_wind(),
                weather_night_alt_rain(),
                weather_night_alt_showers(),
                weather_night_alt_snow(),
                weather_night_alt_sprinkle(),
                weather_night_alt_storm_showers(),
                weather_night_alt_thunderstorm(),
                weather_night_clear(),
                weather_night_cloudy_gusts(),
            ]
            .padding(12)
            .spacing(20)
            .width(Length::Fill)
            .align_y(Center),
            row![
                weather_night_cloudy_windy(),
                weather_night_cloudy(),
                weather_night_hail(),
                weather_night_lightning(),
                weather_night_rain_mix(),
                weather_night_rain_wind(),
                weather_night_rain(),
                weather_night_showers(),
                weather_night_snow(),
                weather_night_sprinkle(),
                weather_night_storm_showers(),
                weather_night_thunderstorm(),
                weather_celsius(),
                weather_cloud_down(),
                weather_cloud_refresh(),
                weather_cloud_up(),
                weather_cloud(),
                weather_degrees(),
                weather_direction_down_left(),
                weather_direction_down(),
                weather_fahrenheit(),
                weather_horizon_alt(),
                weather_horizon(),
                weather_direction_left(),
                weather_aliens(),
                weather_night_fog(),
                weather_refresh_alt(),
                weather_refresh(),
            ]
            .padding(12)
            .spacing(20)
            .width(Length::Fill)
            .align_y(Center),
            row![
                weather_direction_right(),
                weather_raindrops(),
                weather_strong_wind(),
                weather_sunrise(),
                weather_sunset(),
                weather_thermometer_exterior(),
                weather_thermometer_internal(),
                weather_thermometer(),
                weather_tornado(),
                weather_direction_up_right(),
                weather_direction_up(),
                weather_wind_west(),
                weather_wind_south_west(),
                weather_wind_south_east(),
                weather_wind_south(),
                weather_wind_north_west(),
                weather_wind_north_east(),
                weather_wind_north(),
                weather_wind_east(),
                weather_smoke(),
                weather_dust(),
                weather_snow_wind(),
                weather_day_snow_wind(),
                weather_night_snow_wind(),
                weather_night_alt_snow_wind(),
                weather_day_sleet_storm(),
                weather_night_sleet_storm(),
                weather_night_alt_sleet_storm(),
            ]
            .padding(12)
            .spacing(20)
            .width(Length::Fill)
            .align_y(Center),
            row![
                weather_day_snow_thunderstorm(),
                weather_night_snow_thunderstorm(),
                weather_night_alt_snow_thunderstorm(),
                weather_solar_eclipse(),
                weather_lunar_eclipse(),
                weather_meteor(),
                weather_hot(),
                weather_hurricane(),
                weather_smog(),
                weather_alien(),
                weather_snowflake_cold(),
                weather_stars(),
                weather_raindrop(),
                weather_barometer(),
                weather_humidity(),
                weather_na(),
                weather_flood(),
                weather_day_cloudy_high(),
                weather_night_alt_cloudy_high(),
                weather_night_cloudy_high(),
                weather_night_alt_partly_cloudy(),
                weather_sandstorm(),
                weather_night_partly_cloudy(),
                weather_umbrella(),
                weather_day_windy(),
                weather_night_alt_cloudy(),
                weather_direction_up_left(),
                weather_direction_down_right(),
            ]
            .padding(12)
            .spacing(20)
            .width(Length::Fill)
            .align_y(Center),
            row![
                weather_time_onetwo(),
                weather_time_one(),
                weather_time_two(),
                weather_time_three(),
                weather_time_four(),
                weather_time_five(),
                weather_time_six(),
                weather_time_seven(),
                weather_time_eight(),
                weather_time_nine(),
                weather_time_onezero(),
                weather_time_oneone(),
                weather_moon_new(),
                weather_moon_waxing_crescent_one(),
                weather_moon_waxing_crescent_two(),
                weather_moon_waxing_crescent_three(),
                weather_moon_waxing_crescent_four(),
                weather_moon_waxing_crescent_five(),
                weather_moon_waxing_crescent_six(),
                weather_moon_first_quarter(),
                weather_moon_waxing_gibbous_one(),
                weather_moon_waxing_gibbous_two(),
                weather_moon_waxing_gibbous_three(),
                weather_moon_waxing_gibbous_four(),
                weather_moon_waxing_gibbous_five(),
                weather_moon_waxing_gibbous_six(),
                weather_moon_full(),
                weather_moon_waning_gibbous_one(),
            ]
            .padding(12)
            .spacing(20)
            .width(Length::Fill)
            .align_y(Center),
            row![
                weather_moon_waning_gibbous_two(),
                weather_moon_waning_gibbous_three(),
                weather_moon_waning_gibbous_four(),
                weather_moon_waning_gibbous_five(),
                weather_moon_waning_gibbous_six(),
                weather_moon_third_quarter(),
                weather_moon_waning_crescent_one(),
                weather_moon_waning_crescent_two(),
                weather_moon_waning_crescent_three(),
                weather_moon_waning_crescent_four(),
                weather_moon_waning_crescent_five(),
                weather_moon_waning_crescent_six(),
                weather_wind_direction(),
                weather_day_sleet(),
                weather_night_sleet(),
                weather_night_alt_sleet(),
                weather_sleet(),
                weather_day_haze(),
                weather_wind_beaufort_zero(),
                weather_wind_beaufort_one(),
                weather_wind_beaufort_two(),
                weather_wind_beaufort_three(),
                weather_wind_beaufort_four(),
                weather_wind_beaufort_five(),
                weather_wind_beaufort_six(),
                weather_wind_beaufort_seven(),
                weather_wind_beaufort_eight(),
                weather_wind_beaufort_nine(),
            ]
            .padding(12)
            .spacing(20)
            .width(Length::Fill)
            .align_y(Center),
            row![
                weather_wind_beaufort_onezero(),
                weather_wind_beaufort_oneone(),
                weather_wind_beaufort_onetwo(),
                weather_day_light_wind(),
                weather_tsunami(),
                weather_earthquake(),
                weather_fire(),
                weather_volcano(),
                weather_moonrise(),
                weather_moonset(),
                weather_train(),
                weather_small_craft_advisory(),
                weather_gale_warning(),
                weather_storm_warning(),
                weather_hurricane_warning(),
                weather_moon_alt_waxing_crescent_one(),
                weather_moon_alt_waxing_crescent_two(),
                weather_moon_alt_waxing_crescent_three(),
                weather_moon_alt_waxing_crescent_four(),
                weather_moon_alt_waxing_crescent_five(),
                weather_moon_alt_waxing_crescent_six(),
                weather_moon_alt_first_quarter(),
                weather_moon_alt_waxing_gibbous_one(),
                weather_moon_alt_waxing_gibbous_two(),
                weather_moon_alt_waxing_gibbous_three(),
                weather_moon_alt_waxing_gibbous_four(),
                weather_moon_alt_waxing_gibbous_five(),
                weather_moon_alt_waxing_gibbous_six(),
            ]
            .padding(12)
            .spacing(20)
            .width(Length::Fill)
            .align_y(Center),
            row![
                weather_moon_alt_full(),
                weather_moon_alt_waning_gibbous_one(),
                weather_moon_alt_waning_gibbous_two(),
                weather_moon_alt_waning_gibbous_three(),
                weather_moon_alt_waning_gibbous_four(),
                weather_moon_alt_waning_gibbous_five(),
                weather_moon_alt_waning_gibbous_six(),
                weather_moon_alt_third_quarter(),
                weather_moon_alt_waning_crescent_one(),
                weather_moon_alt_waning_crescent_two(),
                weather_moon_alt_waning_crescent_three(),
                weather_moon_alt_waning_crescent_four(),
                weather_moon_alt_waning_crescent_five(),
                weather_moon_alt_waning_crescent_six(),
                weather_moon_alt_new(),
                custom_folder_npm(),
                custom_folder_git_branch(),
                custom_folder_config(),
                custom_folder_github(),
                custom_folder_open(),
                custom_folder(),
                seti_stylus(),
                seti_project(),
                seti_play_arrow(),
                seti_sass(),
                seti_rails(),
                seti_ruby(),
                seti_python(),
            ]
            .padding(12)
            .spacing(20)
            .width(Length::Fill)
            .align_y(Center),
            row![
                seti_heroku(),
                seti_php(),
                seti_markdown(),
                seti_license(),
                seti_less(),
                seti_javascript(),
                seti_image(),
                seti_html(),
                seti_mustache(),
                seti_gulp(),
                seti_grunt(),
                custom_default(),
                seti_folder(),
                seti_css(),
                seti_config(),
                seti_npm_ignored(),
                seti_home(),
                seti_ejs(),
                seti_xml(),
                seti_bower(),
                seti_coffee(),
                seti_twig(),
                custom_cpp(),
                custom_c(),
                seti_haskell(),
                seti_lua(),
                indentation_line(),
                seti_karma(),
            ]
            .padding(12)
            .spacing(20)
            .width(Length::Fill)
            .align_y(Center),
        ]
        .into()
    }
}