.net form windows and Vista font selection

I am creating a .net application with windows. I’m thinking about the following problem: if I specify the fonts in my application that are available only in Vista and Office 07, what happens when the application tries to run on a machine without them?

I believe that the system will not be able to return to the font of this family, since they are initialized internally using strings (for example, "Segoe UI").

What is the best way to follow so that I can still specify the fonts through the form designer and not worry about things like this violation?

+3
source share
6 answers

, System.Drawing.SystemFonts.MessageBoxFont, Segoe UI, Tahoma, MS Sans Serif . --- WPF , Windows Forms - . , , , , .

, , , reset Segoe ( Vista).

, WPF:).

+2

, Tahoma XP Segoe UI Vista . Segoe UI XP, -, .

+2

, , .

, , - . Microsoft "Microsoft Virtual PC". , , "" . , , . winforms, !

, ! JFV

+1

, : . - , , . ( ) , , .

, , EULA. Office 2007 , ( ) Segoe UI: Vista.

, XP vs Vista. XP, Tahoma Trebuchet MS. Vista, .

+1

First check the EULA in both Office and Vista to make sure the fonts are not sacred, but you can include these fonts in your installer package and install them.

0
source

By disallowing redistribution of fonts in your installer, you may have to first check for the specified fonts. If they are not there, ask the application to select an alternative font from the static list of alternative options.

0
source

Source: https://habr.com/ru/post/1698986/


All Articles