Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


DirectWrite TextFormat SetTrimming?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 LarsKJ   Members   -  Reputation: 100

Like
0Likes
Like

Posted 02 October 2011 - 12:20 PM

Hello,

I am rewriting an application and replacing Win7ApiCodePack/DirectX with SlimDX but I cannot find a DirectWrite TextFormat.SetTrimming(..) method, or is this
accomplished some other way with SlimDX.

Best Regards
Lars Krog-Jensen

Sponsor:

#2 LarsKJ   Members   -  Reputation: 100

Like
0Likes
Like

Posted 02 January 2012 - 08:54 AM

To whom it might concern:

It seems that I have to answer my own question.

I added the missing TextFormat.SetTrimming as follows:

TextFormat.h
Result SetTrimming(Trimming trimming, InlineObject ^trimmingSign);

TextFormat.cpp

Result TextFormat::SetTrimming(SlimDX::DirectWrite::Trimming trimming, InlineObject ^trimmingSign)
{
return RECORD_DW(InternalPointer->SetTrimming(reinterpret_cast<DWRITE_TRIMMING *>( &trimming ), trimmingSign->InternalPointer));
}



I hope this small contribution can be made part of the official SlimDX distribution, both as a benefit for other users and also to ourselves to avoid the extra custom build in the future.

Best Regards
Lars Krog-Jensen




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS