Arx Libertatis Bug Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
OPEN  Bug report #1783  -  Fonts does not render on open gl es
Posted Jul 27, 2024 - updated Mar 24, 2025   Shortlink: http://arx.vg/1783
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
Issue details
  • Type of issue
    Bug report
  • Status
     
    New
  • Assigned to
    Not assigned to anyone
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     sandstranger
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Category
    Not determined
  • Resolution
    Not determined
  • Priority
    Not determined
  • Reproducability
    Always
  • Severity
    Not determined
  • Targetted for
    icon_milestones.png Not determined
  • OS
    icon_customdatatype.png Not determined
  • Architecture
    icon_customdatatype.png Not determined
  • Fixed in
    icon_customdatatype.png Not determined
Issue description
Hi, I am trying to port this engine to Android, using libepoxy with gles 1.1. Engine is working, but fonts do not render.

https://imgur.com/a/DPEZ7IQ
Steps to reproduce this issue
Nothing entered.

#1
icon_reply.pngReply
Comment posted by
 Guest user
Mar 24, 17:39
The following patch fixes this:

diff --git a/src/graphics/font/Font.cpp b/src/graphics/font/Font.cpp index 26e7d3cd2..cc75d9498 100644 --- a/src/graphics/font/Font.cpp +++ b/src/graphics/font/Font.cpp @@ -365,7 +365,7 @@ Font::TextSize Font::process(int x, int y, std::string_view text, Color color) {
                m_textures->upload();
                
                UseRenderState state(render2D());
- UseTextureState textureState(TextureStage::FilterNearest, TextureStage::WrapClamp); + UseTextureState textureState(TextureStage::FilterLinear, TextureStage::WrapClamp);
                
                // Fixed pipeline texture stage operation
                GRenderer->GetTextureStage(0)->setColorOp(TextureStage::OpDisable);


#2
icon_reply.pngReply
Comment posted by
 Guest user
icon_reply.pngMar 24, 20:11, in reply to comment #1
Formatting was broken, sorry:

  1. diff --git a/src/graphics/font/Font.cpp b/src/graphics/font/Font.cpp
  2. index 26e7d3cd2..cc75d9498 100644
  3. --- a/src/graphics/font/Font.cpp
  4. +++ b/src/graphics/font/Font.cpp
  5. @@ -365,7 +365,7 @@ Font::TextSize Font::process(int x, int y, std::string_view text, Color color) {
  6. m_textures->upload();
  7.  
  8. UseRenderState state(render2D());
  9. - UseTextureState textureState(TextureStage::FilterNearest, TextureStage::WrapClamp);
  10. + UseTextureState textureState(TextureStage::FilterLinear, TextureStage::WrapClamp);
  11.  
  12. // Fixed pipeline texture stage operation
  13. GRenderer->GetTextureStage(0)->setColorOp(TextureStage::OpDisable);