SFML community forums

General => Feature requests => Topic started by: 1aam2am1 on February 27, 2016, 08:54:09 pm

Title: Font more function load
Post by: 1aam2am1 on February 27, 2016, 08:54:09 pm
Add functions addFromFile, addFromMemory, addFromStream.
I have a font, he hasn't all utf-8 glyph.
I would load first any of basic operating system font. Later I wold load my font, he should replace glipth of old font.
Title: Font more function load
Post by: eXpl0it3r on February 27, 2016, 09:03:05 pm
You are not making much sense to me. Could please elaborate what you mean exactly and provide some use cases?
Title: Re: Font more function load
Post by: 1aam2am1 on February 27, 2016, 09:14:47 pm
sf::Font font;

font.loadFromFile(Path to the basic font of the operating system, eg. "C:/Windows/Fonts/ariblk.ttf");

fond.addFromFile(Path to my font); //loads the new font( not remove first loaded)

What I mean:
Font I: Load a,b,c,d,e,f...
Font II: Replace eg. a,b,c, //but not d becouse he hesn't got it
Title: Re: Font more function load
Post by: korczurekk on February 27, 2016, 09:16:29 pm
If he has some very-simple font, it won't display any special characters like 'ą', 'ć', 'ź' etc., that's why he propably wants to provide these characters from another font which supports UTF-8.