|
|
Re: small-caps and pdf-/word-emitter [message #1028498 is a reply to message #1028075] |
Thu, 28 March 2013 10:35 |
hage Mising name Messages: 67 Registered: September 2011 |
Member |
|
|
thx for your reply jason.
what do you mean by "not supported"? textTransform works for html-output only?
i also tried adding a style via a css file like this:
font-variant:small-caps;
font-family:Arial, sans-serif;
font-size:12pt;
font-weight:bold;
line-height:1.15;
text-transform:capitalize;
variant and/or text-transform are the only two properties that are obv. beeing ignored (producing a non-html ouput).
Regarding your advice, i can't see a "Format String"-Property for Text/Label within the PropertyEditor of such an element. Which way do i access them, and how does the expression to format to small-caps has to look like? I don't wan't uppercase, first char of the string should be larger than the rest of the string if it was an uppercase one i had a string like
Ulll
with U being Uppercase char and l representing a lowercase char. Since this is a font rendering issue (or isn't it?) i can't see a way resolving that issue with the format string property, correct me if i'm wrong here.
thx in advance,
hage
(btw: nevertheless, word/oo/pdf are able to display capitalized / small-caps strings in general on my system, and additional info, i'm using birt 3.7.0 )
addition: searching my plugins folder i discovered a feature org.eclipse.birt.report.engine.fonts containing some fontConfig_xyz.xml files. Are these the only fonts, the engine is able to render? Perhaps i'm able to solve my problem, adding some "capitalizeable" fonts in here?
|
|
|
Re: small-caps and pdf-/word-emitter [message #1028535 is a reply to message #1028498] |
Thu, 28 March 2013 11:37 |
hage Mising name Messages: 67 Registered: September 2011 |
Member |
|
|
i found a dirty workaround, using a dynamic textfield with the following script on its "onRender"-event:
importPackage(Packages.java.lang);
sb = new StringBuilder();
sb.append("<span style=\"font-family:arial, sans-serif; text-align:left line-height:1.15; margin-top:12pt, margin-bottom:12pt; color:#003366; font-size:24pt\">S<span>");
sb.append("<span style=\"font-family:arial, sans-serif; text-align:left line-height:1.15; margin-top:12pt, margin-bottom:12pt; color:#003366; font-size:20pt\">MALLCAPS<span>");
this.text = sb.toString();
very dirty, but at least it does the trick. But, the two spans are not based on one line, the "S" should only be larger as the "MALLCAPS" in one direction (above), not in both. Don't know if it's possible to manage that with style properties, i'll keep tryin, but a "programmatic" solution would be nicer/better anyways.
|
|
|
|
|
Re: small-caps and pdf-/word-emitter [message #1061062 is a reply to message #1061028] |
Wed, 29 May 2013 17:30 |
|
That is a very old document and I believe that like Jason said above that some of those are not supported (never implemented into BIRT). You're saying you tried it and it didn't work, right? You could always submit an enhancement request in the bugzilla for it.
Michael
Developer Evangelist, Silanis
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03298 seconds