Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bramstein
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
bramstein
10mo ago
Would love to hear or read more about this if it is public.
2.
▲
Webfont Handbook: Make the web a more efficient and readable environment
(abookapart.com)
2 points
by
bramstein
9y ago
|
0 comments
3.
▲
Web Font Anti-Patterns
(bramstein.com)
1 points
by
bramstein
11y ago
|
0 comments
4.
▲
by
bramstein
11y ago
You can, but then you're limited to a single font format and you would not gain any benefits from the browsers' ability to download in parallel. A lot of this will improve when HTTP/2 becomes more common (you can push resourc
5.
▲
by
bramstein
11y ago
There are several hacks. Almost all of them rely on using JavaScript to make a XMLHttpRequest to retrieve font data. This will force the browser to load the fonts earlier by working around the normal @font-face loading mechanism. Because yo
6.
▲
Preload Hints for Web Fonts
(bramstein.com)
17 points
by
bramstein
11y ago
|
9 comments
7.
▲
Detecting system fonts without Flash
(bramstein.com)
4 points
by
bramstein
11y ago
|
0 comments
8.
▲
by
bramstein
14y ago
I agree, hyphenation is crucial to proper line breaking. If you don't mind a JavaScript solution you can have a look at: * http://code.google.com/p/hyphenator/ * https://github.com/bramstein/hypher/
9.
▲
by
bramstein
14y ago
My colleague Tim Brown maintains a website containing links to all sorts of web typography resources: http://nicewebtype.com/
10.
▲
by
bramstein
14y ago
As mentioned above, Knuth's algorithms are implemented in many professional typesetting and layout applications. I think the people implementing those applications have great respect for Knuth (and Plass.) My impression is that the users of
11.
▲
by
bramstein
14y ago
I'm not totally sure, but I think the linear time papers I've read sacrifice some of the aspects of the original Knuth and Plass algorithm. I think some of those are going to be necessary to properly implement the Knuth and Plass algorithm
12.
▲
by
bramstein
14y ago
I'm really excited about this. While it is not the Knuth and Plass algorithm, it takes one of the nice features of it and proposes a simple algorithm to implement it. Implementing it should only be a minor adjustment to the text layout algo
13.
▲
by
bramstein
15y ago
I've been maintaining a jQuery plugin for the text-overflow property for a while. It works well in most cases: http://www.bramstein.com/projects/text-overflow/ You can see a test page here, which only works in Firefox due to the feature d
14.
▲
by
bramstein
15y ago
Author of the JS implementation here. Let me know if you have any questions about the implementation or problems integrating it. I was hoping someone would pick it up and integrate it with Readability-like service. (I've slowly been working
15.
▲
by
bramstein
16y ago
Thanks for the reference. I have also recently released my own JavaScript hyphenation engine: https://github.com/bramstein/Hypher It is quite small and fast, and mostly aimed at integration with other libraries, unlike Hyphenator.js (whic
16.
▲
by
bramstein
16y ago
I had a look at the problem and it seems to be related to the page transition animations (the amount of flicker seems corresponds to the animation steps.) I've created a ticket for this issue: https://github.com/Treesaver/treesaver/issues/
17.
▲
by
bramstein
16y ago
That looks like a bug, I've created a ticket for this issue: https://github.com/Treesaver/treesaver/issues#issue/147 Thanks for catching and reporting it.
18.
▲
by
bramstein
16y ago
I would also highly recommend "Digital Typography" by Knuth. It contains a more detailed description of the algorithm as well as many interesting historical and technical chapters on TeX, MetaFont and computer typesetting in general.
19.
▲
by
bramstein
16y ago
It is the whole paragraph as far as I can tell (I haven't seen the internals, just the output.)
20.
▲
by
bramstein
16y ago
As far as I know, this is the only implementation in JavaScript. It might be possible to turn this into a jQuery plugin at some point, but there are probably quite a couple of bugfixes and changes needed to turn this from a tech demo into a
21.
▲
by
bramstein
16y ago
Internet Explorer actually has this through the (almost standardized) text-justify CSS property. It still doesn't do hyphenation, but Hyphenator.js ( http://code.google.com/p/hyphenator/ ) fills that gap pretty nicely. Performance isn't a g
22.
▲
by
bramstein
16y ago
I have the same Chrome version, but I'm running Ubuntu. Perhaps it is a font issue. I will check it out later when I have access to a Mac. Thanks for reporting.
23.
▲
by
bramstein
16y ago
You probably could get it working, but the implementation isn't (yet) capable of dealing with arbitrary HTML. It only expects paragraphs and images. This is only a matter of implementation though, the core algorithm should be able to deal w
24.
▲
by
bramstein
16y ago
I honestly hadn't thought about printing it out yet. I had a quick look, and I think the issues you are seeing can probably be fixed. My initial plan was to render PDFs server-side, instead of relying on the browser's print mode.
25.
▲
by
bramstein
16y ago
Zooming is problematic, I haven't quite figured out a reliable way of fixing it yet. The problem is most apparent in Webkit based browsers, Firefox seems to handle it much better (though there are still some small problems--most can be fixe
26.
▲
by
bramstein
16y ago
That's probably a bug, what browser and operating system are you using?
27.
▲
by
bramstein
16y ago
If you're bothered by rivers and lack of hyphenation, check out a project I worked on a while ago, which implements the Knuth and Plass line breaking algorithm in JavaScript. Combined with Hyphenator.js, the results are nearly indistinguish
28.
▲
by
bramstein
16y ago
Very interesting. Are you also planning to go after the eBook market? On the technical side: are things like hyphenation and justification also on your todo/feature list? I've been thinking about putting my work on justification and hyphena
29.
▲
by
bramstein
16y ago
I played with the same idea a couple of years ago and published a library for it: * http://www.bramstein.com/projects/jfun/ * http://www.bramstein.com/articles/pattern-matching.html * http://www.bramstein.com/articles/advanced-pattern
30.
▲
by
bramstein
16y ago
You hit the nail on the head. The library is meant for applications that can not use CSS layout, because the algorithm they need is not possible in CSS, or because they are rendering to a context that does not have layout management such as
More ›