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

728x90
반응형
728x170
FontStretchConverter converter = new FontStretchConverter();

string ultraCondensedString = converter.ConvertToString(FontStretches.UltraCondensed);
string extraCondensedString = converter.ConvertToString(FontStretches.ExtraCondensed);
string condensedString      = converter.ConvertToString(FontStretches.Condensed     );
string semiCondensedString  = converter.ConvertToString(FontStretches.SemiCondensed );
string normalString         = converter.ConvertToString(FontStretches.Normal        );
string mediumString         = converter.ConvertToString(FontStretches.Medium        );
string semiExpandedString   = converter.ConvertToString(FontStretches.SemiExpanded  );
string expandedString       = converter.ConvertToString(FontStretches.Expanded      );
string extraExpandedString  = converter.ConvertToString(FontStretches.ExtraExpanded );
string ultraExpandedString  = converter.ConvertToString(FontStretches.UltraExpanded );

Console.WriteLine(ultraCondensedString);
Console.WriteLine(extraCondensedString);
Console.WriteLine(condensedString     );
Console.WriteLine(semiCondensedString );
Console.WriteLine(normalString        );
Console.WriteLine(mediumString        );
Console.WriteLine(semiExpandedString  );
Console.WriteLine(expandedString      );
Console.WriteLine(extraExpandedString );
Console.WriteLine(ultraExpandedString );

Console.WriteLine();

FontStretch ultraCondensedFontStretch = (FontStretch)converter.ConvertFromString(ultraCondensedString);
FontStretch extraCondensedFontStretch = (FontStretch)converter.ConvertFromString(extraCondensedString);
FontStretch condensedFontStretch      = (FontStretch)converter.ConvertFromString(condensedString     );
FontStretch semiCondensedFontStretch  = (FontStretch)converter.ConvertFromString(semiCondensedString );
FontStretch normalFontStretch         = (FontStretch)converter.ConvertFromString(normalString        );
FontStretch mediumFontStretch         = (FontStretch)converter.ConvertFromString(mediumString        );
FontStretch semiExpandedFontStretch   = (FontStretch)converter.ConvertFromString(semiExpandedString  );
FontStretch expandedFontStretch       = (FontStretch)converter.ConvertFromString(expandedString      );
FontStretch extraExpandedFontStretch  = (FontStretch)converter.ConvertFromString(extraExpandedString );
FontStretch ultraExpandedFontStretch  = (FontStretch)converter.ConvertFromString(ultraExpandedString ); 

Console.WriteLine(ultraCondensedFontStretch);
Console.WriteLine(extraCondensedFontStretch);
Console.WriteLine(condensedFontStretch     );
Console.WriteLine(semiCondensedFontStretch );
Console.WriteLine(normalFontStretch        );
Console.WriteLine(mediumFontStretch        );
Console.WriteLine(semiExpandedFontStretch  );
Console.WriteLine(expandedFontStretch      );
Console.WriteLine(extraExpandedFontStretch );
Console.WriteLine(ultraExpandedFontStretch );
728x90
반응형
그리드형
Posted by 사용자 icodebroker
TAG , ,

댓글을 달아 주세요