[#8331] - Small Caps

Category:
Feature request
Priority:
Low
Status:
Feedback Requested
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

We have a requirement to produce titles on official certificates for students who have graduated from their studies.

The certificates include titles written in Small Caps:

https://en.wikipedia.org/wiki/Small_caps

iText appears to be capable of supporting Small Caps:

http://developers.itextpdf.com/examples/font-examples/using-fonts

However, Jaspersoft Studio only offers: regular, bold, italic, and bold-italic styles.

There are a few ways to implement Small Caps.

Use a font that supports Small Caps, such as Linux Libertine (http://www.linuxlibertine.org/index.php?id=86&L=1). This would be similar to what's currently in place with existing font styles where separate .TTF are supplied for various styles (e.g., bold, italics, small caps).

Use a font that adjusts the font kerning for Small Caps, such as TeX Gyre Schola. This would be new functionality and would require full support for .OTF files. Currently the font selection dialog filters on *.TTF. Although *.OTF files can be embedded by changing the dialog to select all files (*.*), it is unlikely that the kerning description in the .OTF is available to use through the JasperReports Library.

Fake the Small Caps. This would allow using any font to emulate small caps. That is, all lowercase characters in the string would be converted to uppercase and rendered in a proportionally smaller font size. Allowing users to control the kerning and proportion settings for faked small caps would be welcome additions.

v6.3
jasper library
thangalin's picture
2855
Joined: Apr 21 2008 - 4:34am
Last seen: 3 years 6 months ago

3 Comments:

#1
  • Priority:High» Normal
  • Severity:Major» Minor
#2
  • Priority:Normal» Low
#3
  • Status:New» Feedback Requested
  • Assigned:nobody» teodord

Hi,

I tend to favour the last approach: "Fake the Small Caps". Some utility method or function (extension point in JRL) could be written so that a text be processed and transformed into a styled text to simulate the small caps effect.

Thanks,
Teodor

Feedback