2010-03-25 19:38:51 +00:00

31 lines
940 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using Microsoft.Win32;
namespace Volian.Svg.Library
{
//public static class FontFind
//{
// public static string FileName(string fontName)
// {
// string baseFont = string.Empty;
// Regex find = new Regex(fontName + @".* ?\(.*\)", RegexOptions.IgnoreCase);
// RegistryKey regKey = Registry.LocalMachine.CreateSubKey(@"Software\Microsoft\Windows NT\CurrentVersion\Fonts");
// string[] values = regKey.GetValueNames();
// baseFont = regKey.GetValue(values[0]).ToString();
// foreach (string valueName in regKey.GetValueNames())
// {
// if (find.IsMatch(valueName))
// return regKey.GetValue(valueName).ToString();
// }
// return baseFont;
// }
// public static string FullFileName(string fontName)
// {
// return @"c:\windows\fonts\" + FileName(fontName);
// }
//}
}