hi mike et al,
we've got users with tables.
getting tabular numbers (using proportional fonts) to line up as expected (ie line up on the decimal) seems pretty difficult. I just implemented a horrendous CSS hack to get decimals to line up in a table:
Which is ... a terrible way to solve this problem.
W3C's Feb 2013 working draft for font-variants, suggests:
Which (should) render something like this (tabular decimals/separators lining up):
see:
http://www.w3.org/TR/2013/WD-css3-fonts-20130212/#propdef-font-variant-numeric
This does not seem to be working in Prince 9.
At @dauwhe's suggestion, I also tried:
and
No luck.
we've got users with tables.
getting tabular numbers (using proportional fonts) to line up as expected (ie line up on the decimal) seems pretty difficult. I just implemented a horrendous CSS hack to get decimals to line up in a table:
td.skinny {
padding-right: 12px;
}
td.extra-skyinny {
padding-right: 13px;
}
td.fat {
padding-right: 9px;
}
Which is ... a terrible way to solve this problem.
W3C's Feb 2013 working draft for font-variants, suggests:
{font-variant-numeric: tabular-nums;}
Which (should) render something like this (tabular decimals/separators lining up):
see:
http://www.w3.org/TR/2013/WD-css3-fonts-20130212/#propdef-font-variant-numeric
This does not seem to be working in Prince 9.
At @dauwhe's suggestion, I also tried:
{font-variant: prince-opentype(tnum)}
and
{font-variant-numeric: prince-opentype(tnum)}
No luck.
Edited by hughmcguire