Searched refs:font_scale (Results 1 – 2 of 2) sorted by relevance
271 float font_scale = font_size / (ascent - descent); in FPDFText_GetLooseCharBox() local275 rect->bottom = charinfo.m_Origin.y + descent * font_scale; in FPDFText_GetLooseCharBox()276 rect->top = charinfo.m_Origin.y + ascent * font_scale; in FPDFText_GetLooseCharBox()
2006 const float font_scale = stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels); in ImFontAtlasBuildWithStbTruetype() local2010 … const float ascent = ImFloor(unscaled_ascent * font_scale + ((unscaled_ascent > 0.0f) ? +1 : -1)); in ImFontAtlasBuildWithStbTruetype()2011 …const float descent = ImFloor(unscaled_descent * font_scale + ((unscaled_descent > 0.0f) ? +1 : -1… in ImFontAtlasBuildWithStbTruetype()3061 const float font_scale = draw_list->_Data->FontSize / font->FontSize; in RenderPixelEllipsis() local3062 pos.y += (float)(int)(font->DisplayOffset.y + font->Ascent * font_scale + 0.5f - 1.0f); in RenderPixelEllipsis()