evas: Implement support for different H/V font DPI
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 12 Oct 2017 06:15:34 +0000 (15:15 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 12 Oct 2017 06:25:05 +0000 (15:25 +0900)
commitca581e00baea8d8f714fdc4850dd77898db5a80b
treefee9f8d2c1bb3ecced23a4e78567bd0b5b95ebd7
parent47a46323981925f715153e921fe10aec9283fb35
evas: Implement support for different H/V font DPI

This is modifying how a rarely used environment variable that sets the
DPI used for font sizing is parsed. The previous form remains valid, of
course. Note that EFL tends to use "scaling" instead of this DPI. The
font DPI is useful for me to open up a terminology window with almost
the same size as my IDE's code viewer.

Use case:

  export EVAS_FONT_DPI=95x94 terminology

Note:
I still don't get a 1:1 match with Qt's rendering, and in fact
94x95 works better than what 95x94 (which is reported by xdpyinfo).
Interesting though :)

@feature
src/lib/evas/common/evas_font.h
src/lib/evas/common/evas_font_load.c
src/lib/evas/common/evas_font_main.c