No, the absolute path doesn't change anything at all.
Am 24.12.2006 um 23:42 schrieb Marten Svanfeldt (dev):
> I would guess that the font isn't loaded (so font member below is 0),
> probably because you use a relative path, and that the 2d canvas
> doesn't check its parameters properly.
>
> Try using "/lib/verdana.ttf" as font-path instead.
>
>
> -Marten, who is slowly becomming too tired to think this christmas
> evening...
>
> Quoting Thomas Teufel <[EMAIL PROTECTED]>:
>
>> Well
>>
>> I'm building on Windows with MSVC 7.1, using CS 1.0pre2 and the
>> according winlibs-package.
>>
>> I now tried it this way:
>>
>> // verdana.ttf is the windows-font duplicated into the directory
>> which
>> is mounted as "lib" in vfs
>> csRef<iFont> font = g2d->GetFontServer()->LoadFont("lib/
>> verdana.ttf", 12);
>> // should be white text on transparent background
>> g2d->write(font, 0, 0, g2d->FindRGB(255,255,255), g2d->FindRGB(0, 0,
>> 0, 0), "Test", CS_WRITE_BASELINE);
>>
>>
>> Compiling works properly ...
>> So I'm starting the application.
>> At runtime now there is an error in the file "glfontcache.cpp" on
>> line
>> 637, which is:
>> font->GetMaxSize(maxwidth, maxheight);
>>
>>
>> I have no Idea what is wrong :/
>>
>>
>> Am 24.12.2006 um 23:13 schrieb Marten Svanfeldt (dev):
>>
>>> That is all good, except it isn't CS ;)
>>>
>>> The basic interface for doing 2D operations, such as drawing text is
>>> iGraphics2D. Look into iGraphics2D::Write and companion functions.
>>>
>>>
>>> -MÃ¥rten
>>>
>>>
>>> Quoting Amir Taaki <[EMAIL PROTECTED]>:
>>>
>>>> <createpropclass name="pcbillboard" tag="line2" />
>>>> <default propclass="pctag(pcbillboard,line2)" />
>>>> <property id="propid(name)" value="hud_health" />
>>>> <property id="propid(visible)" value="false" />
>>>> <property id="propid(width)" value="65000" />
>>>> <property id="propid(height)" value="10000" />
>>>> <property id="propid(x)" value="15000" />
>>>> <property id="propid(y)" value="65000" />
>>>> <property id="propid(text_default_fg_color)"
>>>> value="?cc_msgcol" />
>>>> <property id="propid(text_default_font_size)"
>>>> value="10" />
>>>> <property id="propid(text_default_font)" value="'/cc/
>>>> fonts/Samba
>>>> is Dead.TTF'" />
>>>> <property id=propid(text)" values="'hello'" />
>>>> On Sunday 24 December 2006 20:37, Thomas Teufel wrote:
>>>>> Hello all!
>>>>>
>>>>> I need to have a text output on the screen in order to create
>>>>> a head-
>>>>> up-display.
>>>>>
>>>>> But I actually don't know what plugins, classes, functions to
>>>>> use for
>>>>> this.
>>>>> I would very appreciate it if you could guide me through this.
>>>>>
>>>>>
>>>>> Thanks in advance!
>>>>>
>>>>> Merry Chirstmas!
>>>>>
>>>>> Greetings,
>>>>> Thomas
>>>>>
>>>>> ------------------------------------------------------------------
>>>>> -- -----
>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>> Join SourceForge.net's Techsay panel and you'll get the chance
>>>>> to share
>>>>> your opinions on IT & business topics through brief surveys - and
>>>>> earn cash
>>>>> http://www.techsay.com/default.php?
>>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>> _______________________________________________
>>>>> Crystal-main mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/crystal-main
>>>>> Unsubscribe:
>>>>> mailto:[EMAIL PROTECTED]
>>>>> subject=unsubscribe
>>>>
>>>> -------------------------------------------------------------------
>>>> -- ----
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to
>>>> share your
>>>> opinions on IT & business topics through brief surveys - and
>>>> earn cash
>>>> http://www.techsay.com/default.php?
>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>> _______________________________________________
>>>> Crystal-main mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/crystal-main
>>>> Unsubscribe:
>>>> mailto:[EMAIL PROTECTED]
>>>> subject=unsubscribe
>>>>
>>>
>>>
>>>
>>>
>>> --------------------------------------------------------------------
>>> -- ---
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to
>>> share your
>>> opinions on IT & business topics through brief surveys - and earn
>>> cash
>>> http://www.techsay.com/default.php?
>>> page=join.php&p=sourceforge&CID=DEVDEV
>>> _______________________________________________
>>> Crystal-main mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/crystal-main
>>> Unsubscribe: mailto:[EMAIL PROTECTED]
>>> subject=unsubscribe
>>>
>
>
>
>
> ----------------------------------------------------------------------
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Crystal-main mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/crystal-main
> Unsubscribe: mailto:[EMAIL PROTECTED]
> subject=unsubscribe
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]