Exemple #1
0
 internal static bool IsFontInUse(WindowsFont wf)
 {
     if (wf != null)
     {
         for (int i = 0; i < activeDeviceContexts.Count; i++)
         {
             DeviceContext context = activeDeviceContexts[i] as DeviceContext;
             if ((context != null) && ((context.ActiveFont == wf) || context.IsFontOnContextStack(wf)))
             {
                 return(true);
             }
         }
     }
     return(false);
 }