processing / processing/processing4
Tools > Create Font unable to disable smoothing on macOS
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Java
- Sterne
- 494
- Forks
- 183
- Ø Merge
- 4 Std. 39 Min.
- Gemergte PRs (30 T.)
- 3
Beschreibung
Created by: kylemcdonald
Description
When using createFont() or the Create Font tool to create a PFont for a bitmap pixel font with smoothing disabled, there are still grays in the generated font.
Expected Behavior
Created by thresholding the result in Photoshop:
Current Behavior
Generated directly by Processing:
Steps to Reproduce
Here is a link to the font I am using: sg08.zip
PFont font;
void setup() {
size(512, 512);
font = createFont("SHAKAGRAPHICS08", 8, false);
noSmooth();
textFont(font, 8);
textAlign(LEFT, TOP);
}
void draw() {
background(255);
fill(0);
noStroke();
String str = "Forsaking monastic tradition,\ntwelve jovial friars gave up\ntheir vocation for a questionable\nexistence on the flying trapeze.";
text(str, 20, 20);
}
Your Environment
- Processing version: 4.0b1
- Operating System and OS version: MacOS 11.6
Possible Causes / Solutions
I did some basic checks to see that this is happening at font generation time, and not in the rendering. I don't know the Processing internals enough to advise beyond this. Last time I tried this font was circa 2011 and I know it worked correctly Processing back then :)
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere das Problem unter macOS mit der bereitgestellten sg08.zip-Schriftart und der Skizze, die createFont("SHAKAGRAPHICS08", 8, false) verwendet. Verfolge den Pfad der Create Font-Tool- und createFont()-Schriftgenerierung, um zu ermitteln, an welcher Stelle Glättung eingeführt wird. Als erledigt gilt die Aufgabe, wenn die generierte Bitmap-Schriftart bei deaktivierter Glättung keine unbeabsichtigten grauen Pixel enthält und das normale Schriftverhalten unverändert bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- computer-graphics, desktop
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100