processing / processing/processing4
Tools > Create Font unable to disable smoothing on macOS
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 494
- フォーク
- 183
- 平均マージ
- 4時間 39分
- マージ済み PR(30日)
- 3
説明
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 :)
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
提供された sg08.zip フォントと createFont("SHAKAGRAPHICS08", 8, false) を使用するスケッチで、macOS 上の問題を再現します。Create Font ツールと createFont() のフォント生成パスを追跡し、どこでスムージングが導入されるのかを特定します。スムージングを無効にしたときに、生成されたビットマップフォントに意図しないグレーのピクセルがなく、通常のフォント動作に影響がないことを確認できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- computer-graphics, desktop
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100