@@ -343,8 +343,9 @@ static inline MCGFont MCFontStructToMCGFont(MCFontStruct *p_font)
343343
344344 MCGFont t_font;
345345 t_font . size = t_android_font -> size;
346- t_font . ascent = p_font -> ascent;
347- t_font . descent = p_font -> descent;
346+ t_font . m_ascent = p_font -> m_ascent;
347+ t_font . m_descent = p_font -> m_descent;
348+ t_font . m_leading = p_font -> m_leading;
348349 t_font . fid = t_android_font -> typeface;
349350 t_font . ideal = false ;
350351 return t_font;
@@ -364,8 +365,9 @@ static inline MCGFont MCFontStructToMCGFont(MCFontStruct *p_font)
364365 }
365366
366367 t_font . size = p_font -> size;
367- t_font . ascent = p_font -> ascent;
368- t_font . descent = p_font -> descent;
368+ t_font . m_ascent = p_font -> m_ascent;
369+ t_font . m_descent = p_font -> m_descent;
370+ t_font . m_leading = p_font -> m_leading;
369371 t_font . fid = static_cast <MCNewFontStruct *>(p_font) -> description;
370372 t_font . ideal = false ;
371373 return t_font;
@@ -383,8 +385,9 @@ static inline MCGFont MCFontStructToMCGFont(MCFontStruct *p_font)
383385 }
384386
385387 t_font . size = p_font -> size;
386- t_font . ascent = p_font -> ascent;
387- t_font . descent = p_font -> descent;
388+ t_font . m_ascent = p_font -> m_ascent;
389+ t_font . m_descent = p_font -> m_descent;
390+ t_font . m_leading = p_font -> m_leading;
388391 t_font . fid = p_font -> fid;
389392 t_font . ideal = p_font -> printer == True;
390393 return t_font;
@@ -396,8 +399,9 @@ static inline MCGFont MCFontStructToMCGFont(MCFontStruct *p_font)
396399{
397400 MCGFont t_font;
398401 t_font . size = p_font -> size;
399- t_font . ascent = p_font -> ascent;
400- t_font . descent = p_font -> descent;
402+ t_font . m_ascent = p_font -> m_ascent;
403+ t_font . m_descent = p_font -> m_descent;
404+ t_font . m_leading = p_font -> m_leading;
401405 t_font . fid = p_font -> fid;
402406 t_font . ideal = false ;
403407 return t_font;
@@ -412,8 +416,9 @@ MCFontStructToMCGFont(MCFontStruct *p_font)
412416 MCMemoryClear (&t_font, sizeof (t_font));
413417
414418 t_font . size = p_font -> size;
415- t_font . ascent = p_font -> ascent;
416- t_font . descent = p_font -> descent;
419+ t_font . m_ascent = p_font -> m_ascent;
420+ t_font . m_descent = p_font -> m_descent;
421+ t_font . m_leading = p_font -> m_leading;
417422 t_font . fid = p_font -> fid;
418423 t_font . ideal = false ;
419424
0 commit comments