Suppose the target OS has a font folder. For example, it is possible that the Linux installation will be console only and have no font directory at all.
In any case, I think there is no platform independent way. You can write your own platform-independent function, but inside it you will need to check the current OS (through some IFDEFs, I canβt say that), and then call the correct function. But then again - I would not be sure that you can get it under Linux at all.
Vilx-
source share