jdk/src/java.desktop/share/native/libfontmanager/harfbuzz/hb-private.hh
changeset 43232 8e39ad39979f
parent 40435 553eb1a50733
equal deleted inserted replaced
43231:4885b2a3898b 43232:8e39ad39979f
   687     fprintf (stderr, "(%0*lx) ", (unsigned int) (2 * sizeof (void *)), (unsigned long) obj);
   687     fprintf (stderr, "(%0*lx) ", (unsigned int) (2 * sizeof (void *)), (unsigned long) obj);
   688   else
   688   else
   689     fprintf (stderr, " %*s  ", (unsigned int) (2 * sizeof (void *)), "");
   689     fprintf (stderr, " %*s  ", (unsigned int) (2 * sizeof (void *)), "");
   690 
   690 
   691   if (indented) {
   691   if (indented) {
   692 /* One may want to add ASCII version of these.  See:
       
   693  * https://bugs.freedesktop.org/show_bug.cgi?id=50970 */
       
   694 #define VBAR    "\342\224\202"  /* U+2502 BOX DRAWINGS LIGHT VERTICAL */
   692 #define VBAR    "\342\224\202"  /* U+2502 BOX DRAWINGS LIGHT VERTICAL */
   695 #define VRBAR   "\342\224\234"  /* U+251C BOX DRAWINGS LIGHT VERTICAL AND RIGHT */
   693 #define VRBAR   "\342\224\234"  /* U+251C BOX DRAWINGS LIGHT VERTICAL AND RIGHT */
   696 #define DLBAR   "\342\225\256"  /* U+256E BOX DRAWINGS LIGHT ARC DOWN AND LEFT */
   694 #define DLBAR   "\342\225\256"  /* U+256E BOX DRAWINGS LIGHT ARC DOWN AND LEFT */
   697 #define ULBAR   "\342\225\257"  /* U+256F BOX DRAWINGS LIGHT ARC UP AND LEFT */
   695 #define ULBAR   "\342\225\257"  /* U+256F BOX DRAWINGS LIGHT ARC UP AND LEFT */
   698 #define LBAR    "\342\225\264"  /* U+2574 BOX DRAWINGS LIGHT LEFT */
   696 #define LBAR    "\342\225\264"  /* U+2574 BOX DRAWINGS LIGHT LEFT */
   699     static const char bars[] = VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR;
   697     static const char bars[] =
       
   698       VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR
       
   699       VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR
       
   700       VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR
       
   701       VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR
       
   702       VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR;
   700     fprintf (stderr, "%2u %s" VRBAR "%s",
   703     fprintf (stderr, "%2u %s" VRBAR "%s",
   701              level,
   704              level,
   702              bars + sizeof (bars) - 1 - MIN ((unsigned int) sizeof (bars), (unsigned int) (sizeof (VBAR) - 1) * level),
   705              bars + sizeof (bars) - 1 - MIN ((unsigned int) sizeof (bars) - 1, (unsigned int) (sizeof (VBAR) - 1) * level),
   703              level_dir ? (level_dir > 0 ? DLBAR : ULBAR) : LBAR);
   706              level_dir ? (level_dir > 0 ? DLBAR : ULBAR) : LBAR);
   704   } else
   707   } else
   705     fprintf (stderr, "   " VRBAR LBAR);
   708     fprintf (stderr, "   " VRBAR LBAR);
   706 
   709 
   707   _hb_print_func (func);
   710   _hb_print_func (func);