Page 1 of 1

[Solved] Drop Cap won’t properly size

Posted: Thu Aug 29, 2024 12:38 am
by CannedMan
Example of output file and template
Example of output file and template
Bilde_2024-08-28_231937418.png (86.47 KiB) Viewed 2239 times
I usually write from templates. For this specific one, I have an initial using EB Garamond Initial. In the template, it renders perfectly fine; in the output file, however, it is cut off for some reason, apparently being rendered as a three-line sized letter cut to the (desired) two-line height. What could cause this?

Sample file: Dummy document.odt
Sample template:
Dummy template.ott
Anonymised sample template
(39.34 KiB) Downloaded 43 times

Re: Initials won’t properly size

Posted: Thu Aug 29, 2024 1:24 am
by FJCC
I don't see the F cut off in OpenOffice. Does this look right?
BigF.PNG
BigF.PNG (11.94 KiB) Viewed 2227 times

Re: Initials won’t properly size

Posted: Thu Aug 29, 2024 2:55 am
by CannedMan
I managed to be silly and upload the original document; sorry about that. (Please delete it; it contains some things that should not be spread.) Here is a copy of the dummy document with embedded fonts. The template from above applies to this one.
Dummy image sample showing cut off.
Dummy image sample showing cut off.
Bilde_2024-08-29_015223214.png (32.57 KiB) Viewed 2197 times

Re: Initials won’t properly size

Posted: Thu Aug 29, 2024 4:15 am
by FJCC
Here is what I see.
BigL.PNG
BigL.PNG (19.1 KiB) Viewed 2158 times

Re: Initials won’t properly size

Posted: Thu Aug 29, 2024 9:41 am
by floris v
Works for me, but I don't have your decorative font. Maybe you have that problem because of the line spacing set to Fixed instead of Single (which works in most cases if you don't insert formulas and the like in the body text) and a font size for the drop cap that doesn't fit in that space. Remember that the actual height of a letter with a certain font size can differ per font. Play with those settings.

Re: Initials won’t properly size

Posted: Thu Aug 29, 2024 11:37 am
by Lupp
CannedMan wrote: Thu Aug 29, 2024 2:55 am I managed to be silly and upload the original document; ...
... (Please delete it; it contains some things that should not be spread.) ...
Edit your first post and delete the upload yourself replacing it with a respective note.

Re: Initials won’t properly size

Posted: Thu Aug 29, 2024 2:53 pm
by CannedMan
floris v wrote: Thu Aug 29, 2024 9:41 am Works for me, but I don't have your decorative font. Maybe you have that problem because of the line spacing set to Fixed instead of Single (which works in most cases if you don't insert formulas and the like in the body text) and a font size for the drop cap that doesn't fit in that space. Remember that the actual height of a letter with a certain font size can differ per font. Play with those settings.
I checked that, but the fixed line height is set in the template, and as the image shows, it works perfectly well in the template. I tried changing to e.g. 1.15 lines line heigh, but that changed nothing as well:
Line height set to 1 line instead of a fixed set of points.
Line height set to 1 line instead of a fixed set of points.
Bilde_2024-08-29_134822906.png (25.27 KiB) Viewed 1924 times
Did the decorative font get included in the new document? I embedded the fonts in it. What boggles me, is that it works perfectly well in the template, but not in the ‘real’ file. And yes, when I use a different font, including the regular EB Garamonds (EB Garamond, EB Garamond Medium, SemiBold and ExtraBold), it also renders fine in the real file. How come then it works well in the template, but not when applied?
Lupp wrote: Thu Aug 29, 2024 11:37 am
CannedMan wrote: Thu Aug 29, 2024 2:55 am I managed to be silly and upload the original document; ...
... (Please delete it; it contains some things that should not be spread.) ...
Edit your first post and delete the upload yourself replacing it with a respective note.
I have now added the link to the correct document in the original post as well.

Re: Initials won’t properly size

Posted: Thu Aug 29, 2024 5:19 pm
by RoryOF
There is a report here, with some illustrations, of problems with EB Garamond Initials

https://tex.stackexchange.com/questions ... d-initials

Perhaps there may be some help in it.

Re: Initials won’t properly size

Posted: Fri Aug 30, 2024 6:39 pm
by cwolan
CannedMan wrote: Thu Aug 29, 2024 12:38 am I usually write from templates. For this specific one, I have an initial using EB Garamond Initial. In the template, it renders perfectly fine; in the output file, however, it is cut off for some reason, apparently being rendered as a three-line sized letter cut to the (desired) two-line height. What could cause this?
It might be related to the value of a configuration parameter called DropCapPunctuation

Unpack the template file "Dummy template.ott" and open the internal file "settings.xml". The entry in question reads:

Code: Select all

<config:config-item config:name="DropCapPunctuation" config:type="boolean">false</config:config-item>
On the other hand, DropCapPunctuation stored in two other files ("Dømebrev.odt" and "Dummy letter.odt") is set to true.

Code: Select all

<config:config-item config:name="DropCapPunctuation" config:type="boolean">true</config:config-item>
AFAICT DropCapPunctuation was introduced in LO version 7.5 [1].

I did a test with 7.6.7.2 :
beforeANDafter.png
beforeANDafter.png (77.98 KiB) Viewed 1665 times


There is one LO Bugzilla report on similar (?) issue [2].

-----------------
Ref:

[1]
LO Gerrit: 138356 (tdf#150200 tdf#150438 sw, DOCX: fix drop cap dash, quotation etc.)

[2]
LO Bugzilla: Bug 160488 ("VIEWING - Characters extending below the baseline are cut off as drop caps")

Re: Initials won’t properly size

Posted: Sat Aug 31, 2024 8:30 pm
by CannedMan
That is highly informative. Thank you!

Re: Initials won’t properly size

Posted: Sat Aug 31, 2024 8:34 pm
by CannedMan
RoryOF wrote: Thu Aug 29, 2024 5:19 pm There is a report here, with some illustrations, of problems with EB Garamond Initials

https://tex.stackexchange.com/questions ... d-initials

Perhaps there may be some help in it.
That is highly informative. Thanks!

cwolan wrote: Fri Aug 30, 2024 6:39 pm [ABRIDGED]
It might be related to the value of a configuration parameter called DropCapPunctuation

Unpack the template file "Dummy template.ott" and open the internal file "settings.xml". The entry in question reads:

Code: Select all

<config:config-item config:name="DropCapPunctuation" config:type="boolean">false</config:config-item>
On the other hand, DropCapPunctuation stored in two other files ("Dømebrev.odt" and "Dummy letter.odt") is set to true.

Code: Select all

<config:config-item config:name="DropCapPunctuation" config:type="boolean">true</config:config-item>
AFAICT DropCapPunctuation was introduced in LO version 7.5 [1].

I did a test with 7.6.7.2 :
This, presumably, is the closest LO editing gets to TeX. I have begun messing around in the XML files every now and then. Thanks for this detailed information; I will give it a try.

Re: [Solved] Drop Cap won’t properly size

Posted: Sun Sep 01, 2024 2:17 pm
by RoryOF
In my limited investigation I observe that EG Garamond Initials only cover a limited umber of capitals. For information, have you discovered a full set of capitals in that (or close) style?