wentin / underlineJS

Pushing the boundary of browser typography rendering!
https://underlinejs.wentin.net
2.22k stars 80 forks source link

Status of project #33

Open mspae opened 8 years ago

mspae commented 8 years ago

Hey @wentin ! First off: excellent project, I have been looking for something like this for a long time.

I have delved a bit into the code and tried to adapt it to my needs. During the process I had a few thoughts I would very much like to discuss with you. I also took the liberty to implement some of the functionality mentioned. (See below)

I know it says in the README.md that you consider this lib to be primarily exploratory, but I think what with the browsers of today being the browsers they are (not that shitty anymore) and the CSS spec unfortunately still not including the kind of attributes you proposed, that this library could be more than just a proof-of-concept.

Here are a few things I would love to see implemented and which IMHO would make this lib really useable in a production environment.

So here are my changes in a nutshell (if you like I can open a pull request, you can see the commits here: https://github.com/mspae/underlineJS/commits/build-process):

{
  color, // text-underline-color
  position, // text-underline-position
  skip, // text-underline-skip
  width, // text-underline-width
  animate // causes the animate function (which is a method of the Underline instance) to trigger
}

Would love to hear what you think of this, Cheers!

oyeanuj commented 8 years ago

@mspae Thanks for putting together the above comment and code.

@wentin It would be great to be able to make it into a NPM package with animation being optional. Essentially, merge the PR that @mspae is offering!

mspae commented 8 years ago

@oyeanuj Since february I have sporadically worked on something which implements this functionality.

Using canvas: https://github.com/mspae/typographic-underline-canvas

… and using SVG: https://github.com/mspae/typograpic-underline-svg

Currently neither is release-ready, but if you (or anyone else) feels like working on it, feel free to adapt/write PRs. (Note that both libs are development code and might be broken)

Problems I have run into:

oyeanuj commented 7 years ago

@mspae Sorry, I am just seeing this. What was your eventual solution here?

@wentin Any thoughts on plans for this repo?

JamesTheHacker commented 5 years ago

Still not on NPM. Not sure on browser support either.