Süleyman Demir wrote:
Don't see it, maybe sent it to me private.

Sorry, here it is.

Sample vdraws makes use of it, search in there, e.g:

a2dText* ct= new a2dText( wxT("Hello i am a Freetype with background brush"), 0,0, a2dFont( a2dGlobals->GetFontPathList().FindValidPath(
wxT("/arialnb.ttf") ), 100 ) );

Using this constructor:

        //! constructor of Freetype font based on filename of fontfile.
a2dFont( const wxString& filename, double size = 0.0, wxFontEncoding encoding = wxFONTENCODING_DEFAULT, int weight = wxNORMAL );

Hmm. I actually use this constructor for my font.

a2dFont *font = a2dFont (m_font_name, font_size);

So follow is the m_font_name is found.

a2dText*txt = new a2dText ("any text", 0, 0, font, font_size, true);

Did i use freetype all the time without knowing? ^^

You can look at the type, to know it.

I am a little confused. I will take closer look at the vdraws sample.
I think i need a mini sample, which show me how to set each letter with
stroke and fill.

That is not implemented as i said. But using the freetype fonts it would be possible to do it.
The problem is how to organize this for the othere types of drawing context 
classes.


I use the a2dAggDrawer.
//Anti-aliased Drawing
a2dDrawer2D* drawer2d = new a2dAggDrawer(
a2dCanvasGlobals->m_initialDocChildFrameSize );
m_canvasview = new a2dCanvasView
(a2dCanvasGlobals->m_initialDocChildFrameSize);
m_canvasview->SetDrawer2D (drawer2d);
I know the Opacity factor. I set it with my ToolController for transparency
on editing.

Great.


The image does not appear transparent in the corners.

a2dImage now has a SetOpacityFactor() too, and a2dMemDcDrawer and the aggdrawers use it, together with the one above for editing.

But i don't think this solves your problem.
Can you sened me the piece of code you use to add that image?
There might be a mistake in the a2gDrawer using transparent images.

Klaas




--
Unclassified


------------------------------------------------------------------------------------------------------------
Disclaimer:

If you are not the intended recipient of this email, please notify the sender and delete it. Any unauthorized copying, disclosure or distribution of this email or its attachment(s) is forbidden. Thales Nederland BV will not accept liability for any damage caused by this email or its attachment(s). Thales Nederland BV is seated in Hengelo and is registered at the Chamber of Commerce under number 06061578.
------------------------------------------------------------------------------------------------------------

<<attachment: db348.vcf>>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to