Why there is additional space for a textfield? - jasper-reports

Why when i check on report the stretch with overflow property the textfield adds an extra space?
i have this configuration on it:
the textfield has a height = 12 px
the width is the same of the page (572 px)
the font size = 10 px
In his image each line is a field, and doesn't contains line breaks except line 4,jasper adds one spaces after line 1 and 3 and additional for line 4. Here is the problem:
I compile my reports on windows and doesn't happen when i generate the report on windows, but this occurs on linux

the solution which worked for me.
Create a new jasperfonts jar from ireport,
Add a spring.jar file and
Set the fonts to Arial
Make sure it runs ok in AIX.

Related

Fillable Pdf multi-line, Allow rich text formatting in Acrobat Pro DC: but it ignores line spacing/leading set in More

I'm on Win10, using Acrobat Pro DC 2021.011... to edit and Reader DC (same version) to test.
From experience and from reading forums etc, forms in these apps are maddening... but I have not been able to find any discussion (or solutions) to the following behavior...
The form I'm building for other employees' use has a large edit text box set to Multi-line and Allow Rich Text Formatting. It is set to a default font, Calibri and size 50pt. For most situations this will work for them; provides 2-3 lines for a short product description. But occasionally they want a smaller font and more lines... They know how to get the ctrl+e properties bar. But in my testing of this alternative situation they'll need sometimes, I'm finding it's impossible to get the smaller font size and more lines to work. Here's my process.
tab into text box. Ctrl+E for properties bar.
before typing I set the font size to 24
then I type in my 4 lines of text
then I tab to my next form field...
and kaboom... the field I just filled...it's line height is so large it's pushed some of the content invisible. I assume this is coming from the field's default font size, 50
And if I try to adjust the line height, by selecting all the text and then choosing in More...>Form Field Text Properties>Paragraph>Line Spacing
If I set it to Single and click Close/click into another field I get the very large leading (presumably for 50pt font (same as pic above after point 5)
If I choose Exactly and set to point size slightly larger, click Close/out of field, I get another ridiculous result where the 2/3 line have the height I set, but the space between the 1 & 2 second line is way too much and the space between the last line and 3rd line is way too small...
before tabbing or clicking out of field to another field
Good lord.. what is that! 3 different leading values in the same field; just after applying 1 value to all lines, all text in the field...
It makes no sense... it doesn't look like it regards your input at all, and just comes up with it's own random leading... I've fiddled with Space before/after and combinations of Line Height and nothing comes close to what we need... At this point I'm convinced the Acrobat tools for a stylizing text in a multi-line, allow formatting text field are useless. I'd be better off with my employees they can't format anything, ever. Just type one line and hit Tab or Enter...
What is going on! I'm trying to make a simple fillable form for other employees to use, but this kind of behavior makes that impossible (It's enough of a stretch to teach them to use the ctrl+E and do some styling of their text but this is bonkers and completely unteachable... there's not rhyme or pattern to teach!)
Hope someone can help or has seen this behavior too.

Line Spacing react-draft-wysiwyg

I want to implement Line Spacing options (single,double, exactly ,line per inch) in react-draft-wysiwyg editor but currently i don't think that it is support Custom line spacing , Open Issue , problem statement is i want to apply different line spacing on different paragraphs as per user input how i should be able to implement this feature ?
By changing line height of editor it will apply line height on whole editor but i want to be specific on user selected paragraphs
The solution is to set blockData and in render via blockstylefn set the correct style to block.
Take a look at these:
https://github.com/facebook/draft-js/issues/248#issuecomment-335010079
https://gist.github.com/joshdover/7c5e61ed68cc5552dc8a25463e357960.

Can we have margin for a TEXT report in JASPER defined per line without a page margin or width

We are using Jasper to generate a TEXT report which will be used by a PRINTING SYSTEM to print the report. We are able to successfully generate a report but we need the margin or a line break to appear based on each line and not take the default page margin. It should not be using the page margin which is fixed per report . We also tried to use the property trim.line.right setting to TRUE which does remove the entire right spaces and does left shift the line margin. But we need some space to be padded to the right per line based on the attribute.
Is there a way to disable the page margin or a property to set which overrides the default page margin for a TEXT report . Any help would be greatly appreciated.
Thanks

Jasper Report Desginer does not show static text or text field

Originally my report is created in v5.2.0. My report also uses resource bundles file. When open in eclipse using ireport designer plugin v 5.2.0, it can show all - static text and text field.
But when I am using ireport designer v5.1.0. It shows nothing. like
Do I need to configure something in iReport Designer?? Am I missing something??
I have had this happen because of the size of the static text box in relation to the font size. If the Font size is too large, it will cause the text to wrap to the next line and out of the frame. I am guessing that different versions of iReport have different thresholds before the wrapping occurs.
What I ended up doing to verify this was to make the box bigger until the text appeared. Then I played with the Font size until it would fit in the size box I needed.
I would not worry about the display problem. When the report is generated all text should be shown. If not set the options "Print when detail overflows" and "Stretch with overflow". The latter option is only available within dynamic text fields.
In my case my XML formatter "helpfully" put a new line inside my CDATA['s!!

iOS - HelveticaNeueLTStd-LtCn vertical alignment

I am using one font named HelveticaNeueLTStd-LtCn in my iPhone app,
but I find out that the vertical alignment of that font is strange. There is padding below the text:
The result is that the bottom padding of table view cell is bigger than top. What can I do? Thanks.
Please check this post to fix it http://www.andyyardley.com/2012/04/24/custom-ios-fonts-and-how-to-fix-the-vertical-position-problem/
1.Download and install "Apple Font Tool Suite"
2.Generate the font setting xml file
ftxdumperfuser -t hhea -A d font.ttf
3.Change the following "ascender" and "descender" setting in the output xml.
ascender="975"
descender="-227"
4.Adjust the font file by
ftxdumperfuser -t hhea -A f font.ttf
Your font file will be vertical-centered.
I solved this problem by using my own cell, and moving the labels down.