processing / processing/processing4

With a lot of custom fonts and large font sizes, characters disappear with P2D / P3D

オープン
#594 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

has attachment opengl
主要言語
Java
スター
494
フォーク
183
平均マージ
4時間 39分
マージ済み PR(30日)
3

説明

Created by: clankill3r

With a lot of custom fonts and large font sizes, it can be that characters are not drawn.
Here i draw the text "HSLAB":

Screenshot 2022-11-10 at 13 58 51

One of the weird things is, that if you disable noLoop() that it works again.

Font:
https://fonts.google.com/specimen/Source+Code+Pro

int font_size = 400;
PFont font;

void setup() {
  size(1200, 350, P2D);
  noLoop();
}

void draw() {
  background(0);
  
  if (font == null) {
    font = createFont("SourceCodePro-Black.ttf", font_size);
    textFont(font);
  }
  textSize(font_size);
  fill(255);
  text("HSLAB", 0, height*0.85);
}

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

ソースファイルもテストも指定されていません。まず、Source Code Pro、大きなフォントサイズ、多数のカスタムフォント、noLoop() を使用して、提供された Java スケッチを P2D と P3D で実行します。両方のレンダラーで HSLAB 文字が一貫して描画され、noLoop() を無効にする必要がなければ完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
computer-graphics
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。