fluentui-system-icons icon indicating copy to clipboard operation
fluentui-system-icons copied to clipboard

Strange results when using Fluent System Icons in Word

Open Jay-o-Way opened this issue 3 years ago • 7 comments

Hi. Today Niels mentioned that Microsoft is again introducing new icons / a new font. I took a look in this repo and fount the TTF files. Installed them on my PC and fiddled around in Word (2010, in case that's relavant) using the Insert Symbol tool. The icons are shown in the tool window, but when inserted in the document, many icons are not drawn as they should be. Seems like it falls back to a couple of different fonts, like Times, Arial, SimSun... image

Also, in the Insert Symbol tool, there are sub-sections (visible in the top-right corner) that are based on older, normal fonts. They are not useful in an icon font like this. image

Jay-o-Way avatar Mar 23 '21 15:03 Jay-o-Way

A couple of actual Hebrew letters are included in the font. Is there a reason or is this a mistake? image

Jay-o-Way avatar Mar 23 '21 15:03 Jay-o-Way

Hello,

Apologies for the silence. The font here has very limited support and is currently only planned for use with Flutter projects.

That being said, when I installed it and just changed the font family in my version of word it worked. I didn't try to add it as a symbol but as a 'normal' glyph by copying the codepoint from FontBook and pasting it in the document (TextBox in this screenshot).

WordFluentIconFont

spencer-nelson avatar Apr 13 '21 21:04 spencer-nelson

That being said, when I installed it and just changed the font family in my version of word it worked. I didn't try to add it as a symbol but as a 'normal' glyph by copying the codepoint from FontBook and pasting it in the document (TextBox in this screenshot).

Thanks for the respons. Some icons do work as they should - a few examples marked in green in my initial screenshot. The cause of the problem is not clear to me though. Does anybody know? I'm guessing this font was created by changing an existing font step by step, rather than starting from scratch. I think starting from scratch would be a very smart thing to do though, since an icon font is so different from a text font.

To explain what I meant by "reverting to a different font" was that for some cases the icon is not shown. Then I select the char and check the the Font Selection box (in Word's ribbon) and there is a different font (Calibri, Times, Arial, SimSun, ....) and manually setting it to Fluent does not work.

Jay-o-Way avatar Apr 14 '21 14:04 Jay-o-Way

The font is created in the importer script, using icon-font-generator. If you would like to play with it to see how it all works you can run the script yourself. In particular note the generate:font-regular entry point as it is called from build:fonts. This will put fonts in an importer/dist folder that you can inspect. The font file itself is created fresh each run, but note that it takes codepoints from the fonts/FluentSystemIcons-xxx.json files.

I don't know the inner workings of the Word symbol picker, but I believe the 'reverting' you see is a common fall-back method used by rendering systems when a particular code point/glyph doesn't exist for the given font, where they fall back to the same code point in a system font.

spencer-nelson avatar Apr 14 '21 16:04 spencer-nelson

Honestly, I don't really need to work with this, so I don't need it to be perfect. For the same reason, I do not think I have the time or the will to investigate your suggestions (with all do respect) because that's all completely new to me. What I would like to see is that somebody recognizes the things I have mentioned - give a bit of explanation if possible - and (s)he knows how to fix/improve it.

Jay-o-Way avatar Apr 15 '21 19:04 Jay-o-Way

The font does not use the same unicode values as a normal text font, and is designed for use with web-browsers and App UI frameworks which can display glyphs by their unicode index value.

Word is not optimised for this AFAIU

mdtauk avatar Apr 15 '21 23:04 mdtauk

I guess this is not an issue?

Jay-o-Way avatar Jun 14 '22 09:06 Jay-o-Way

What's the verdict here?

Jay-o-Way avatar Feb 28 '23 17:02 Jay-o-Way

The intended use of the fonts built by the pipelines here is primarily for developer use, where codepoints are directly referenced, rather than in a more integrated typographic system like the Word picker/canvas. I've forwarded the thread on to some folks that work more closely with the picker and Office typography, in case it aligns with any of their concerns, but will close the thread as something we don't plan to address.

spencer-nelson avatar Feb 28 '23 18:02 spencer-nelson