Support » Plugin: WooCommerce PDF Invoices & Packing Slips » "italic" words are moved a little in the line

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ewout

    (@pomegranate)

    Hi Prepu.
    Check this thread for adding the order number.

    I have no idea why the italic is lowered. But it might be that it’s not necessarily the italic font that causes it. Can you post the HTML of this part?

    Ewout

    Here is the html:

    <td class="description">
    				La m&uacute;sica contempor&aacute;nea en la segunda mitad del siglo XX. <i>V&iacute;ctor Pliego.</i><dl class="variation"></dl>				<dl class="meta">
    Plugin Author Ewout

    (@pomegranate)

    Hi Prepu,
    I have discovered that if you put a span tag around the description, they will align.
    <?php echo $item[‘name’]; ?>

    It looks like the element somehow changes the line-height. I will ask the PDF engine developers why this is, but the span fix is good for now (also allows for additional styling).

    Have a great day!
    Ewout

    Hi Ewout,

    I didn’t understand quite well what did you tell me about a span tag. Do you mean that I have to add the span tag to the product description?

    I have tried do edit de product description adding this: <span style=”font-style:italic;”>Mariano PĂ©rez.</span> but it is still moved. Nevertheless, it is not so important… hehehe.

    I am going to write you an email to support@wpovernight.com for a personal question, if you don’t mind…

    Thanks again for everythin!

    Plugin Author Ewout

    (@pomegranate)

    No I meant editing the template. An alternate way to solve it is declaring the line height of the body in style.css (also in the template folder):

    body {
    background: #fff;
    color: #000;
    margin: 0cm;
    font-family: ‘Open Sans’, sans-serif;
    font-size: 9pt;
    line-height: 1em;
    }

    This is the solution that I will be including in the next release.

    Ok. Great!
    Thank you again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘"italic" words are moved a little in the line’ is closed to new replies.