xrdp-ng: font drawing refactoring