William Lancee Well-Known Member Licensed User Longtime User May 3, 2023 #1 In the image below the A line spacing is only 80% of the B spacing. There are no line breaks in the paragraph. The settings are shown below. I have attached a small project. It happens at other times, somehow related to fontsize, width, and the letters in the line. I suspect that this is not a bug, but just my misunderstanding of MinGapBetweenLines. B4X: Copy tEngine.MinGapBetweenLines = 5dip tEngine.SpaceBetweenLines = 20dip Attachments Project.zip Project.zip 9.2 KB · Views: 427
In the image below the A line spacing is only 80% of the B spacing. There are no line breaks in the paragraph. The settings are shown below. I have attached a small project. It happens at other times, somehow related to fontsize, width, and the letters in the line. I suspect that this is not a bug, but just my misunderstanding of MinGapBetweenLines. B4X: Copy tEngine.MinGapBetweenLines = 5dip tEngine.SpaceBetweenLines = 20dip
William Lancee Well-Known Member Licensed User Longtime User May 4, 2023 #2 I searched and good lord I already brought this up before! My apologies. That was only 2.5 years ago [B4X][BBCodeview] Line spacing problem related to font size. When the textsize is greater then 35, the line spacing is inconsistent BBCodeView1.Text = _ $" Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc fermentum elit vitae nisi faucibus, vitae lacinia turpis mattis. "$ www.b4x.com My own solution based on @Erel explanation works perfectly. Last edited: May 4, 2023
I searched and good lord I already brought this up before! My apologies. That was only 2.5 years ago [B4X][BBCodeview] Line spacing problem related to font size. When the textsize is greater then 35, the line spacing is inconsistent BBCodeView1.Text = _ $" Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc fermentum elit vitae nisi faucibus, vitae lacinia turpis mattis. "$ www.b4x.com My own solution based on @Erel explanation works perfectly.