FontStashSharp / FontStashSharp

C# port of https://github.com/memononen/fontstash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GetGlyphRects positions not matching screen positions

Beyley opened this issue · comments

i
This was discussed in the Monogame discord, with the closest i was able to get being
i
It seems to be offset by slightly less than half of the line height, so even by adding half of the line height to the Y position, its just slightly too low

what scale do you pass there? 1,1?

what scale do you pass there? 1,1?

in this case, yes scale was 1, 1

Well, it works fine for me(see attached sample).
Though there are some issues with different scale.
image

FSSTest.zip

Well, it works fine for me(see attached sample). Though there are some issues with different scale. image

FSSTest.zip

			_currentFontSystem = new FontSystem(new FontSystemSettings() {
				FontResolutionFactor = 2f,
				KernelWidth          = 2,
				KernelHeight         = 2,
				Effect               = FontSystemEffect.None
			});

these font settings cause it to break, specifically the font resolution factor

Should be fixed in the newest release(1.0.8)