[Solved] Drop Cap won’t properly size

Discuss the word processor
Post Reply
User avatar
CannedMan
Posts: 250
Joined: Wed Aug 04, 2010 12:06 am

[Solved] Drop Cap won’t properly size

Post by CannedMan »

Example of output file and template
Example of output file and template
Bilde_2024-08-28_231937418.png (86.47 KiB) Viewed 2240 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
Attachments
Dømebrev.odt
Anonymised sample file
(47.85 KiB) Downloaded 44 times
Last edited by MrProgrammer on Sat Aug 31, 2024 9:13 pm, edited 4 times in total.
Reason: Add "Drop Cap" to topic subject
LibreOffice 7.6.7.2 (X86_64) on Windows 10.0 (19045)
FJCC
Moderator
Posts: 9455
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Initials won’t properly size

Post by FJCC »

I don't see the F cut off in OpenOffice. Does this look right?
BigF.PNG
BigF.PNG (11.94 KiB) Viewed 2228 times
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
CannedMan
Posts: 250
Joined: Wed Aug 04, 2010 12:06 am

Re: Initials won’t properly size

Post 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 2198 times
Last edited by CannedMan on Thu Aug 29, 2024 2:46 pm, edited 1 time in total.
LibreOffice 7.6.7.2 (X86_64) on Windows 10.0 (19045)
FJCC
Moderator
Posts: 9455
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Initials won’t properly size

Post by FJCC »

Here is what I see.
BigL.PNG
BigL.PNG (19.1 KiB) Viewed 2159 times
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
floris v
Volunteer
Posts: 4495
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands

Re: Initials won’t properly size

Post 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.
OpenOffice 4.1.11 on Ubuntu; LibreOffice 6.4 on Linux Mint, LibreOffice 7.6.2.1 on Ubuntu
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
User avatar
Lupp
Volunteer
Posts: 3616
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: Initials won’t properly size

Post 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.
On Windows 10: LibreOffice 24.8.2 and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
User avatar
CannedMan
Posts: 250
Joined: Wed Aug 04, 2010 12:06 am

Re: Initials won’t properly size

Post 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 1925 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.
LibreOffice 7.6.7.2 (X86_64) on Windows 10.0 (19045)
User avatar
RoryOF
Moderator
Posts: 34782
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Initials won’t properly size

Post 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.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
cwolan
Posts: 151
Joined: Sun Feb 07, 2021 3:44 pm

Re: Initials won’t properly size

Post 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 1666 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")
OpenOffice 1.1.5 – 4.1.15
LibreOffice 3.3.0.4 – 24.8
Windows 7,10,11 64-bit
User avatar
CannedMan
Posts: 250
Joined: Wed Aug 04, 2010 12:06 am

Re: Initials won’t properly size

Post by CannedMan »

That is highly informative. Thank you!
LibreOffice 7.6.7.2 (X86_64) on Windows 10.0 (19045)
User avatar
CannedMan
Posts: 250
Joined: Wed Aug 04, 2010 12:06 am

Re: Initials won’t properly size

Post 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.
LibreOffice 7.6.7.2 (X86_64) on Windows 10.0 (19045)
User avatar
RoryOF
Moderator
Posts: 34782
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

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

Post 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?
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Post Reply