Oftruetype fonts look pixelated

hey im loading a true type font but i get it pixated like this
Untitled

i set it like this
ofTrueTypeFont::setGlobalDpi(72);
p.load(“IBMPlexMono-Bold.ttf”, 162,true,true);
but i keep getting the same issue ?

image

This is how it looks in my Linux… Are you maybe drawing this text multiple times without clearing the background? Which OS?

hi, OSX high sierra im just drawing in once no more which linux are you using >?
does the os makes a difference on rendering ?

I’m using ArchLinux, but I don’t know what actually makes the difference: GPU? OS? OpenGL version being used?

Would drawing the outline help, as mentioned at
https://openframeworks.cc//documentation/graphics/ofGraphics/#!show_ofEnableSmoothing
?

This is the program I used, just in case:

ofTrueTypeFont p;

void ofApp::setup() {
    ofSetBackgroundColor(20);
    ofTrueTypeFont::setGlobalDpi(72);
    p.load("/tmp/IBMPlexMono-Bold.ttf", 162, true, true);
}
void ofApp::draw() {
    p.drawString("must", 50, ofGetHeight() - 50);
}

try that didn’t make a difference but
i found this on the forum :


 ofVboMesh mesh;
    ofTranslate(ofGetWidth()/2, ofGetHeight()/2);
    for (unsigned int i = 0; i<words.size(); i++) {
        
      font.drawString(words[5].word, 10, 120);
        
    }
    
    
  font.getFontTexture().bind();
    mesh.draw();
    font.getFontTexture().unbind();

if you do this it fixes the issue