Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it appropriate to use "Wingdings" fonts in a Windows Forms or WPF app?

I have a WPF control, that has a list of "Investors", and in the right column of the list, a "Delete" button.

I could either waste some time making an image of an "x" in photoshop. Or, I could just use Wingdings font and set the content to "Õ" (which makes a cool looking delete button).

Is this appropriate? My thinking is... while not every font family is on every computer, I'm pretty sure that it's safe to say that if you're running my WPF Windows Forms program, then you have Wingdings.

What do you think? Please try to give statistics (not just feelings) on the matter. Should I worry about font size? etc.

like image 526
Timothy Khouri Avatar asked Oct 31 '08 13:10

Timothy Khouri


People also ask

What is the Wingdings font used for?

Wingdings is a series of dingbat fonts that render letters as a variety of symbols. They were originally developed in 1990 by Microsoft by combining glyphs from Lucida Icons, Arrows, and Stars licensed from Charles Bigelow and Kris Holmes.

Can we use WPF in Windows form application?

Add a WPF control to a Windows Form Your new WPF control is ready for use on the form. Windows Forms uses the ElementHost control to host WPF content. To add a WPF control to a Windows Form: Open Form1 in the Windows Forms Designer.

Is Wingdings a real font?

Wingdings, the iconic font composed by… well, icons; became widely popular for being included in many Microsoft Word versions in the '90s is quite intriguing. It has even been the subject of some conspiracy theories.

Are Wingdings copyrighted?

Like any other fonts, Wingdings, Dingbats and other glyph fonts can't be copyrighted unless they're created or altered uniquely by designers.


3 Answers

Honestly, if you're using WPF, it's probably just as easy to use a path to make an 'x' shape:

    <Style x:Key="DeleteButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
                        <Path Name="Circle" Data="F1 M 0 7.5 A 7.5 7.5 0 1 1 15 7.5 A 7.5 7.5 0 1 1 0 7.5"/>
                        <Path Fill="White" Data="F1 M 7.5 6 L 10.5,3 12,4.5 9,7.5 12,10.5 10.5,12 7.5,9 4.5,12 3,10.5 6,7.5 3,4.5 4.5,3 Z"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Fill" TargetName="Circle" Value="SlateGray"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="False">
                            <Setter Property="Fill" TargetName="Circle" Value="DarkGray"/>
                        </Trigger>
                        <DataTrigger Binding="{Binding}" Value="{x:Null}">
                            <Setter Property="Visibility" Value="Hidden"/>
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ToolTip" Value="Delete This Item"/>
    </Style>

Just apply this style to a button, and you get an instant "delete" button!

like image 85
Bob King Avatar answered Sep 21 '22 13:09

Bob King


I think you should be fine, especially with WPF. I don't know if Wingdings font in particular is on every Windows machine (probably yes), but I do know characters from Marlett font are used in Win XP UI.

like image 37
dbkk Avatar answered Sep 19 '22 13:09

dbkk


Assuming you can display Unicode, there are plenty of glyphs in many fonts for what you're trying to do.

For example, this is a unicode character in (probably) Arial: ✖

I took the character reference from http://www1.tip.nl/~t876506/UnicodeDisplay.html but I'm sure there are better places to find out than this

like image 36
Gareth Avatar answered Sep 21 '22 13:09

Gareth