/// ------------------------------------------------------------------------------------ /// <summary> /// Computes the settings. /// </summary> /// <param name="normalStyle">The normal style.</param> /// <param name="ws">The HVO of the vernacular writing system.</param> /// ------------------------------------------------------------------------------------ private void ComputeSettings(UsfmStyEntry normalStyle, int ws) { FontInfo fontInfo = normalStyle.FontInfoForWs(ws); m_fontName = normalStyle.RealFontNameForWs(ws); m_fontSize = (fontInfo.m_fontSize.Value / 1000).ToString(); IWritingSystem wsObj = m_cache.ServiceLocator.WritingSystemManager.Get(ws); m_wsName = wsObj.DisplayLabel; m_RtoL = (wsObj.RightToLeftScript ? "T" : "F"); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Computes the settings. /// </summary> /// <param name="normalStyle">The normal style.</param> /// <param name="ws">The HVO of the vernacular writing system.</param> /// ------------------------------------------------------------------------------------ private void ComputeSettings(UsfmStyEntry normalStyle, int ws) { FontInfo fontInfo = normalStyle.FontInfoForWs(ws); m_fontName = normalStyle.RealFontNameForWs(ws); m_fontSize = (fontInfo.m_fontSize.Value / 1000).ToString(); LgWritingSystem lgws = new LgWritingSystem(m_cache, ws); m_wsName = lgws.Name.UserDefaultWritingSystem; m_RtoL = (lgws.RightToLeft ? "T" : "F"); }