-
Notifications
You must be signed in to change notification settings - Fork 34
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
Support display of styled text #70
Comments
I will note in passing based that this enhancement will require extensive changes probably extending into |
Are varying line heights the only change required in devdraw? I wouldn't initially expect that bold/italic/colouring would affect the heights, but perhaps I'm missing something. |
I'd like to support fonts of differing sizes. |
The reason I ask is that I'm curious whether edwood would work or continue to work in plan 9 with a change to the draw interface. Perhaps that is not a design goal for this project, but I thought I would ask. |
I note the following.
|
Hm. Then again, maybe |
Thank you for the clarification. I would like to give this a try on Plan 9/9front at some point. I'm personally ok with using 9front and even proposing or working on extensions to draw there. I think that it would be interesting to be able to auto-probe whether the draw(3) files support the extensions or not before using the new commands. Maybe even 3D graphics commands could work this way some day in the future. In terms of styled text and godoc styling I don't know if I would need variable heights. I personally would be quite happy to have a little colour, some bold/underline similar to man pages in Linux/Mac. Kind of in between the pure text godoc and the HTML godoc. Full and rich styling is something that PDF viewers and web browsers excel along with all of the baggage that comes with that. |
Summary of idea: Edwood should permit an external program to set styles (bold, italics, etc.) on ranges of text. Use cases would include
win
External program would connect to the Edwood (aka Acme) filesystem and write style data to one of the special files. i.e.:
would get two new entries:
or something like that. And styling could be written to the
bodystyle
ortagstyle
files.The text was updated successfully, but these errors were encountered: