We have a WPF application in which we have used the Roboto font, but when the user is typing the hyphen(-) in the textbox it is displayed as the box.It is also reflected in all the windows.
Please find the sample code in which the issue also exists:
MainWindow.xaml
<Grid>
<Grid Margin="10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Label FontFamily="{StaticResource RobotoLight}">Incident-Title:</Label>
<TextBox FontFamily="{StaticResource RobotoMedium}" Grid.Column="1" Margin="0,0,0,10" />
<Label FontFamily="{StaticResource RobotoNormal}" Grid.Row="1">Email-ID:</Label>
<TextBox Grid.Row="1" FontFamily="Arial" Grid.Column="1" Margin="0,0,0,10" />
<Label FontFamily="Agency FB" Grid.Row="2">Feedback:</Label>
<TextBox FontFamily="BELL MT" Grid.Row="2" Grid.Column="1" AcceptsReturn="True" />
</Grid>
</Grid>
App.xaml
<Application.Resources>
<FontFamily x:Key="RobotoNormal">pack://application:,,,/Fonts/#Roboto Normal</FontFamily>
<FontFamily x:Key="RobotoLight">pack://application:,,,/Fonts/#Roboto Light</FontFamily>
<FontFamily x:Key="RobotoMedium">pack://application:,,,/Fonts#Roboto Medium</FontFamily>
</Application.Resources>
If I type - in the first text box, it is displayed like the box.
Note: The issue occurs only in the Windows machine which is having the Windows 7 os.
We have found that the Roboto font is not installed on the machine, but the issues occur even after installing the fonts manually also.
The hyphen character is working fine in the google chrome and word application on the same user machine.