Comments (9)
CoreText has support we can wrap: https://developer.apple.com/documentation/coretext/ctwritingdirection?language=objc
from drawbot.
![image](https://private-user-images.githubusercontent.com/1190358/309820873-5c9b3fe8-684f-4d29-a937-e3ef035ae4fc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM0MTEyNDcsIm5iZiI6MTcyMzQxMDk0NywicGF0aCI6Ii8xMTkwMzU4LzMwOTgyMDg3My01YzliM2ZlOC02ODRmLTRkMjktYTkzNy1lM2VmMDM1YWU0ZmMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTFUMjExNTQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDRmZjVjNGY2YTE1NTc5M2ZlYWRhZGMxM2M0YjczNDc5ODc4ZTFjMmZkNDI5ODBmOTU4Y2IzOTc2ZTU1ZjQyNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.yGHjS45OUZq0wEZZi1vZkpMnWRh6RUritJGa6elIDQU)
a quick PR is comming (no test yet)
from drawbot.
It could possible be automated related to language('ar') but then we need to find out what the language direction is...
It is probably best not attempted as a single language can be written in two scripts with different directionality, e.g. Uzbek. But if you wanted contemporary defaults and used only the 2-letter codes, there are not that many…
from drawbot.
here the text Grtsk میتوان در بسیاری
from drawbot.
Yes, maybe we need a writingDirection()
function or something like it. I'm not sure how this should work internally.
from drawbot.
Can this be part of our language()
function, or do you think it's better to add a new API function?
from drawbot.
well a writingDirection(direction)
sound good and explicit...
with direction
options:
None
-> kCTWritingDirectionNatural (also the default)"l2r"
-> kCTWritingDirectionLeftToRight"r2l"
-> kCTWritingDirectionRightToLeft
It could possible be automated related to language('ar')
but then we need to find out what the language direction is...
from drawbot.
from drawbot.
true, @MrBrezina I prefer an explicit api, no magic guessing
from drawbot.
Related Issues (20)
- `textBoxCharacterBounds(align="center")` doesn’t seem to work HOT 2
- set CGContextSetAllowsFontSubpixelQuantization to False HOT 1
- font() does not support "dotted" font names, but installedFonts() does return them HOT 6
- variable font is not able to add glyphs by glyphName HOT 17
- ImageObject.opTile() error HOT 3
- ImageObject.dotScreen() not applying to shadow() HOT 2
- Black settings HOT 9
- feature request: full justification
- ImageObject.randomGenerator() yields a constant result HOT 2
- font issue or drawbot issue HOT 7
- Clean up requirements.txt and README.md, pin versions, use dependabot HOT 5
- Can't install noise using the built in pip installer, v3.130 HOT 1
- Some tests fail on macOS 14 HOT 1
- Install Python Packages causes deprecation warning under Python 3.12
- add support for lineDash phase HOT 1
- Remove defconAppKit dependency
- RGB color accuracy?
- Format codebase with Black
- Feature suggestion: vector format copy of rendered output
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drawbot.