Ticket #58552: otherFloat.patch
File otherFloat.patch, 606 bytes (added by ballapete (Peter "Pete" Dyballa), 5 years ago) |
---|
-
src/hb-coretext.
old new 54 54 * 55 55 * https://developer.apple.com/library/content/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Explained/Explained.html 56 56 */ 57 ptem *= 96.f / 72.f;57 ptem *= ((CGFloat)96.f) / ((CGFloat)72.f); 58 58 return (CGFloat) (ptem <= 0.f ? HB_CORETEXT_DEFAULT_FONT_SIZE : ptem); 59 59 } 60 60 static float 61 61 coretext_font_size_to_ptem (CGFloat size) 62 62 { 63 size *= 72. / 96.;63 size *= ((CGFloat)96.f) / ((CGFloat)72.f); 64 64 return size <= 0 ? 0 : size; 65 65 } 66 66