Godot: Font preview in import dialog file browser

Created on 19 Jun 2014  Â·  13Comments  Â·  Source: godotengine/godot

Font preview in import dialog file browser, like in Blender. Would be handy :)

confirmed feature proposal editor usability

Most helpful comment

What about this way as Photoshop does.

image

All 13 comments

I was thinking of adding previews to the file browser that run in a thread,
will probably do after stable release.

On Wed, Jun 18, 2014 at 7:09 PM, needhash [email protected] wrote:

Font preview in import dialog file browser, like in Blender. Would be
handy :)

—
Reply to this email directly or view it on GitHub
https://github.com/okamstudio/godot/issues/530.

Preview has been implemented in the file browser, we just need to check if it works for font importing.

I confirm there is no font preview in the import dialog file browser as of bd736e5.

To clarify: there is proper font preview in the "Import Font" dialog after a font has been selected in the file browser. But this issue asks for (AFAIU) TTF/OTF font preview directly in the file browser, to be able to pick the right font more easily.

This brings the question to know what should be displayed, as we can't possibly display all letters of the latin alphabet on the thumbnail; maybe the letters 'Az' or something, written with the font?

As a reference, this is how Windows displays fonts in the explorer:

explorer_2016-07-19_20-27-16

What about this way as Photoshop does.

image

Since the editor uses FreeType, it should be relatively easy to generate such previous. Since it's for {Editor,}FileDialog, I guess the Windows style as shown by @vnen above makes the most sense.

What do you think about this style of displaying the font samples?

I found the default file icon to be a little distracting, so I hid it for fonts. It's a work in progress, so I'd really appreciate any ideas or feedback!

screen shot 2018-04-15 at 8 30 19 pm
screen shot 2018-04-15 at 8 30 36 pm

@flashyincceo looks good enough for me

Is it possible to have more character in the preview when the icon is large?

@zaniar I appreciate the suggestion, but I'm not quite sure I understand the idea. Is it to have a longer font sample "Abcdef" vs. "Abc" for those fonts that don't completely fill the width of the icon?

@flashyincceo I think having more character will provide more useful preview of font. Not just "Abc" or "Abcdef", but A to Z, or more. That way we can see differences between fonts in a glance more clearly.

I personally think Abg is enough, let's you see a capital letter, an ascent, and a descent. This is not like the font selector of a word processor, it's just so you can distinguish the few fonts you might have in your project.

Was this page helpful?
0 / 5 - 0 ratings