Title: use() functionality to import fonts · Issue #165 · SolidCode/SolidPython · GitHub
Open Graph Title: use() functionality to import fonts · Issue #165 · SolidCode/SolidPython
X Title: use() functionality to import fonts · Issue #165 · SolidCode/SolidPython
Description: This is somewhat a feature request more than an issue really as I guess I'm attempting something a bit borderline here. According to OpenSCAD docs one should be able to use fonts "importing" them like: use Open Graph Description: This is somewhat a feature request more than an issue really as I guess I'm attempting something a bit borderline here. According to OpenSCAD docs one should be able to use fonts "importing" them l...
X Description: This is somewhat a feature request more than an issue really as I guess I'm attempting something a bit borderline here. According to OpenSCAD docs one should be able to use fonts "importin...
Opengraph URL: https://github.com/SolidCode/SolidPython/issues/165
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"use() functionality to import fonts","articleBody":"This is somewhat a feature request more than an issue really as I guess I'm attempting something a bit borderline here. According to [OpenSCAD docs][1] one should be able to use fonts \"importing\" them like:\r\n`use \u003cttf/super-font/my-super-font-in-italics.ttf\u003e`\r\n\r\nHowever, attempting such thing through SP via `solid.use()` does not work.\r\n```shell\r\nTraceback (most recent call last):\r\n File \"/tmp/test/venv/lib/python3.9/site-packages/solid/objects.py\", line 856, in use\r\n contents = scad_file_path.read_text()\r\n File \"/usr/lib/python3.9/pathlib.py\", line 1256, in read_text\r\n return f.read()\r\n File \"/usr/lib/python3.9/codecs.py\", line 322, in decode\r\n (result, consumed) = self._buffer_decode(data, self.errors, final)\r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 in position 16: invalid start byte\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"/tmp/src/test.py\", line 15, in \u003cmodule\u003e\r\n sp.use(\"../aux/awesome-font-bold.ttf\")\r\n File \"/tmp/test/venv/lib/python3.9/site-packages/solid/objects.py\", line 858, in use\r\n raise Exception(f\"Failed to import SCAD module '{scad_file_path}' with error: {e} \")\r\nException: Failed to import SCAD module '../aux/awesome-font-bold.ttf' with error: 'utf-8' codec can't decode byte 0x92 in position 16: invalid start byte \r\n```\r\n\r\n[1]: https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Text#Using_Fonts_\u0026_Styles","author":{"url":"https://github.com/rockstorm101","@type":"Person","name":"rockstorm101"},"datePublished":"2021-02-22T20:57:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/165/SolidPython/issues/165"}
route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:a1aeec31-7026-a7ed-9009-ab81c8247309 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id E142:22F52E:2B3DBFF:3A3090A:696AEA96 html-safe-nonce b5af7ea2741eba1657e97fe8804c8f93d082dd3a8c5e587f4f3063f67bfae20c visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTQyOjIyRjUyRToyQjNEQkZGOjNBMzA5MEE6Njk2QUVBOTYiLCJ2aXNpdG9yX2lkIjoiMjcwMzg3MjIzMzE5MTQzNDkwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 visitor-hmac 0464485b1e2762fe8ee16370667f7abeb1ccc7ce1e5489a2aae8e321a311f445 hovercard-subject-tag issue:813857901 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/SolidCode/SolidPython/165/issue_layout twitter:image https://opengraph.githubassets.com/109c3e36d47b183c70e79fe2495da2f1b5790d71fc6e357d98402000ee552835/SolidCode/SolidPython/issues/165 twitter:card summary_large_image og:image https://opengraph.githubassets.com/109c3e36d47b183c70e79fe2495da2f1b5790d71fc6e357d98402000ee552835/SolidCode/SolidPython/issues/165 og:image:alt This is somewhat a feature request more than an issue really as I guess I'm attempting something a bit borderline here. According to OpenSCAD docs one should be able to use fonts "importing" them l... og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username rockstorm101 hostname github.com expected-hostname github.com None 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d turbo-cache-control no-preview go-import github.com/SolidCode/SolidPython git https://github.com/SolidCode/SolidPython.git octolytics-dimension-user_id 622839 octolytics-dimension-user_login SolidCode octolytics-dimension-repository_id 1377446 octolytics-dimension-repository_nwo SolidCode/SolidPython octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 1377446 octolytics-dimension-repository_network_root_nwo SolidCode/SolidPython turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 82560a55c6b2054555076f46e683151ee28a19bc ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.