예제 #1
0
파일: FontRecord.cs 프로젝트: okevin/chama
 /**
  * Clones all the font style information from another
  *  FontRecord, onto this one. This
  *  will then hold all the same font style options.
  */
 public void CloneStyleFrom(FontRecord source)
 {
     field_1_font_height         = source.field_1_font_height;
     field_2_attributes          = source.field_2_attributes;
     field_3_color_palette_index = source.field_3_color_palette_index;
     field_4_bold_weight         = source.field_4_bold_weight;
     field_5_base_sub_script     = source.field_5_base_sub_script;
     field_6_underline           = source.field_6_underline;
     field_7_family     = source.field_7_family;
     field_8_charset    = source.field_8_charset;
     field_9_zero       = source.field_9_zero;
     field_11_font_name = source.field_11_font_name;
 }
예제 #2
0
파일: FontRecord.cs 프로젝트: okevin/chama
 /**
  * Does this FontRecord have all the same font
  *  properties as the supplied FontRecord?
  * Note that {@link #equals(Object)} will check
  *  for exact objects, while this will check
  *  for exact contents, because normally the
  *  font record's position makes a big
  *  difference too.
  */
 public bool SameProperties(FontRecord other)
 {
     return
         (field_1_font_height == other.field_1_font_height &&
          field_2_attributes == other.field_2_attributes &&
          field_3_color_palette_index == other.field_3_color_palette_index &&
          field_4_bold_weight == other.field_4_bold_weight &&
          field_5_base_sub_script == other.field_5_base_sub_script &&
          field_6_underline == other.field_6_underline &&
          field_7_family == other.field_7_family &&
          field_8_charset == other.field_8_charset &&
          field_9_zero == other.field_9_zero &&
          field_11_font_name.Equals(other.field_11_font_name));
 }