Hershey Vector Font Object

User projects written in or related to FreeBASIC.
vdecampo
Posts: 2982
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Hershey Vector Font Object

Postby vdecampo » Feb 29, 2012 16:46

I have developed a library for reproducing the Hershey Vector Fonts. The library features...

- No External Dependencies
- Cross Platform
- Adjustable Font Size and Color
- OOP design

Image

Enjoy!
-Vince

Download Hershey Vector Font Object
TJF
Posts: 3502
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Hershey Vector Font Object

Postby TJF » Mar 01, 2012 9:22

vdecampo wrote:- Cross Platform

Your import library doesn't work on LINUX. Compiling 'test.bas' on LINUX (fbc 0.23):

fbc -exx -w all "test.bas" (im Verzeichnis: .../HVFLib)
test.o: In function `main':
(.text+0xd0): undefined reference to `HVFONT::HVFONT(HVFONTS)'
test.o: In function `main':
(.text+0x12a): undefined reference to `HVFONT::DRAWSTRING(void*, int, int, FBSTRING&, unsigned int, float)'
test.o: In function `main':
(.text+0x143): undefined reference to `HVFONT::SETFONT(HVFONTS)'
...

An calling convention issue (CDECL / STDCALL)?

If you want to make it cross-platform keep in mind that LINUX is case sensitive (import library file name and #INCLIB "hvflib").
MOD
Posts: 555
Joined: Jun 11, 2009 20:15

Re: Hershey Vector Font Object

Postby MOD » Mar 01, 2012 12:20

Looks interesting...

Would you upload the source please (GPL ftw).
vdecampo
Posts: 2982
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Re: Hershey Vector Font Object

Postby vdecampo » Mar 01, 2012 14:48

TJF wrote:
vdecampo wrote:- Cross Platform

Your import library doesn't work on LINUX. Compiling 'test.bas' on LINUX (fbc 0.23):


No sure why that is happening. I will compile on my Linux box, but first I have to recode some of it because my Windows machine decided to dump all the changes I made to it yesterday.

-Vince
vdecampo
Posts: 2982
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Re: Hershey Vector Font Object

Postby vdecampo » Mar 01, 2012 14:52

MOD wrote:Looks interesting...

Would you upload the source please (GPL ftw).


Perhaps when I am finished with it. For now It is closed source.

-Vince
vdecampo
Posts: 2982
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Re: Hershey Vector Font Object

Postby vdecampo » Mar 01, 2012 15:33

TJF wrote:Your import library doesn't work on LINUX. Compiling 'test.bas' on LINUX (fbc 0.23):


Turns out you have to recompile the library for Linux from source because it needs to link with the X11 library. I will be releasing source for this soon as I get everything the way I want it.

-Vince

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest