No 'rgba' antialiasing ("LCD" subpixel rendering)

未關閉
#679 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
25/100
Issue 類型
功能
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
c
領域
desktop

研究方向

首先,沿著 xreader 通過 Atril、Poppler、其渲染後端和 FreeType 的文字渲染路徑進行追蹤,並將連結的 FreeType LCD 渲染文件作為背景。確定 fontconfig、GNOME 或 Xft 的 RGBA 設定可能在哪個環節進入該路徑;完成的標準是確定一條支援子像素反鋸齒的實作路徑,或記錄 Poppler 的限制。

由索引模型根據 Issue 內容生成。

描述

Hello,

It appears the atril viewer does not follow system cues to render text with corresponding subpixel antialiasing, such as valid fontconfig rgba property (different than unknown or none), valid org.gnome.desktop.interface font-antialiasing setting, Xft RGBA setting, or other, nor does it have its own configuration or GSetting to enable subpixel antialiased text.

Is this a poppler limitation?

As I understand it, FreeType has facilities for subpixel rendering [1] but it appears to be something of a setting that requires correct trickling down from the application down to poppler, then to poppler's backend, and finally to FreeType.

As I am not familiar with the poppler project or its backends, I would be grateful if someone who is indeed familiar with it could clear up how to do so.

In relation to FreeType, as long as it is compiled with the corresponding configuration macro (which it typically is for the past years), and the application dynamically links to the system library (also typically the case), there should not be any impediments to having subpixel rendered text. The pdf.js viewer in Mozilla Firefox and the pdfium embedded Chromium viewer appear to do it, for instance.

[1] https://freetype.org/freetype2/docs/reference/ft2-lcd_rendering.html

The above quoted text from https://github.com/mate-desktop/atril/issues/633.

As xreader is based on atril, I am cross posting this issue here for visibility.

Thanks for the attention.

主要語言
C
星號
286
分支
87
PR 合併指標
30 天內沒有已合併 PR

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

linuxmint/xreader 的其他 Issue

查看 linuxmint/xreader 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。