View -> Info -> Information Displayed Formatting

Older bugs which are supposed to be fixed in 0.84. *** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
nightflame
Posts: 4
Joined: Sun May 30, 2021 10:50 am

View -> Info -> Information Displayed Formatting

Post by nightflame »

When I view my pictures I would like the IPTC Caption shown at the (almost) bottom of the screen.

I can nearly do this using:

View -> Info -> Information Displayed Formatting (infoTemplate)

If I use {IPTC:Caption} with position bottom-center, this works ok until there is a long line of text, then the wrapping is ugly (to the left) and not centered.

I tried to use HTML tags:

<p style="text-align: center">{IPTC:Caption}</p>

Unfortunately this does not work as expected on long text, it is centered, but text to the left and right are truncated off screen.

Any ideas how I can center text that is longer than one line so it is wrapped in the center?

Also ideally I would like to be able to display the text slightly off the bottom:

<p style="text-align: center; margin-bottom: 20px">{IPTC:Caption}</p>

But looks like margin-bottom is not processed.
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: View -> Info -> Information Displayed Formatting

Post by xnview »

could you post a screenshot please?
Pierre.
nightflame
Posts: 4
Joined: Sun May 30, 2021 10:50 am

Re: View -> Info -> Information Displayed Formatting

Post by nightflame »

Here is a screen shot of non-HTML bottom-center:

Image

(text not wrapped to center)

Screen shot of HTML version <p style="text-align: center">{IPTC:Caption}</p>:

Image

(text centered but not wrapped)
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: View -> Info -> Information Displayed Formatting

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: View -> Info -> Information Displayed Formatting

Post by xnview »

This problem is supposed to be fixed in XnView MP 0.99.0. Please check and confirm the bug fix here.
Pierre.
Post Reply