Home
last modified time | relevance | path

Searched refs:font_scale (Results 1 – 2 of 2) sorted by relevance

/external/pdfium/fpdfsdk/
Dfpdf_text.cpp271 float font_scale = font_size / (ascent - descent); in FPDFText_GetLooseCharBox() local
275 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()
/external/mesa3d/src/imgui/
Dimgui_draw.cpp2006 const float font_scale = stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels); in ImFontAtlasBuildWithStbTruetype() local
2010 … 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() local
3062 pos.y += (float)(int)(font->DisplayOffset.y + font->Ascent * font_scale + 0.5f - 1.0f); in RenderPixelEllipsis()