flat assembler
Message board for the users of flat assembler.

Index > Projects and Ideas > FreshLib is updated.

Author
Thread Post new topic Reply to topic
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 08 Feb 2011, 22:32
I just uploaded the latest version of FreshLib as a separate file in its page on Fresh site: FreshLib page

Now, the library is little bit progressed and contains the first release of "FreshLib reference manual" that is intended to explain the architecture of the library and the main design ideas.
The library is not finished yet. Actually it is very far from to be finished, but some parts are already useful.
The library can be used with FASM and with Fresh.

Any opinions on the library, the reference manual and comments about the design of the system are highly appreciated.

Regards.
Post 08 Feb 2011, 22:32
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20620
Location: In your JS exploiting you and your system
revolution 09 Feb 2011, 10:30
Request for website usability: Please don't use collapsed menus that require JS to activate and view. I can't access the "Related projects" pages unless I examine the source and manually enter the URLs. Sad
Post 09 Feb 2011, 10:30
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 09 Feb 2011, 11:57
revolution wrote:
Request for website usability: Please don't use collapsed menus that require JS to activate and view. I can't access the "Related projects" pages unless I examine the source and manually enter the URLs. Sad


OK, I will check this ASAP.
BTW, the link in the first post should work, opening the collapsed folder even without JS.

Regards.
Post 09 Feb 2011, 11:57
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20620
Location: In your JS exploiting you and your system
revolution 09 Feb 2011, 14:47
JohnFound wrote:
BTW, the link in the first post should work, opening the collapsed folder even without JS.
Yes it does, but it disappears as soon as I go to another page not within the "Related projects" section.

With only three extra links I wonder if it is necessary to have a collapsed menu at all.
Post 09 Feb 2011, 14:47
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 12 Feb 2011, 08:19
The site engine is updated now.
So, how about the FreshLib? Smile
Post 12 Feb 2011, 08:19
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 16 Feb 2011, 18:04
New work version of FreshLib is uploaded.
Now it can draw text with truetype fonts.
The text should looks similar in Windows and Linux but I can test only in andLinux.
I wonder whether it works in other Linux/Unix distributions.
Please, check the compiled executable: "TestLib" and report here any problems.
It opens an window with two flat buttons - one small and one big. Both are clickable. The message in the console is displayed on click.

Here is how it looks in Windows XP and andLinux:


Description:
Filesize: 23.86 KB
Viewed: 18008 Time(s)

screenshot.PNG


Post 16 Feb 2011, 18:04
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo 18 Feb 2011, 04:00
Hi JohnFound,
The FreshLib is shaping very good. Very nice cross platform implementation of fonts rendering.

The example is working properly on linux, the debug messages are arriving at the console but the application is not responding to the destroy event (it needs to be xkilled).

Maybe the problem resides in the __ProcessOneSystemEvent not managing the destroy system event?

Thanks for sharing Very Happy


Description: Here's how it looks in linux
Filesize: 22.96 KB
Viewed: 17971 Time(s)

testlib.gif


Post 18 Feb 2011, 04:00
View user's profile Send private message Yahoo Messenger Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 18 Feb 2011, 07:07
pelaillo wrote:
The example is working properly on linux, the debug messages are arriving at the console but the application is not responding to the destroy event (it needs to be xkilled).
Maybe the problem resides in the __ProcessOneSystemEvent not managing the destroy system event?
Thanks for sharing Very Happy


Thanks for testing. The destroy events are still not processed both in Windows and Linux. It will be fixed later.
Post 18 Feb 2011, 07:07
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 20 Mar 2011, 11:09
FreshLib news:

Recently, FreshLib was developed towards Unicode support.
Now all text drawing functions supports UTF-8 (although some of them may contain bugs). StrLib will need some more tests in order to be acknowledged as fully UTF-8 compatible.

You can download the latest version from FreshLibDev branch in the source repository.

Here you can see recent screen shot (Linux):


Description:
Filesize: 22.17 KB
Viewed: 17781 Time(s)

FreshLibDev.PNG


Post 20 Mar 2011, 11:09
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 20 Mar 2011, 12:11
Do you support combining code points?
Post 20 Mar 2011, 12:11
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 20 Mar 2011, 12:23
vid wrote:
Do you support combining code points?


Note, I am not very familiar with UNICODE at all. So, "combining code points" sounds for me like nothing Very Happy

The approach of FreshLib to utf-8 is simple - in Linux, it simply use the UTF-8 API in order to output text. In Windows, it converts utf-8 to widechar (is it utf-16 or not???) using Win32 api, then outputs the text.

Additionally, in OS independent code FreshLib have several procedures that deals with utf-8: convert some byte series to 32bit full unicode and compute the length in bytes of the unicode character (and also detects invalid utf-8 codes).
Post 20 Mar 2011, 12:23
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 20 Mar 2011, 12:38
Ah, I see now (wikipedia rulez).
As long as UNICODE have symbols for all characters with diacritics IMHO it is pretty useless to support such combination in output functions. (But as I said - the output in FreshLib is implemented through target OS API functions, so it depends on it).
On the other hand it could be useful to support input of these characters from the keyboard.
As long as FreshLib still does not support keyboard input - I can't even say whether "combining code points" for the keyboard will be supported or not. Smile
Post 20 Mar 2011, 12:38
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 20 Mar 2011, 16:50
Don't worry, I was just nitpicking. Proper full unicode support is overkill anyway.

PS: http://en.wikipedia.org/wiki/UTF-16/UCS-2#Code_points_U.2B10000..U.2B10FFFF Wink
Post 20 Mar 2011, 16:50
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.