1

Topic: WPF. Fonts enumeration

2

Re: WPF. Fonts enumeration

3

Re: WPF. Fonts enumeration

Hello, karbofos42, you wrote: K> In WPF a bit other circuit goes. Arial - not a font, and font family. Arial Narrow - not separate something, and one of typeface Arial. Is at Arial typeface normal, semiboldface, Narrow, Black... K> Here an example : https://blogs.msdn.microsoft.com/text/2 … t-chooser/ I in course of these remarkable features But the user wants to see that shows WinWord. The Same Blend for VS shows the normal list which and is necessary to me But as they receive it

4

Re: WPF. Fonts enumeration

Hello, HotDog, you wrote: HD> But as they receive it Blend like managed. Climb in source codes Reflector th any. Probably, through EnumFontFamiliesEx receive. As it then lays down on WPF, unfortunately, I will not prompt.

5

Re: WPF. Fonts enumeration

6

Re: WPF. Fonts enumeration

Hello, HotDog, you wrote: MM>> Blend like managed. Climb in source codes Reflector th any. Probably, through EnumFontFamiliesEx receive. As it then lays down on WPF, unfortunately, I will not prompt. There can be to whom that it will be interesting as it becomes "on " that is in Blend. - We go in Path. Combine (Environment. GetEnvironmentVariable ("windir"), "Fonts") also it is received  all files there lying - In each found file we try to receive Typeface through Fonts. GetTypefaces (file) - At everyone found typeface it is received gdiName: typeface. TryGetGlyphTypeface () - At everyone found typeface we try to receive wpfName: fontFamily = new FontFamily (filePath + "#" + gdiName) if it did not turn out we are rolled away on gdiName - It is pushed in dictionary, Profit! On my scale  it receives 10  from 10 possible.