C++Builder
How to draw a text with a certain angle Comment afficher un texte avec un certain angle
 
Here is how to rotate a text and draw it into a canvas. Note it only works with True Type Fonts.  Le code ci-dessous vous permet d'afficher un string avec un certain angle. Ca ne fonctionne qu'avec des polices True Type.
  

Canvas->Font->Size = 20;                             //Font size 
Canvas->Font->Name = "Times Roman";                  //Font name 
LOGFONT lgfont; 
GetObject(Canvas->Font->Handle, sizeof(LOGFONT), &lgfont); 
lgfont.lfEscapement = 45*10;                         //Angle *10 
lgffont.lfOrientation = 45*10;                       //Angle *10 
lgfont.lfOutPrecision = OUT_TT_ONLY_PRECIS; 
//Creates a logical font with the characteristics specified in the 
//LOGFONT structure 
Canvas->Font->Handle = CreateFontIndirect(&lgfont) 
SetGraphicsMode(Canvas->Handle, GM_ADVANCED); 
Canvas->Brush->Style = bsClear;                      //Draws transparently 
String text = "C++ Builder"
Canvas->TextOut(50,210, text);                       //Draws text