René's URL Explorer Experiment


Title: Having some trouble with vertical alignment · Issue #17 · treeform/pixie-python · GitHub

Open Graph Title: Having some trouble with vertical alignment · Issue #17 · treeform/pixie-python

X Title: Having some trouble with vertical alignment · Issue #17 · treeform/pixie-python

Description: I'm trying to have some text with two lines, aligned to the bottom of some bounds, and with a small line-height so that the two lines are closer together. However the text is not going where I would expect. It looks like it's going too d...

Open Graph Description: I'm trying to have some text with two lines, aligned to the bottom of some bounds, and with a small line-height so that the two lines are closer together. However the text is not going where I woul...

X Description: I'm trying to have some text with two lines, aligned to the bottom of some bounds, and with a small line-height so that the two lines are closer together. However the text is not going where I ...

Opengraph URL: https://github.com/treeform/pixie-python/issues/17

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Having some trouble with vertical alignment","articleBody":"I'm trying to have some text with two lines, aligned to the bottom of some bounds, and with a small line-height so that the two lines are closer together. However the text is not going where I would expect. It looks like it's going too downwards. When aligned to bottom it even goes outside the bounds. If I leave the line-height to default it also doesn't look right.\r\nAm I missing something?\r\n\r\nHere's an example and it's output:\r\n\r\n```python\r\nimport pixie\r\n\r\nimage = pixie.Image(800, 800)\r\nimage.fill(pixie.Color(1, 1, 1, 1))\r\n\r\npaint = pixie.Paint(pixie.PK_SOLID)\r\npaint.color = pixie.Color(1, 0, 0, 1)\r\nctx = image.new_context()\r\nctx.line_width = 1\r\nctx.stroke_style = paint\r\nctx.stroke_rect(0, 266, 800, 318)\r\n\r\ntext = \"AbCd\\naBcD\"\r\n\r\nfont = pixie.read_font(\"./Inter-Bold.otf\")\r\nfont.size = 182\r\nfont.line_height = 140\r\n\r\nfont.paint.color = pixie.Color(1, 0, 0, 1)\r\nimage.fill_text(\r\n    font,\r\n    text,\r\n    bounds = pixie.Vector2(800, 318),\r\n    h_align = pixie.HA_CENTER,\r\n    v_align = pixie.VA_TOP,\r\n    transform = pixie.translate(0, 266)\r\n)\r\n\r\nfont.paint.color = pixie.Color(0, 1, 0, 1)\r\nimage.fill_text(\r\n    font,\r\n    text,\r\n    bounds = pixie.Vector2(800, 318),\r\n    h_align = pixie.HA_CENTER,\r\n    v_align = pixie.VA_MIDDLE,\r\n    transform = pixie.translate(0, 266)\r\n)\r\n\r\nfont.paint.color = pixie.Color(0, 0, 1, 1)\r\nimage.fill_text(\r\n    font,\r\n    text,\r\n    bounds = pixie.Vector2(800, 318),\r\n    h_align = pixie.HA_CENTER,\r\n    v_align = pixie.VA_BOTTOM,\r\n    transform = pixie.translate(0, 266)\r\n)\r\n\r\nimage.write_file(\"out.png\")\r\n```\r\n\r\n![result](https://user-images.githubusercontent.com/19847464/154799538-041cec39-f652-44d8-9cf9-6899bf9a58d4.png)\r\n\r\n","author":{"url":"https://github.com/EnricoMonese","@type":"Person","name":"EnricoMonese"},"datePublished":"2022-02-19T11:57:37Z","url":"https://github.com/treeform/pixie-python/issues/17"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e055804e-14ad-ce39-bb6c-6d73143aacbd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC2E0:E08F0:A488DC:E65168:6B048A9B
html-safe-nonce181f2803129b0bda88df3af9d7256843f5070b16bcf8bf02928efd05233db9c1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkUwOkUwOEYwOkE0ODhEQzpFNjUxNjg6NkIwNDhBOUIiLCJ2aXNpdG9yX2lkIjoiMTc4NTQ1NDM0OTU0MDE2NjI5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca547ba637ee4ec1e7b0763c07e2b7842f7f5c54cc6bff843d6ab9a7a764bd04a
hovercard-subject-tagissue:1144676039
github-keyboard-shortcutsrepository,source-code,file-tree,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/treeform/pixie-python/17/issue_layout
twitter:imagehttps://opengraph.githubassets.com/50418fa88cf3bb09d510442b9f36e59470d7f0466a5e1426e8a2c429b4365f2e/treeform/pixie-python/issues/17
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/50418fa88cf3bb09d510442b9f36e59470d7f0466a5e1426e8a2c429b4365f2e/treeform/pixie-python/issues/17
og:image:altI'm trying to have some text with two lines, aligned to the bottom of some bounds, and with a small line-height so that the two lines are closer together. However the text is not going where I woul...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameEnricoMonese
hostnamegithub.com
expected-hostnamegithub.com
None1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70
turbo-cache-controlno-preview
go-importgithub.com/treeform/pixie-python git https://github.com/treeform/pixie-python.git
octolytics-dimension-user_id125948
octolytics-dimension-user_logintreeform
octolytics-dimension-repository_id399247825
octolytics-dimension-repository_nwotreeform/pixie-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id399247825
octolytics-dimension-repository_network_root_nwotreeform/pixie-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/treeform/pixie-python/issues/17#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftreeform%2Fpixie-python%2Fissues%2F17
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftreeform%2Fpixie-python%2Fissues%2F17
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=treeform%2Fpixie-python
Reloadhttps://github.com/treeform/pixie-python/issues/17
Reloadhttps://github.com/treeform/pixie-python/issues/17
Reloadhttps://github.com/treeform/pixie-python/issues/17
treeformhttps://github.com/treeform
pixie-pythonhttps://github.com/treeform/pixie-python
Codehttps://github.com/treeform/pixie-python
Issues7 (7)https://github.com/treeform/pixie-python/issues
Pull requestshttps://github.com/treeform/pixie-python/pulls
Actionshttps://github.com/treeform/pixie-python/actions
Projectshttps://github.com/treeform/pixie-python/projects
Security and qualityhttps://github.com/treeform/pixie-python/security
Insightshttps://github.com/treeform/pixie-python/pulse
https://github.com/treeform/pixie-python
New issuehttps://github.com/login?return_to=https://github.com/treeform/pixie-python/issues/17
New issuehttps://github.com/login?return_to=https://github.com/treeform/pixie-python/issues/17
treeform/pixie#386https://github.com/treeform/pixie/pull/386
Having some trouble with vertical alignmenthttps://github.com/treeform/pixie-python/issues/17#top
treeform/pixie#386https://github.com/treeform/pixie/pull/386
https://github.com/EnricoMonese
EnricoMonesehttps://github.com/EnricoMonese
on Feb 19, 2022https://github.com/treeform/pixie-python/issues/17#issue-1144676039
https://user-images.githubusercontent.com/19847464/154799538-041cec39-f652-44d8-9cf9-6899bf9a58d4.png
https://github.com/treeform
treeformhttps://github.com/treeform
on Feb 21, 2022https://github.com/treeform/pixie-python/issues/17#issuecomment-1047183848
https://user-images.githubusercontent.com/125948/155018043-648057fe-1ac4-4124-b382-b9edd48b2a7b.png
https://github.com/guzba
guzbahttps://github.com/guzba
on Feb 22, 2022https://github.com/treeform/pixie-python/issues/17#issuecomment-1048298559
treeformhttps://github.com/treeform
completedhttps://github.com/treeform/pixie-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
pixie#386https://github.com/treeform/pixie/pull/386
on Feb 23, 2022https://github.com/treeform/pixie-python/issues/17#event-6122065948
guzbahttps://github.com/guzba
on Feb 23, 2022https://github.com/treeform/pixie-python/issues/17#event-6122114987
https://github.com/guzba
guzbahttps://github.com/guzba
on Feb 23, 2022https://github.com/treeform/pixie-python/issues/17#issuecomment-1048468300
guzbahttps://github.com/guzba
completedhttps://github.com/treeform/pixie-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 23, 2022https://github.com/treeform/pixie-python/issues/17#event-6122649401
https://github.com/EnricoMonese
EnricoMonesehttps://github.com/EnricoMonese
on Feb 24, 2022https://github.com/treeform/pixie-python/issues/17#issuecomment-1049381885
Sign up for freehttps://github.com/signup?return_to=https://github.com/treeform/pixie-python/issues/17
Sign in to commenthttps://github.com/login?return_to=https://github.com/treeform/pixie-python/issues/17
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.