Пример #1
0
 public virtual IDictionary <int, int[]> GetActiveCmap()
 {
     OpenTypeParser.CmapTable cmaps = fontParser.GetCmapTable();
     if (cmaps.cmapExt != null)
     {
         return(cmaps.cmapExt);
     }
     else
     {
         if (!cmaps.fontSpecific && cmaps.cmap31 != null)
         {
             return(cmaps.cmap31);
         }
         else
         {
             if (cmaps.fontSpecific && cmaps.cmap10 != null)
             {
                 return(cmaps.cmap10);
             }
             else
             {
                 if (cmaps.cmap31 != null)
                 {
                     return(cmaps.cmap31);
                 }
                 else
                 {
                     return(cmaps.cmap10);
                 }
             }
         }
     }
 }