question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Planned changes to Symbol enum & font

See original GitHub issue

Some updates/fixes coming to the Symbol enum and font. Primary goal here is to cut down on repetitive icons and icons without glyphs.

  • Several icons have incorrect glyphs, will be corrected

  • Symbols in the enum:

    • Favorite will removed. Star serves the same purpose
    • CodeFilled will be removed
    • Add CodeHTML value, code will map to braces (‘{ }’) and CodeHTML will map to (‘</>’)
    • MoreHorizontal will be removed in favor of just More.
    • Left, Down, and Right will be added (Up already exists), these icons are arrows pointing in their respective direction
    • Setting will be removed, use Settings (singular vs. plural)
  • Symbols marked as Obsolete Several symbols are marked as Obsolete as they didn’t have glyphs from Fluent UI System icons

image

Symbols in green will be added to the font & have Obsolete removed. Symbols in yellow and grey still don’t exist, but could probably be made manually in inkscape (or any vector editing app, mostly reusing the existing icons), need to figure out if the system that’s used to build the font would support this. Note that this is only an option at this point. Placeholder will be removed

  • Various Filled variants of icons will be removed. These all pertain to icons that are mostly lines, like Chevrons, arrows, etc. These aren’t truly filled anyway. The normal versions will remain, though

image

I believe most of these are placed in a special area in the font specifically for FluentAvalonia. If so, they will likely be removed from the font too.

Within the actual font, various icons that didn’t previously have glyphs, now do and will be added to the font image

Issue Analytics

  • State:closed
  • Created 6 months ago
  • Reactions:1
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
robloocommented, Mar 28, 2023

@amwx

I manually added an entry in the json file with the destination unicode point set to 0000 and it crashes on line 174 in FluentAvalonia.RebuildMappings (“invalid symbol enum icon detected”).

I fixed this issue. Basically, this is the first time the FluentAvalonia mappings have been re-built with existing, custom UnicodePoints already assigned. So it was missing the logic needed to detect the max UnicodePoint already used and then start from there (not start from 0xF8000).

Also keep in mind the rebuild process will re-sort the mappings by destination icon name. This is to keep things stable but in practice it means any mappings you add at the end will be moved once a name is assigned.

Finally, I updated the project to .NET 7.0 so you might need to install the new SDK.

1reaction
robloocommented, Mar 26, 2023

@amwx FluentAvalonia.json is ready for your changes now. Everything also should be able to build offline using local SVG files in the repo itself. This hopefully means everything is stable going forward and it will always build as it does now.

All icon mappings should be fixed (the 3 base windows symbol font mappings) then I copied those fixes into FluentAvalonia.json. So the “icons needing update” should be done already. The only thing you have to do is delete the FA-specific icons you no longer want in the font. ONLY delete the ones in the FA-specific Unicode range above 0xF8000 though. Any changes you make elsewhere will be overwritten the next time the mapping is rebuilt from the base SegoeFluent information.

Avalonia itself has issues so the mappings editor doesn’t always display correctly. There are several ListBox issues I noticed and also an issue with container recycling or images causing the display of incorrect glyphs even though the view model and mappings are correct. So be careful there – it might be the data is correct just Avalonia is messing it up in the UI.

Read more comments on GitHub >

github_iconTop Results From Across the Web

proposal:symbol enum · Issue #18408 · microsoft/TypeScript
I want symbol enum. syntax example: symbol enum Example{ X,Y,Z } ↓ var Example; ... kgtkr changed the title 【SUGGESTIONS】symbol enum ...
Read more >
Enums in Javascript with ES6
I'm rebuilding an old Java project in Javascript, and realized that there's no good way to do enums in JS. The best I...
Read more >
Enum.Font DOES NOT Identify New Roblox Fonts
The hardcoded font enum has been replaced with an asset ID based mechanism (similar to images, sounds, meshes) and new fonts are only...
Read more >
Segoe MDL2 Assets icons - Windows apps
This article lists and provides usage guidance for the glyphs that come with the Segoe MDL2 Assets font.
Read more >
Segoe Fluent Icons font - Windows apps
This article provides developer guidelines for using the Segoe Fluent Icons font and lists each icon along with its Unicode value and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found