/// <summary> /// Initializes a new instance of the <see cref="Fixed26Dot6"/> struct. /// </summary> /// <param name="form">form</param>/// /// <param name="value">A floating point value.</param> public Fixed26Dot6(LongForm form, float value) { this.form = form; if (form == LongForm.Long4) { this.value8 = 0; this.value = (FT_F26Dot6_4)(value * 64); } else { this.value = 0; this.value8 = (FT_F26Dot6_8)(value * 64); } }
/// <summary> /// Initializes a new instance of the <see cref="Fixed26Dot6"/> struct. /// </summary> /// <param name="form">form</param> /// <param name="value">An integer value.</param> public Fixed26Dot6(LongForm form, int value) { this.form = form; if (form == LongForm.Long4) { this.value8 = 0; this.value = value << 6; } else { this.value = 0; this.value8 = value << 6; } }
static extern FT_Error FT_Set_Char_Size_8( FT_Face face, FT_F26Dot6_8 char_width, FT_F26Dot6_8 char_height, FT_UInt horz_resolution, FT_UInt vert_resolution);