Make output of check_Length.cpp more human readable.

This commit is contained in:
Kornel Benko 2017-04-10 09:57:40 +02:00
parent d568846e03
commit 560ebc1d50
2 changed files with 42 additions and 40 deletions

View File

@ -18,7 +18,7 @@ void test_inPixels()
lyxrc.dpi = 72;
for (int i = Length::BP; i <= Length::UNIT_NONE; ++i) {
Length const l(2342, static_cast<Length::UNIT>(i));
cout << l.inPixels(250) << endl;
cout << l.inPixels(250) << " pix(250) = " << l.asString() << endl;
}
}
@ -27,7 +27,7 @@ void test_inBP()
{
for (int i = Length::BP; i <= Length::UNIT_NONE; ++i) {
Length const l(2342, static_cast<Length::UNIT>(i));
cout << l.inBP() << endl;
cout << l.inBP() << " BP = " << l.asString() << endl;
}
}

View File

@ -1,38 +1,40 @@
2342000
29951094
66387402
2495925
23332503
10044643
168624000
6638740
1296250
27999004
2333250
36
5855
5855
9954
5855
10463
12881
0
2342
29951
66387
2496
23333
10045
168624
6639
1296
27999
2333
0
139414
139414
237003
139414
249132
306710
0
2342000 pix(250) = 2342bp
29951094 pix(250) = 2342cc
66387402 pix(250) = 2342cm
2495925 pix(250) = 2342dd
23332503 pix(250) = 2342em
10044643 pix(250) = 2342ex
168624000 pix(250) = 2342in
6638740 pix(250) = 2342mm
1296250 pix(250) = 2342mu
27999004 pix(250) = 2342pc
2333250 pix(250) = 2342pt
36 pix(250) = 2342sp
5855 pix(250) = 2342text%
5855 pix(250) = 2342col%
9954 pix(250) = 2342page%
5855 pix(250) = 2342line%
10463 pix(250) = 2342theight%
12881 pix(250) = 2342pheight%
279990 pix(250) = 2342baselineskip%
0 pix(250) =
2342 BP = 2342bp
29951 BP = 2342cc
66387 BP = 2342cm
2496 BP = 2342dd
23333 BP = 2342em
10045 BP = 2342ex
168624 BP = 2342in
6639 BP = 2342mm
1296 BP = 2342mu
27999 BP = 2342pc
2333 BP = 2342pt
0 BP = 2342sp
139414 BP = 2342text%
139414 BP = 2342col%
237003 BP = 2342page%
139414 BP = 2342line%
249132 BP = 2342theight%
306710 BP = 2342pheight%
280 BP = 2342baselineskip%
0 BP =