[justify] Debug output
This commit is contained in:
parent
b937edfb14
commit
93252c6fc3
|
@ -373,6 +373,10 @@ struct hb_no_trace_t {
|
||||||
#define HB_DEBUG_FT (HB_DEBUG+0)
|
#define HB_DEBUG_FT (HB_DEBUG+0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HB_DEBUG_JUSTIFY
|
||||||
|
#define HB_DEBUG_JUSTIFY (HB_DEBUG+0)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef HB_DEBUG_OBJECT
|
#ifndef HB_DEBUG_OBJECT
|
||||||
#define HB_DEBUG_OBJECT (HB_DEBUG+0)
|
#define HB_DEBUG_OBJECT (HB_DEBUG+0)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
* Google Author(s): Behdad Esfahbod
|
* Google Author(s): Behdad Esfahbod
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define HB_DEBUG_JUSTIFY 1
|
||||||
|
|
||||||
#include "hb.hh"
|
#include "hb.hh"
|
||||||
|
|
||||||
#include "hb-shaper.hh"
|
#include "hb-shaper.hh"
|
||||||
|
@ -345,11 +347,14 @@ hb_shape_justify (hb_font_t *font,
|
||||||
shaper_list)))
|
shaper_list)))
|
||||||
{
|
{
|
||||||
failed = true;
|
failed = true;
|
||||||
return min_target_width;
|
return (double) min_target_width;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf ("%g\n", x);
|
double w = buffer_width (buffer);
|
||||||
return buffer_width (buffer);
|
DEBUG_MSG (JUSTIFY, nullptr, "Trying '%c%c%c%c' axis parameter %f. Width %g. Target: min %g max %g",
|
||||||
|
HB_UNTAG (tag), x, w,
|
||||||
|
(double) min_target_width, (double) max_target_width);
|
||||||
|
return w;
|
||||||
};
|
};
|
||||||
|
|
||||||
double y = 0;
|
double y = 0;
|
||||||
|
|
Loading…
Reference in New Issue