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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - xumepoc

Pages: 1 2 3 [4]
46
Graphics / Re: ExcludeClipRect in SFML
« on: March 21, 2014, 05:48:22 am »
Thanks for the fast reply!!! ;D ;D ;D ;D

47
Graphics / Re: ExcludeClipRect in SFML
« on: March 20, 2014, 07:59:19 pm »
Thanks  :D :D
I will look into it.

Can you do the same in order to have the same effect as IntersectClipRect(rect) and SelectClipRgn(NULL). This will result in drawing only the things what are inside of the rect coord. Which is useful for when you want to make a list with scroll so you are displaying only the items inside of the rect, no matter how far you have scrolled. 

48
Graphics / ExcludeClipRect in SFML
« on: March 20, 2014, 01:22:18 pm »
Is there any method to ExcludeClipRect and SelectClipRgn, as in GDI, in SFML??

49
Graphics / Re: Help with mono spaced font
« on: March 16, 2014, 03:34:15 pm »
Thanks for the info guys  ;D ;D ;D

50
Graphics / Re: Help with mono spaced font
« on: March 16, 2014, 11:25:09 am »
I am looking in the SFML source code and the changes are there. Does this means that the release 2.1 is compiled with that code or no?

51
Graphics / Re: Help with mono spaced font
« on: March 14, 2014, 11:11:45 pm »
Well I have never done it before, so will have to do some reading first, but maybe I will do it and not wait for the next release and run with it until then.  ;) ;D ;D

52
Graphics / Re: Help with mono spaced font
« on: March 14, 2014, 10:11:31 pm »
Text rendering has been improved in the current development version.

https://github.com/SFML/SFML/issues/228
I know that topic, I did make a search before posting, but I though that was for v2 and it was implemented already in 2.1.
Any news for the next public release?

53
Graphics / Re: Help with mono spaced font
« on: March 14, 2014, 10:10:28 pm »
have you resized your sf::Text object?
can you show us a piece of code and your font? i'd like to test it.
The font is based on this font ,http://avsim-bg.org/others/Karben%20205%20Mono%20Medium.otf but I can't give you actual code do to copyright.

Here is the code snippet
sf::Font font;
font.loadFromFile("res/font.ttf");

sf::Text text("TEST 1234000 WERTY",font);
text.setFont(font);
text.setCharacterSize(13) ;
text.setColor(sf::Color::White);
text.setPosition(20,20);

ttl2D->draw(text);
 

BTW using this
int give_letter_size(char &letter, sf::Font &font, int font_size)
{
        return font.getGlyph(int(letter), font_size, false).advance;
}

for the same text I get 26. Is this pixels or some value I need to convert to pixels?

54
Graphics / [SOLVED]Help with mono spaced font
« on: March 14, 2014, 02:03:57 pm »
Hi everyone, I have some issues and questions on the text rendering with SFML

This is the situation using a custom defined font for a project.




As you can see there is a significant difference with the way the font is displayed with SFML and Direct2D/GDI/PhotoShop/everything else. In both samples the font is size 13. There are two problems:

1. The font is not displayed correctly, you can see that some of the letters are not even drawn with their full length, like the S. Also I know that Direct2D is using ClearType, but is simply looks better with it, then in SFML

2. You can see that there is some spacing in SFML with is not present in Direct2D or GDI or anywhere else.

So my question is, how can I overcome these problems. Because with Direct2D I get 10 FPS and with SFML 45 drawing the same elements (which are something like 50000 lines).

I am using v2.1

55
General / Use Multi-Byte Character set problems
« on: March 12, 2014, 08:16:28 am »
Hi everyone, I am thinking to move from GDI UI (MFC project) to SFML, because Direct2D is just slow and I get low FPS.
For now I just want to play a bit with SFML to see it's capabilities, but I need to run it in "Use Multi-Byte Character Set", because that is the requirement in the MFC project I will need it. But when I run the simple test project I get linking errors:

Error   3   error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in libcmtd.lib(typinfo.obj)   msvcrtd.lib
Error   4   error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in libcmtd.lib(typinfo.obj)   msvcrtd.lib
Error   6   error LNK2019: unresolved external symbol _main referenced in function _WinMain@16   sfml-main-d.lib
Error   7   fatal error LNK1120: 1 unresolved externals   F:\SFML\Test\Test\Debug\Test.exe   1


When using Unicode set, everything is OK. Isn't the SFML 2.1 compiled in Mulit-Byte or I have to compile it myself for this?

Pages: 1 2 3 [4]