Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Font more function load  (Read 4570 times)

0 Members and 2 Guests are viewing this topic.

1aam2am1

  • Newbie
  • *
  • Posts: 13
    • View Profile
Font more function load
« 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Font more function load
« Reply #1 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?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

1aam2am1

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Font more function load
« Reply #2 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

korczurekk

  • Full Member
  • ***
  • Posts: 150
    • View Profile
    • Email
Re: Font more function load
« Reply #3 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.

 

anything