OpenChemistry / avogadrolibs

Avogadro libraries provide 3D rendering, visualization, analysis and data processing useful in computational chemistry, molecular modeling, bioinformatics, materials science, and related areas.
https://two.avogadro.cc/
BSD 3-Clause "New" or "Revised" License
461 stars 172 forks source link

Add improved text rendering #1363

Open ghutchis opened 1 year ago

ghutchis commented 1 year ago

Right now, the text labels aren't great, particularly compared to high-resolution anti-aliased text on retina screens.

We need a better solution, for example multi-channel signed distance fields: https://github.com/Chlumsky/msdfgen

We can also use open source fonts (e.g., STIX fonts: https://github.com/stipub/stixfonts)

secretkontributer commented 11 months ago

@ghutchis do you still need help?

ghutchis commented 11 months ago

Yes, definitely. Here's how text labels look in the current renderer on my Mac Retina screen. Some of this work may require updating to the OpenGL core profile (e.g., using pixel shaders)

CurrentText CurrentText2