processing / processing/processing4

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

未关闭
#594 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

has attachment opengl
主要语言
Java
星标
494
派生
183
平均合并
4 小时 39 分钟
30 天内合并 PR
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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

未指定源文件或测试。首先使用 P2D 和 P3D 运行提供的 Java 草图,使用 Source Code Pro、较大的字体大小、许多自定义字体和 noLoop()。当 HSLAB 字符能够在两个渲染器中一致地渲染,且不需要禁用 noLoop() 时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
computer-graphics
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。