home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Feature Requests
Adding support for Right-to-left languages (Hebrew, Arabic...)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="velis" data-source="post: 1106539" data-attributes="member: 96429"><p>That 1000 is supposed to be the right border of the texture we're rendering into (text should be right-aligned). Current function just sets x to 0 (LTR), but there's no hint (that I could see) in the renderer as to how wide the texture is.</p><p></p><p>OH, re-reading made me think of one thing: that 1000 IS NOT index into string to be rendered. It is rendering offset in device units / pixels. String always renders from first to last character. The widths array contains info about character widths / offsets by which rendering offset has to move when the craracter is drawn.</p><p></p><p>P.S. Isn't CreateQuad() function the one that renders the desired glyph to the destination canvas @x,y? If this is so, the only piece of info you're missing right now is texture width.</p></blockquote><p></p>
[QUOTE="velis, post: 1106539, member: 96429"] That 1000 is supposed to be the right border of the texture we're rendering into (text should be right-aligned). Current function just sets x to 0 (LTR), but there's no hint (that I could see) in the renderer as to how wide the texture is. OH, re-reading made me think of one thing: that 1000 IS NOT index into string to be rendered. It is rendering offset in device units / pixels. String always renders from first to last character. The widths array contains info about character widths / offsets by which rendering offset has to move when the craracter is drawn. P.S. Isn't CreateQuad() function the one that renders the desired glyph to the destination canvas @x,y? If this is so, the only piece of info you're missing right now is texture width. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Feature Requests
Adding support for Right-to-left languages (Hebrew, Arabic...)
Contact us
RSS
Top
Bottom