Invalid text path while creating Text model using ttf file

Open
#587 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript

Research direction

Start by reproducing the makerjs Text model with the provided TTF file and the Arabic text روميك, then compare the generated SVG with the Microsoft Word preview. Investigate the character transformation and the missing beginning of the SVG path. Done means the generated text path matches the expected glyph order and contains the complete text.

Written by the indexing model from the issue text.

Description

Hello,

When I was trying to generate SVG using makerjs "Text" model,
I am getting invalid text path when compared with other software.

I guess there is some issue with transformation of character.

Also, some part at start of svg is missing

Text = روميك

Preview in Microsoft word
image

Preview of makerjs SVG
image

Here is generated SVG & input font file
Test-svg
https://drive.google.com/file/d/1nAWOMypqvJTa2hufy5pxOfc2PMlKj6sw/view?usp=sharing

Dominant language
TypeScript
Stars
2k
Forks
302
Avg merge
21h 28m
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/maker.js

All issues in microsoft/maker.js

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.