Commit a57b12c0 authored by Oleg Korshul's avatar Oleg Korshul

fonts without os2 table

parent 6841985c
...@@ -393,7 +393,7 @@ function LoadFontFile(library, stream_index, name, faceindex, fontManager) ...@@ -393,7 +393,7 @@ function LoadFontFile(library, stream_index, name, faceindex, fontManager)
font.m_lLineHeight = face.height; font.m_lLineHeight = face.height;
// flag for use always typo (os2 spec) // 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) if (fontManager.IsCellMode)
bIsUseTypeAttack = false; 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