Ejemplo n.º 1
0
        private string GetValue(FontNameId id)
        {
            FontNameRecord record = GetRecord(id, 3);

            if (record != null)
            {
                return(record.Value);
            }
            return(null);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the record.
 /// </summary>
 /// <param name="id">The id.</param>
 /// <returns></returns>
 public FontNameRecord GetRecord(FontNameId nameId, int platformId)
 {
     foreach (FontNameRecord record in this.records)
     {
         if (record.NameId == (ushort)nameId && record.PlatformId == platformId)
         {
             return(record);
         }
     }
     return(null);
 }