speedata / publisher

speedata Publisher - a professional database Publishing system
https://www.speedata.de/
GNU Affero General Public License v3.0
302 stars 36 forks source link

Margins not respected with tiny parts of glyphs located in margin #163

Closed ghost closed 6 years ago

ghost commented 6 years ago

When submitting my PDF files to Createspace I set my page margins to the minimum size of 0.25". However, wherever Italicized text touched a right hand margin a small part of certain characters encroached on the margin. This caused my Createspace submission to fail.

For a quick solution I may increase my margins a bit or remove the italic text. Hopefully a better solution can be found in the Speedata software.

ghost commented 6 years ago

Actually I see now that it may be any text. So I don't know if this is possible to fix in Speedata, but I see that in order to avoid encroaching on the 0.25" margin I must set the margin a bit wider.

pgundlach commented 6 years ago

I'd need a sample page to be able to verify this. Could you provide one?

pgundlach commented 6 years ago

Perhaps this is related to italic text?

<Layout xmlns:sd="urn:speedata:2009/publisher/functions/en"
  xmlns="urn:speedata.de:2009/publisher/en" >

  <Trace grid="yes"/>
  <Record element="data">
    <PlaceObject>
      <Textblock textformat="right">
        <Paragraph><I><Value>f</Value></I></Paragraph>
      </Textblock>
    </PlaceObject>

  </Record>
</Layout>

results in

bildschirmfoto 2018-03-04 um 19 24 42

The f's bounding box is smaller than its "ink width" and similar for italic g for the left margin.

I don't think there is much that I can do because it is a property of the font and I can't look inside the font.

ghost commented 6 years ago

Patrick,

In the example I sited yes perhaps.

However, I have other examples related to other non-latin characters as well that effect right, left, and top. I didn't see the problem on the bottom.

Perhaps the problem cannot be fixed and one just needs to adjust the margin accordingly. I was able to solve my problem by expanding the margin, so something to be aware of and perhaps document for future uses of Speedata.

Jeff


From: Patrick Gundlach [mailto:notifications@github.com] Sent: Sunday, March 4, 2018 1:32 PM To: speedata/publisher Cc: webservant317; Author Subject: Re: [speedata/publisher] Margins not respected with tiny parts of glyphs located in margin (#163)

Perhaps this is related to italic text?

<Layout xmlns:sd="urn:speedata:2009/publisher/functions/en"

xmlns="urn:speedata.de:2009/publisher/en" >

f

results in

https://user-images.githubusercontent.com/209434/36948935-0c90dec0-1fe2-11e 8-86cd-c52977126e37.png bildschirmfoto 2018-03-04 um 19 24 42

The f's bounding box is smaller than its "ink width" and similar for italic g for the left margin.

I don't think there is much that I can do because it is a property of the font and I can't look inside the font.

- You are receiving this because you authored the thread. Reply to this email directly, view https://github.com/speedata/publisher/issues/163#issuecomment-370251792 it on GitHub, or mute https://github.com/notifications/unsubscribe-auth/Ah_VlDjhBmITk5VrylqU_lv85 A_QZ_jOks5tbDMIgaJpZM4SajTi the thread. https://github.com/notifications/beacon/Ah_VlEpDsZV2Jk0vaqBlvowgb-1twBjjks5 tbDMIgaJpZM4SajTi.gif


This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus

pgundlach commented 6 years ago

I think I cannot solve this.