첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
본 블로그는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 블로그 콘텐츠 향상을 위해 쓰여집니다.

728x90
반응형
728x170
using System;
using System.Windows;

FontWeightConverter converter = new FontWeightConverter();

string thinString       = converter.ConvertToString(FontWeights.Thin      );
string extraLightString = converter.ConvertToString(FontWeights.ExtraLight);
string ultraLightString = converter.ConvertToString(FontWeights.UltraLight);
string lightString      = converter.ConvertToString(FontWeights.Light     );
string normalString     = converter.ConvertToString(FontWeights.Normal    );
string regularString    = converter.ConvertToString(FontWeights.Regular   );
string mediumString     = converter.ConvertToString(FontWeights.Medium    );
string demiBoldString   = converter.ConvertToString(FontWeights.DemiBold  );
string semiBoldString   = converter.ConvertToString(FontWeights.SemiBold  );
string boldString       = converter.ConvertToString(FontWeights.Bold      );
string extraBoldString  = converter.ConvertToString(FontWeights.ExtraBold );
string ultraBoldString  = converter.ConvertToString(FontWeights.UltraBold );
string blackString      = converter.ConvertToString(FontWeights.Black     );
string heavyString      = converter.ConvertToString(FontWeights.Heavy     );
string extraBlackString = converter.ConvertToString(FontWeights.ExtraBlack);
string ultraBlackString = converter.ConvertToString(FontWeights.UltraBlack);

Console.WriteLine(thinString      );
Console.WriteLine(extraLightString);
Console.WriteLine(ultraLightString);
Console.WriteLine(lightString     );
Console.WriteLine(normalString    );
Console.WriteLine(regularString   );
Console.WriteLine(mediumString    );
Console.WriteLine(demiBoldString  );
Console.WriteLine(semiBoldString  );
Console.WriteLine(boldString      );
Console.WriteLine(extraBoldString );
Console.WriteLine(ultraBoldString );
Console.WriteLine(blackString     );
Console.WriteLine(heavyString     );
Console.WriteLine(extraBlackString);
Console.WriteLine(ultraBlackString);

Console.WriteLine();

FontWeight thinFontWeight       = (FontWeight)converter.ConvertFromString(thinString      );
FontWeight extraLightFontWeight = (FontWeight)converter.ConvertFromString(extraLightString);
FontWeight ultraLightFontWeight = (FontWeight)converter.ConvertFromString(ultraLightString);
FontWeight lightFontWeight      = (FontWeight)converter.ConvertFromString(lightString     );
FontWeight normalFontWeight     = (FontWeight)converter.ConvertFromString(normalString    );
FontWeight regularFontWeight    = (FontWeight)converter.ConvertFromString(regularString   );
FontWeight mediumFontWeight     = (FontWeight)converter.ConvertFromString(mediumString    );
FontWeight demiBoldFontWeight   = (FontWeight)converter.ConvertFromString(demiBoldString  );
FontWeight semiBoldFontWeight   = (FontWeight)converter.ConvertFromString(semiBoldString  );
FontWeight boldFontWeight       = (FontWeight)converter.ConvertFromString(boldString      );
FontWeight extraBoldFontWeight  = (FontWeight)converter.ConvertFromString(extraBoldString );
FontWeight ultraBoldFontWeight  = (FontWeight)converter.ConvertFromString(ultraBoldString );
FontWeight blackFontWeight      = (FontWeight)converter.ConvertFromString(blackString     );
FontWeight heavyFontWeight      = (FontWeight)converter.ConvertFromString(heavyString     );
FontWeight extraBlackFontWeight = (FontWeight)converter.ConvertFromString(extraBlackString);
FontWeight ultraBlackFontWeight = (FontWeight)converter.ConvertFromString(ultraBlackString);

Console.WriteLine(thinFontWeight      );
Console.WriteLine(extraLightFontWeight);
Console.WriteLine(ultraLightFontWeight);
Console.WriteLine(lightFontWeight     );
Console.WriteLine(normalFontWeight    );
Console.WriteLine(regularFontWeight   );
Console.WriteLine(mediumFontWeight    );
Console.WriteLine(demiBoldFontWeight  );
Console.WriteLine(semiBoldFontWeight  );
Console.WriteLine(boldFontWeight      );
Console.WriteLine(extraBoldFontWeight );
Console.WriteLine(ultraBoldFontWeight );
Console.WriteLine(blackFontWeight     );
Console.WriteLine(heavyFontWeight     );
Console.WriteLine(extraBlackFontWeight);
Console.WriteLine(ultraBlackFontWeight);
728x90
반응형
그리드형
Posted by 사용자 icodebroker
TAG , ,

댓글을 달아 주세요