3

I having trouble while using typescript and Angular 2 it was working fine like this :

but when adding Unicode text "arabic" i'm getting this

The html file is fine stand-alone but after compinge

My TypeScript config file tsconfig.json

            {
              "compilerOptions": {
                "module": "commonjs",
                "target": "es5",
                "sourceMap": false,
                "emitDecoratorMetadata": true,
                "experimentalDecorators": true,
                "noLib": false
              },
              "exclude": [
                  "node_modules"
              ]
            }

-- Help , Any idea : I tried google and the Anglular docs !

3

2 Answers 2

1

This looks like an Angular issue.

See also - https://github.com/angular/angular/issues/6036

There seems to be a pull request for a similar case. Not sure if this fixes your issue as well.

Sign up to request clarification or add additional context in comments.

Comments

0

jspdf not supported arabic characters in angular2. I use jspdf in angular2 and try to insert arabic characters,i add a font but don't work

doc.addFont('NafeesNastaleeq.ttf', 'arabic', 'normal', 'Identity-H');
doc.setFont('arabic');
doc.text(50, 50, 'السلام عليكم'  );

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.