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

Abierto
#679 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
c
Área
desktop

Línea de trabajo

Empieza siguiendo la ruta de renderizado de texto de xreader a través de Atril, Poppler, su backend de renderizado y FreeType, utilizando como contexto la documentación enlazada sobre el renderizado LCD de FreeType. Determina dónde podrían entrar en la ruta las configuraciones RGBA de fontconfig, GNOME o Xft; se considerará terminado cuando exista una ruta de implementación definida para admitir el antialiasing de subpíxeles o una limitación documentada de Poppler.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C
Estrellas
286
Forks
87
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de linuxmint/xreader

Todos los issues de linuxmint/xreader

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.