Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Support for font loading on Linux. #53

Closed
mik30s opened this issue Feb 3, 2017 · 1 comment
Closed

Support for font loading on Linux. #53

mik30s opened this issue Feb 3, 2017 · 1 comment

Comments

@mik30s
Copy link

mik30s commented Feb 3, 2017

Is it possible to have font loading support on Linux.

@c-smile
Copy link
Owner

c-smile commented Feb 3, 2017

It seems that there is still no straightforward way (see: http://mces.blogspot.ca/2015/05/how-to-use-custom-application-fonts.html) of loading fonts from memory in pango/cairo (used by default in Sciter). Skia backend supports that though.

You can select Skia backend by calling :

SciterSetOption(NULL,SCITER_SET_GFX_LAYER,GFX_LAYER_SKIA_CPU); // or
SciterSetOption(NULL,SCITER_SET_GFX_LAYER,GFX_LAYER_SKIA_OPENGL);

at startup. Problem is that Skia backend is not "native" for GTK so may work a bit slower.

@c-smile c-smile closed this as completed Feb 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants