We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Following the discussion in stack overflow, can you please add this code?
To fix hebrew letters direction add code to src/Renderer/Text.php before $this->_canvas->text (line 73). I added a PR #3420
src/Renderer/Text.php
$this->_canvas->text
if ( strtolower( $style -> direction ) == 'rtl' && preg_match( "/\p{Hebrew}/u", $text ) ){ preg_match_all('/./us', $text, $ar); // reverse the whole line $text = join('',array_reverse($ar[0])); // flip english back to ltr $words = explode( ' ', $text ); foreach( $words as $i => $word ): if( !preg_match( "/\p{Hebrew}/u", $word ) ): $words[$i] = implode( '', array_reverse( str_split( $word ) ) ); endif; if( $word === "–"){ $words[$i] = "-"; } endforeach; $text = implode( ' ', $words ); }
The text was updated successfully, but these errors were encountered:
The PR is sufficient. Also, watch #2619 for updates on script support for various languages.
Sorry, something went wrong.
No branches or pull requests
Following the discussion in stack overflow, can you please add this code?
To fix hebrew letters direction add code to
src/Renderer/Text.php
before$this->_canvas->text
(line 73).I added a PR #3420
The text was updated successfully, but these errors were encountered: