← Back to team overview

kicad-developers team mailing list archive

Re: Bitmap fonts

 

________________________________________
From: Maciej Sumiński [maciej.suminski@xxxxxxx]
Sent: 18 April 2016 15:05
To: Mário Luzeiro; kicad-developers@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Kicad-developers] Bitmap fonts

> Maybe it would be enough just to double the font atlas texture size? I
> suppose people do not spend much time staring at pads at such zoom
> level, so it should not be a major problem.

Would it be possible to limit the zoom in pcbnew? Yes.. you can zoom a lot :S Is there any reason for so much zoom?
If you move the chars do redraw every frame, you will be able to manual limit the size of the text, so it solves it.

> > mipmap_spacing_issue.png:
> > I notice for some zoom levels that there are "blur margin" effects issues.
> > I believe it may be fixed if you increase the spacing of the chars in the texture. (So you may need to decrease the font size to keep the same texture size)

> Good point, I have not noticed them before. From what I see, it is a
> byproduct of OpenGL way of mipmapping. I will have a look at it.

As the mipmap creates reduced replicas of the original texture, it will "interpolate" the surroundings. So when you get the texture for the quad.. it will "touch" the "blured" pixels of the next one.
I think it could be solved just by adding spacing between chars on the original texture until you stop to see the problem.

Mario

References