Skip to content
New issue

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

Adding EXTRABOLD to fon #778

Open
startOfStars opened this issue Nov 11, 2024 · 3 comments
Open

Adding EXTRABOLD to fon #778

startOfStars opened this issue Nov 11, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@startOfStars
Copy link

Hello

At the moment EXTRABOLD seems not be supported in fontStyle ?
I find REGULAR, BOLD, ITALIC but not EXTRABOLD.

Thank you !

@gumyr gumyr added the enhancement New feature or request label Nov 11, 2024
@gumyr gumyr added this to the Not Gating Release 1.0.0 milestone Nov 11, 2024
@gumyr
Copy link
Owner

gumyr commented Nov 11, 2024

EXTRABOLD is not supported by the OpenCascade CAD kernel that is used by build123d. However, there are some unused values that could be added - these are the OCCT options:

  • Font_FontAspect_UNDEFINED
  • Font_FontAspect_Regular
  • Font_FontAspect_Bold
  • Font_FontAspect_Italic
  • Font_FontAspect_BoldItalic
  • Font_FA_Undefined
  • Font_FA_Regular
  • Font_FA_Bold
  • Font_FA_Italic
  • Font_FA_BoldItalic

while these are the options exposed by build123d:

  • REGULAR
  • BOLD
  • ITALIC

At this point it isn't clear what the difference between the FontAspect and FA versions are but it seems like BoldItalic would be good to add.

@startOfStars
Copy link
Author

Thank you for your answer.
To be honest I don't understand all of what you wrote...

I was asking this because for exemple for Noto Sans Google Font, 18 styles are available, including "ExtraBold".

PS : Thank you for this amazing build123d !

@gumyr
Copy link
Owner

gumyr commented Nov 11, 2024

The fonts are provided by the CAD kernel not Google or anywhere else so we're restricted to what OCCT provides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants