parent
fb067390e4
commit
c98bb4cf9c
|
@ -335,7 +335,7 @@ hb_shape_justify (hb_font_t *font,
|
||||||
shaper_list))
|
shaper_list))
|
||||||
return false;
|
return false;
|
||||||
yb = (double) buffer_advance (buffer);
|
yb = (double) buffer_advance (buffer);
|
||||||
if (yb <= 0)
|
if (yb <= (double) max_target_advance)
|
||||||
{
|
{
|
||||||
*advance = (float) yb;
|
*advance = (float) yb;
|
||||||
return true;
|
return true;
|
||||||
|
@ -354,7 +354,7 @@ hb_shape_justify (hb_font_t *font,
|
||||||
shaper_list))
|
shaper_list))
|
||||||
return false;
|
return false;
|
||||||
ya = (double) buffer_advance (buffer);
|
ya = (double) buffer_advance (buffer);
|
||||||
if (ya >= 0)
|
if (ya >= (double) min_target_advance)
|
||||||
{
|
{
|
||||||
*advance = (float) ya;
|
*advance = (float) ya;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue