Skip to content

fix ttf font rendering with shaders - #3442

Open
Bowling5669 wants to merge 1 commit into
IrisShaders:26.3from
Bowling5669:fix-ttf-text-pipelines
Open

Bowling5669 wants to merge 1 commit into
IrisShaders:26.3from
Bowling5669:fix-ttf-text-pipelines

Conversation

@Bowling5669

Copy link
Copy Markdown

When used with shaders through Iris, TTF fonts from resource packs display a black rectangular background and render as black.

Fixed by making Iris recognize the missing TTF font pipeline, and resolved the black background issue by making Iris read the same channel as TTF.

Tested and both regular text and sign text render normally without relying on the SAH TTF Sign Fix mod. That mod only fixes the black background and text color on signs; other text such as nametags remains black when using that mod alone.

Tested on Minecraft 26.3 Fabric, not yet tried with NeoForge.

Related to #3428

Iris only :

Screenshot 2026-10-24 121058 Screenshot 2026-10-24 121047

Iris + SAH TTF Sign Fix :

Screenshot 2026-10-24 120817 Screenshot 2026-10-24 120803

Iris with this PR :

Screenshot 2026-10-24 122606 Screenshot 2026-10-24 122555

English is not my first language. I wrote this description in Thai and used an AI tool to translate it. The original Thai is below.

Original description (Thai)

ปัญหาฟอนต์ TTF จาก resource pack เมื่อใช้กับ shader ผ่าน Iris จะมีกรอบสี่เหลี่ยมสีดำ และฟอนต์แสดงเป็นสีดำ

แก้โดยให้ Iris รู้จัก pipeline ของฟอนต์ TTF ที่ขาดไป และให้ Iris อ่านค่าช่องเดียวกับ TTF เพื่อแก้กรอบสีดำ

ทดสอบแล้วตัวอักษรและข้อความบนป้ายแสดงผลปกติโดยไม่ต้องพึ่งม็อด SAH TTF Sign Fix เพราะม็อดนี้แก้ได้แค่กรอบสีดำบนป้าย ฟอนต์ที่แสดงแบบอื่น เช่น nametag ยังเป็นสีดำเมื่อใช้ม็อดนี้อย่างเดียว

ทดสอบบน Minecraft 26.3 Fabric ยังไม่ได้ลองกับ NeoForge

@Myeong2Namul00

Copy link
Copy Markdown

Tested this PR and it fixes the issue for us (TTF default font in a server resource pack, #3428).

Setup: Minecraft 26.3 Fabric, Sodium 0.9.2, branch 26.3 (671a5c8) + this PR (1942c86), built with gradlew :fabric:build.

Before (1.11.7): every shader pack we tried (Lux 1.2, Complementary Reimagined r5.7.1, BSL 10.0, Photon 1.1, Bliss 2.0.4, SuperDuperVanilla, Windom) logged Missing program minecraft:pipeline/text_grayscale_polygon_offset in override list. Text Displays using the TTF font were invisible and large stretched black/translucent polygons covered the screen (Photon went almost fully black). Entity name tags and see_through Text Displays drew each TTF glyph as a black box. The same happens with a pack that contains nothing except a ttf provider in minecraft:default, so it is not caused by core shaders. Bitmap glyphs rendered fine.

After (this PR): with Lux, Photon and Complementary, TTF text renders correctly as a normal Text Display, with shadow, with see_through, and as an entity name tag. The polygons are gone and the error is no longer logged.

Thanks for the fix!

vjh0107 added a commit to vjh0107/hyperfarm-launcher that referenced this pull request Nov 20, 2026
## 무엇이 잘못됐나

공식 Iris 1.11.7 로 쉐이더를 켜면 TTF 글꼴(리소스팩의 잘난체 등)로 그린 글자가 깨진다. 26.3 이 TTF 글자를
회색조
파이프라인(`TEXT_GRAYSCALE_*`)으로 그리는데 Iris 가 그 일부를 매핑하지 않고, 회색조 텍스처의 빨강 채널도
읽지 않는다.
업스트림에 고친 PR(IrisShaders/Iris#3442)이 있지만 아직 머지되지 않았고 Modrinth 최신 판도
1.11.7 그대로다.

## 바꾼 것

- Iris 를 Myeong2Namul00/Iris `hyperfarm-ttf-fix` 의 릴리스
jar(`1.11.7-hyperfarm.1+mc26.3`)로 바꾼다. 업스트림 26.3 브랜치
  671a5c8 에 #3442 를 그대로 얹은 것이다. jar 해시는 릴리스의 SHA256SUMS 와 같다
- jar 는 `pack.hyperf.kr/launcher/mods/` 에, LGPL-3.0
소스(Iris·glsl-transformer)와 라이선스 묶음은 `mods/src/` 에 올렸다.
  이름에서 `+` 를 `-` 로 바꿨다 — R2 경로에서 공백으로 읽히는 일을 피한다
- Sodium 을 `mc26.3-0.9.2-fabric` 으로 고정한다. 지금까지는 Modrinth 의 Iris 가 요구해서
0.9.2 로 풀렸는데, 포크는 우리
  주소에서 받으므로 그 고정이 사라져 0.9.3 beta 로 풀린다(Iris 가 거부했던 판이다)
- README 의 모드 구성에 출처와 되돌아갈 조건을 적었다

## 검증

- `pack/check.py` 통과. 사본에서 `resolve.py` 를 다시 돌려도 sodium·iris 는 같고,
lithium 만 0.26.4 로 새 판이 보인다(주간 PR 몫)
- 스테이징 manifest 로 dev 런처를 돌렸다. 옛 Iris jar 는 지워지고 포크 jar 가 깔렸으며, BSL 을 켠
채 `Using shaderpack:
  BSL_v10.1.8.zip` 로 떴고 메뉴의 한글이 정상으로 그려졌다
- 서버 접속은 Mojang 세션 서버가 429 를 돌려줘 못 했다. 서버 리소스팩의 TTF 글자를 쉐이더 위에서 본 것은
아직이다

## 머지 뒤 할 일

- 머지하면 `pack.yml` 이 곧바로 플레이어에게 게시한다. 접속해 TTF 글자를 쉐이더를 켠 채 한 번 본다
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants