Commit fd0a922d authored by Oleg Korshul's avatar Oleg Korshul Committed by GitHub

Merge pull request #34 from ONLYOFFICE/release/4.0.1

Release/4.0.1
parents 233a8715 a57b12c0
......@@ -393,7 +393,7 @@ function LoadFontFile(library, stream_index, name, faceindex, fontManager)
font.m_lLineHeight = face.height;
// flag for use always typo (os2 spec)
var bIsUseTypeAttack = ((face.os2.fsSelection & 128) == 128) ? true : false;
var bIsUseTypeAttack = (face.os2 && ((face.os2.fsSelection & 128) == 128)) ? true : false;
if (fontManager.IsCellMode)
bIsUseTypeAttack = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment