microsoft / microsoft/maker.js

Show an example opentype.RenderOptions object

Open
#442 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hey. I don’t understand which object to transfer as the last argument to

new Text (font: opentype.Font, text: string, fontSize: number, combine ?: boolean, centerCharacterOrigin ?: boolean, bezierAccuracy ?: number, opentypeOptions ?: opentype.RenderOptions): Text,

because I have opentype.RenderOptions === undefined?

And how do I make a thin (neat) font?

bad font

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.

Research direction

Start with the Text constructor signature in the issue and locate the RenderOptions type definition. Add an example of a valid opentypeOptions object, explain why opentype.RenderOptions is undefined, and clarify how the requested thin-font result relates to the available options.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.