Lines Matching refs:pMetric

899 void Os2SalGraphics::GetFontMetric( ImplFontMetricData* pMetric, int nFallbackLevel )  in GetFontMetric()  argument
914 pMetric->maName = UniString( aOS2Metric.szFamilyname, gsl_getSystemTextEncoding()); in GetFontMetric()
915 pMetric->maStyleName = ImpStyleNameToSal( aOS2Metric.szFamilyname, in GetFontMetric()
920 pMetric->meFamily = ImplFamilyToSal( aOS2Metric.panose.bFamilyType); in GetFontMetric()
921 pMetric->mbSymbolFlag = (aOS2Metric.usCodePage == SYMBOL_CHARSET); in GetFontMetric()
922 pMetric->meWeight = ImplWeightToSal( aOS2Metric.usWeightClass ); in GetFontMetric()
923 pMetric->mePitch = ImplLogPitchToSal( aOS2Metric.fsType ); in GetFontMetric()
924pMetric->meItalic = (aOS2Metric.fsSelection & FM_SEL_ITALIC) ? ITALIC_NORMAL : ITALIC_NONE; in GetFontMetric()
925 pMetric->mnSlant = 0; in GetFontMetric()
928 pMetric->mbDevice = (aOS2Metric.fsDefn & FM_DEFN_GENERIC) ? FALSE : TRUE; in GetFontMetric()
929 pMetric->mbScalableFont = (aOS2Metric.fsDefn & FM_DEFN_OUTLINE) ? true : false; in GetFontMetric()
930 if( pMetric->mbScalableFont ) in GetFontMetric()
934 pMetric->mbKernableFont = (aOS2Metric.sKerningPairs > 0); in GetFontMetric()
939 pMetric->mnOrientation = 0; in GetFontMetric()
941 pMetric->mbKernableFont = false; in GetFontMetric()
947 pMetric->mnWidth = aOS2Metric.lEmInc; in GetFontMetric()
951 pMetric->mnWidth = aOS2Metric.lAveCharWidth; in GetFontMetric()
952 pMetric->mnOrientation = 0; in GetFontMetric()
954 pMetric->mnIntLeading = aOS2Metric.lInternalLeading; in GetFontMetric()
955 pMetric->mnExtLeading = aOS2Metric.lExternalLeading; in GetFontMetric()
956 pMetric->mnAscent = aOS2Metric.lMaxAscender; in GetFontMetric()
957 pMetric->mnDescent = aOS2Metric.lMaxDescender; in GetFontMetric()
964 pMetric->mnIntLeading += pMetric->mnExtLeading; in GetFontMetric()
969 const long nHalfTmpExtLeading = pMetric->mnExtLeading / 2; in GetFontMetric()
970 const long nOtherHalfTmpExtLeading = pMetric->mnExtLeading - nHalfTmpExtLeading; in GetFontMetric()
974 long nCJKExtLeading = static_cast<long>(0.30 * (pMetric->mnAscent + pMetric->mnDescent)); in GetFontMetric()
975 nCJKExtLeading -= pMetric->mnExtLeading; in GetFontMetric()
976 pMetric->mnExtLeading = (nCJKExtLeading > 0) ? nCJKExtLeading : 0; in GetFontMetric()
978 pMetric->mnAscent += nHalfTmpExtLeading; in GetFontMetric()
979 pMetric->mnDescent += nOtherHalfTmpExtLeading; in GetFontMetric()