PdfVectorOutput: issue with right to left languages

Post bugreports for the Windows version here
morosh
Enthusiast
Enthusiast
Posts: 329
Joined: Wed Aug 03, 2011 4:52 am
Location: Beirut, Lebanon

PdfVectorOutput: issue with right to left languages

Post by morosh »

Hello:
with right to left languages (arabic), pdfvectoroutput don't print words correctly, letters are always spread from left to right without being tied together as it must be.

Code: Select all

LoadFont(0, "Times New Roman", 20)

If StartVectorDrawing(SvgVectorOutput(GetUserDirectory(#PB_Directory_Desktop)+"test.svg", 595, 842))  
  VectorFont(FontID(0), 25)
  
  MovePathCursor(20, 20)
  DrawVectorText("مرحبا")    
  
  StopVectorDrawing()	; svg
EndIf
RunProgram(GetUserDirectory(#PB_Directory_Desktop)+"test.svg")


If StartVectorDrawing(PdfVectorOutput(GetUserDirectory(#PB_Directory_Desktop)+"test.pdf", 595, 842))  
  VectorFont(FontID(0), 25)
  
  MovePathCursor(20, 20)
  DrawVectorText("مرحبا")    
  
  StopVectorDrawing()	; pdf
EndIf
RunProgram(GetUserDirectory(#PB_Directory_Desktop)+"test.pdf")
the pdf output is incorrect, the svg one is correct.
is this a bug? Honestly I've seen many graphic software like that. But the correct svg behaviour makes me suspicious.
If it isn't a bug, Moderator, please move to "Feature Requests and Wishlists".

Thanks
PureBasic: Surprisingly simple, diabolically powerful