Compare commits
No commits in common. "6e3e288628a674c4465d0c3a37c51574600dd9a5" and "0beef86c586ea64b8133104d2e1ebc6a96796360" have entirely different histories.
6e3e288628
...
0beef86c58
@ -5,4 +5,4 @@
|
||||
Typeset provides utilities for text layout, wrapping, and rendering.
|
||||
|
||||
The state of a text layout is stored in a TypeSetter, and it can be drawn to any
|
||||
draw.Image using a Drawer which "extends" TypeSetter.
|
||||
image.Image using a Drawer which "extends" TypeSetter.
|
||||
|
@ -386,10 +386,10 @@ func (setter *TypeSetter) MinimumSize () image.Point {
|
||||
return image.Pt(width.Round(), height.Round())
|
||||
}
|
||||
|
||||
// RecommendedHeight returns the reccomended max height if the text were to have
|
||||
// its maximum width set to the given width. This does not alter the
|
||||
// ReccomendedHeightFor returns the reccomended max height if the text were to
|
||||
// have its maximum width set to the given width. This does not alter the
|
||||
// typesetter's state.
|
||||
func (setter *TypeSetter) RecommendedHeight (width int) (height int) {
|
||||
func (setter *TypeSetter) ReccomendedHeightFor (width int) (height int) {
|
||||
setter.needLayout()
|
||||
|
||||
if setter.lines == nil { return }
|
||||
|
Loading…
Reference in New Issue
Block a user