2010-05-14 05:29:53 +02:00
|
|
|
// Copyright 2010 The Freetype-Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by your choice of either the
|
2010-08-03 03:07:23 +02:00
|
|
|
// FreeType License or the GNU General Public License version 2 (or
|
|
|
|
// any later version), both of which can be found in the LICENSE file.
|
2010-05-14 05:29:53 +02:00
|
|
|
|
|
|
|
// The freetype package provides a convenient API to draw text onto an image.
|
|
|
|
// Use the freetype/raster and freetype/truetype packages for lower level
|
|
|
|
// control over rasterization and TrueType parsing.
|
2015-08-12 06:34:19 +02:00
|
|
|
package freetype // import "github.com/golang/freetype"
|
2010-05-14 05:29:53 +02:00
|
|
|
|
|
|
|
import (
|
2011-11-08 00:38:49 +01:00
|
|
|
"errors"
|
2010-09-09 11:22:48 +02:00
|
|
|
"image"
|
2011-06-05 06:47:45 +02:00
|
|
|
"image/draw"
|
2011-12-23 00:55:36 +01:00
|
|
|
|
2015-08-12 06:30:01 +02:00
|
|
|
"github.com/golang/freetype/raster"
|
|
|
|
"github.com/golang/freetype/truetype"
|
2015-08-17 02:26:09 +02:00
|
|
|
"golang.org/x/image/math/fixed"
|
2010-05-14 05:29:53 +02:00
|
|
|
)
|
|
|
|
|
2010-09-09 11:22:48 +02:00
|
|
|
// These constants determine the size of the glyph cache. The cache is keyed
|
|
|
|
// primarily by the glyph index modulo nGlyphs, and secondarily by sub-pixel
|
|
|
|
// position for the mask image. Sub-pixel positions are quantized to
|
|
|
|
// nXFractions possible values in both the x and y directions.
|
|
|
|
const (
|
|
|
|
nGlyphs = 256
|
|
|
|
nXFractions = 4
|
|
|
|
nYFractions = 1
|
|
|
|
)
|
|
|
|
|
|
|
|
// An entry in the glyph cache is keyed explicitly by the glyph index and
|
|
|
|
// implicitly by the quantized x and y fractional offset. It maps to a mask
|
|
|
|
// image and an offset.
|
|
|
|
type cacheEntry struct {
|
2014-01-13 23:58:07 +01:00
|
|
|
valid bool
|
|
|
|
glyph truetype.Index
|
2015-08-17 02:26:09 +02:00
|
|
|
advanceWidth fixed.Int26_6
|
2014-01-13 23:58:07 +01:00
|
|
|
mask *image.Alpha
|
|
|
|
offset image.Point
|
2010-09-09 11:22:48 +02:00
|
|
|
}
|
|
|
|
|
2010-05-14 05:29:53 +02:00
|
|
|
// ParseFont just calls the Parse function from the freetype/truetype package.
|
|
|
|
// It is provided here so that code that imports this package doesn't need
|
|
|
|
// to also include the freetype/truetype package.
|
2011-11-08 00:38:49 +01:00
|
|
|
func ParseFont(b []byte) (*truetype.Font, error) {
|
2010-05-14 05:29:53 +02:00
|
|
|
return truetype.Parse(b)
|
|
|
|
}
|
|
|
|
|
2015-08-17 02:26:09 +02:00
|
|
|
// Pt converts from a co-ordinate pair measured in pixels to a fixed.Point26_6
|
|
|
|
// co-ordinate pair measured in fixed.Int26_6 units.
|
|
|
|
func Pt(x, y int) fixed.Point26_6 {
|
|
|
|
return fixed.Point26_6{
|
|
|
|
X: fixed.Int26_6(x << 6),
|
|
|
|
Y: fixed.Int26_6(y << 6),
|
2012-05-07 14:52:01 +02:00
|
|
|
}
|
2010-05-14 05:29:53 +02:00
|
|
|
}
|
|
|
|
|
2014-02-01 04:12:48 +01:00
|
|
|
// Hinting is the policy for snapping a glyph's contours to pixel boundaries.
|
|
|
|
type Hinting int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
// NoHinting means to not perform any hinting.
|
|
|
|
NoHinting = Hinting(truetype.NoHinting)
|
|
|
|
// FullHinting means to use the font's hinting instructions.
|
|
|
|
FullHinting = Hinting(truetype.FullHinting)
|
|
|
|
)
|
|
|
|
|
2010-05-28 07:22:49 +02:00
|
|
|
// A Context holds the state for drawing text in a given font and size.
|
|
|
|
type Context struct {
|
2010-05-14 05:29:53 +02:00
|
|
|
r *raster.Rasterizer
|
|
|
|
font *truetype.Font
|
|
|
|
glyphBuf *truetype.GlyphBuf
|
2010-09-13 10:20:47 +02:00
|
|
|
// clip is the clip rectangle for drawing.
|
|
|
|
clip image.Rectangle
|
2010-09-09 11:22:48 +02:00
|
|
|
// dst and src are the destination and source images for drawing.
|
|
|
|
dst draw.Image
|
|
|
|
src image.Image
|
2012-07-25 14:10:25 +02:00
|
|
|
// fontSize and dpi are used to calculate scale. scale is the number of
|
2014-02-01 04:12:48 +01:00
|
|
|
// 26.6 fixed point units in 1 em. hinting is the hinting policy.
|
2012-07-25 14:10:25 +02:00
|
|
|
fontSize, dpi float64
|
|
|
|
scale int32
|
2014-02-01 04:12:48 +01:00
|
|
|
hinting Hinting
|
2010-09-09 11:22:48 +02:00
|
|
|
// cache is the glyph cache.
|
|
|
|
cache [nGlyphs * nXFractions * nYFractions]cacheEntry
|
2010-05-14 05:29:53 +02:00
|
|
|
}
|
|
|
|
|
2010-07-01 01:42:43 +02:00
|
|
|
// PointToFix32 converts the given number of points (as in ``a 12 point font'')
|
2010-05-14 05:29:53 +02:00
|
|
|
// into fixed point units.
|
2015-08-17 02:26:09 +02:00
|
|
|
func (c *Context) PointToFix32(x float64) fixed.Int26_6 {
|
|
|
|
return fixed.Int26_6(x * float64(c.dpi) * (64.0 / 72.0))
|
2010-05-14 05:29:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// drawContour draws the given closed contour with the given offset.
|
2015-08-17 02:26:09 +02:00
|
|
|
func (c *Context) drawContour(ps []truetype.Point, dx, dy fixed.Int26_6) {
|
2010-05-14 05:29:53 +02:00
|
|
|
if len(ps) == 0 {
|
|
|
|
return
|
|
|
|
}
|
2015-03-09 01:32:30 +01:00
|
|
|
|
|
|
|
// The low bit of each point's Flags value is whether the point is on the
|
|
|
|
// curve. Truetype fonts only have quadratic Bézier curves, not cubics.
|
|
|
|
// Thus, two consecutive off-curve points imply an on-curve point in the
|
|
|
|
// middle of those two.
|
|
|
|
//
|
|
|
|
// See http://chanae.walon.org/pub/ttf/ttf_glyphs.htm for more details.
|
|
|
|
|
|
|
|
// ps[0] is a truetype.Point measured in FUnits and positive Y going
|
|
|
|
// upwards. start is the same thing measured in fixed point units and
|
|
|
|
// positive Y going downwards, and offset by (dx, dy).
|
2015-08-17 02:26:09 +02:00
|
|
|
start := fixed.Point26_6{
|
|
|
|
X: dx + fixed.Int26_6(ps[0].X),
|
|
|
|
Y: dy - fixed.Int26_6(ps[0].Y),
|
2010-05-14 05:29:53 +02:00
|
|
|
}
|
2015-03-09 01:32:30 +01:00
|
|
|
others := []truetype.Point(nil)
|
|
|
|
if ps[0].Flags&0x01 != 0 {
|
|
|
|
others = ps[1:]
|
|
|
|
} else {
|
2015-08-17 02:26:09 +02:00
|
|
|
last := fixed.Point26_6{
|
|
|
|
X: dx + fixed.Int26_6(ps[len(ps)-1].X),
|
|
|
|
Y: dy - fixed.Int26_6(ps[len(ps)-1].Y),
|
2015-03-09 01:32:30 +01:00
|
|
|
}
|
|
|
|
if ps[len(ps)-1].Flags&0x01 != 0 {
|
|
|
|
start = last
|
|
|
|
others = ps[:len(ps)-1]
|
|
|
|
} else {
|
2015-08-17 02:26:09 +02:00
|
|
|
start = fixed.Point26_6{
|
2015-03-09 01:32:30 +01:00
|
|
|
X: (start.X + last.X) / 2,
|
|
|
|
Y: (start.Y + last.Y) / 2,
|
|
|
|
}
|
|
|
|
others = ps
|
|
|
|
}
|
|
|
|
}
|
2010-05-14 05:29:53 +02:00
|
|
|
c.r.Start(start)
|
|
|
|
q0, on0 := start, true
|
2015-03-09 01:32:30 +01:00
|
|
|
for _, p := range others {
|
2015-08-17 02:26:09 +02:00
|
|
|
q := fixed.Point26_6{
|
|
|
|
X: dx + fixed.Int26_6(p.X),
|
|
|
|
Y: dy - fixed.Int26_6(p.Y),
|
2010-05-14 05:29:53 +02:00
|
|
|
}
|
|
|
|
on := p.Flags&0x01 != 0
|
|
|
|
if on {
|
|
|
|
if on0 {
|
|
|
|
c.r.Add1(q)
|
|
|
|
} else {
|
|
|
|
c.r.Add2(q0, q)
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if on0 {
|
|
|
|
// No-op.
|
|
|
|
} else {
|
2015-08-17 02:26:09 +02:00
|
|
|
mid := fixed.Point26_6{
|
2012-05-07 14:52:01 +02:00
|
|
|
X: (q0.X + q.X) / 2,
|
|
|
|
Y: (q0.Y + q.Y) / 2,
|
2010-05-14 05:29:53 +02:00
|
|
|
}
|
|
|
|
c.r.Add2(q0, mid)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
q0, on0 = q, on
|
|
|
|
}
|
|
|
|
// Close the curve.
|
|
|
|
if on0 {
|
|
|
|
c.r.Add1(start)
|
|
|
|
} else {
|
|
|
|
c.r.Add2(q0, start)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-01-13 23:58:07 +01:00
|
|
|
// rasterize returns the advance width, glyph mask and integer-pixel offset
|
|
|
|
// to render the given glyph at the given sub-pixel offsets.
|
2010-09-09 11:22:48 +02:00
|
|
|
// The 24.8 fixed point arguments fx and fy must be in the range [0, 1).
|
2015-08-17 02:26:09 +02:00
|
|
|
func (c *Context) rasterize(glyph truetype.Index, fx, fy fixed.Int26_6) (
|
|
|
|
fixed.Int26_6, *image.Alpha, image.Point, error) {
|
2014-01-13 23:58:07 +01:00
|
|
|
|
2014-02-01 04:12:48 +01:00
|
|
|
if err := c.glyphBuf.Load(c.font, c.scale, glyph, truetype.Hinting(c.hinting)); err != nil {
|
2014-01-13 23:58:07 +01:00
|
|
|
return 0, nil, image.Point{}, err
|
2010-09-09 11:22:48 +02:00
|
|
|
}
|
|
|
|
// Calculate the integer-pixel bounds for the glyph.
|
2015-08-17 02:26:09 +02:00
|
|
|
xmin := int(fx+fixed.Int26_6(c.glyphBuf.B.XMin)) >> 6
|
|
|
|
ymin := int(fy-fixed.Int26_6(c.glyphBuf.B.YMax)) >> 6
|
|
|
|
xmax := int(fx+fixed.Int26_6(c.glyphBuf.B.XMax)+0xff) >> 6
|
|
|
|
ymax := int(fy-fixed.Int26_6(c.glyphBuf.B.YMin)+0xff) >> 6
|
2010-09-09 11:22:48 +02:00
|
|
|
if xmin > xmax || ymin > ymax {
|
2014-01-13 23:58:07 +01:00
|
|
|
return 0, nil, image.Point{}, errors.New("freetype: negative sized glyph")
|
2010-09-09 11:22:48 +02:00
|
|
|
}
|
|
|
|
// A TrueType's glyph's nodes can have negative co-ordinates, but the
|
2015-08-17 02:26:09 +02:00
|
|
|
// rasterizer clips anything left of x=0 or above y=0. xmin and ymin are
|
|
|
|
// the pixel offsets, based on the font's FUnit metrics, that let a
|
|
|
|
// negative co-ordinate in TrueType space be non-negative in rasterizer
|
|
|
|
// space. xmin and ymin are typically <= 0.
|
|
|
|
fx += fixed.Int26_6(-xmin << 6)
|
|
|
|
fy += fixed.Int26_6(-ymin << 6)
|
2010-09-09 11:22:48 +02:00
|
|
|
// Rasterize the glyph's vectors.
|
|
|
|
c.r.Clear()
|
|
|
|
e0 := 0
|
|
|
|
for _, e1 := range c.glyphBuf.End {
|
|
|
|
c.drawContour(c.glyphBuf.Point[e0:e1], fx, fy)
|
|
|
|
e0 = e1
|
|
|
|
}
|
2011-09-14 14:02:41 +02:00
|
|
|
a := image.NewAlpha(image.Rect(0, 0, xmax-xmin, ymax-ymin))
|
2010-10-12 07:55:01 +02:00
|
|
|
c.r.Rasterize(raster.NewAlphaSrcPainter(a))
|
2015-08-17 02:26:09 +02:00
|
|
|
return fixed.Int26_6(c.glyphBuf.AdvanceWidth), a, image.Point{xmin, ymin}, nil
|
2010-09-09 11:22:48 +02:00
|
|
|
}
|
|
|
|
|
2014-01-13 23:58:07 +01:00
|
|
|
// glyph returns the advance width, glyph mask and integer-pixel offset to
|
|
|
|
// render the given glyph at the given sub-pixel point. It is a cache for the
|
|
|
|
// rasterize method. Unlike rasterize, p's co-ordinates do not have to be in
|
|
|
|
// the range [0, 1).
|
2015-08-17 02:26:09 +02:00
|
|
|
func (c *Context) glyph(glyph truetype.Index, p fixed.Point26_6) (
|
|
|
|
fixed.Int26_6, *image.Alpha, image.Point, error) {
|
2014-01-13 23:58:07 +01:00
|
|
|
|
2010-09-09 11:22:48 +02:00
|
|
|
// Split p.X and p.Y into their integer and fractional parts.
|
2015-08-17 02:26:09 +02:00
|
|
|
ix, fx := int(p.X>>6), p.X&0x3f
|
|
|
|
iy, fy := int(p.Y>>6), p.Y&0x3f
|
2010-09-09 11:22:48 +02:00
|
|
|
// Calculate the index t into the cache array.
|
|
|
|
tg := int(glyph) % nGlyphs
|
2015-08-17 02:26:09 +02:00
|
|
|
tx := int(fx) / (64 / nXFractions)
|
|
|
|
ty := int(fy) / (64 / nYFractions)
|
2010-09-09 11:22:48 +02:00
|
|
|
t := ((tg*nXFractions)+tx)*nYFractions + ty
|
|
|
|
// Check for a cache hit.
|
2014-01-13 23:58:07 +01:00
|
|
|
if e := c.cache[t]; e.valid && e.glyph == glyph {
|
|
|
|
return e.advanceWidth, e.mask, e.offset.Add(image.Point{ix, iy}), nil
|
2010-09-09 11:22:48 +02:00
|
|
|
}
|
|
|
|
// Rasterize the glyph and put the result into the cache.
|
2014-01-13 23:58:07 +01:00
|
|
|
advanceWidth, mask, offset, err := c.rasterize(glyph, fx, fy)
|
2010-09-09 11:22:48 +02:00
|
|
|
if err != nil {
|
2014-01-13 23:58:07 +01:00
|
|
|
return 0, nil, image.Point{}, err
|
2010-09-09 11:22:48 +02:00
|
|
|
}
|
2014-01-13 23:58:07 +01:00
|
|
|
c.cache[t] = cacheEntry{true, glyph, advanceWidth, mask, offset}
|
|
|
|
return advanceWidth, mask, offset.Add(image.Point{ix, iy}), nil
|
2010-09-09 11:22:48 +02:00
|
|
|
}
|
|
|
|
|
2010-09-15 06:35:22 +02:00
|
|
|
// DrawString draws s at p and returns p advanced by the text extent. The text
|
2010-09-09 11:22:48 +02:00
|
|
|
// is placed so that the left edge of the em square of the first character of s
|
2010-09-15 06:35:22 +02:00
|
|
|
// and the baseline intersect at p. The majority of the affected pixels will be
|
|
|
|
// above and to the right of the point, but some may be below or to the left.
|
|
|
|
// For example, drawing a string that starts with a 'J' in an italic font may
|
|
|
|
// affect pixels below and left of the point.
|
2015-08-17 02:26:09 +02:00
|
|
|
//
|
|
|
|
// p is a fixed.Point26_6 and can therefore represent sub-pixel positions.
|
|
|
|
func (c *Context) DrawString(s string, p fixed.Point26_6) (fixed.Point26_6, error) {
|
2010-05-14 05:29:53 +02:00
|
|
|
if c.font == nil {
|
2015-08-17 02:26:09 +02:00
|
|
|
return fixed.Point26_6{}, errors.New("freetype: DrawText called with a nil font")
|
2010-05-14 05:29:53 +02:00
|
|
|
}
|
|
|
|
prev, hasPrev := truetype.Index(0), false
|
2010-09-09 11:22:48 +02:00
|
|
|
for _, rune := range s {
|
|
|
|
index := c.font.Index(rune)
|
2010-05-14 05:29:53 +02:00
|
|
|
if hasPrev {
|
2015-08-17 02:26:09 +02:00
|
|
|
kern := fixed.Int26_6(c.font.Kerning(c.scale, prev, index))
|
2014-02-01 04:12:48 +01:00
|
|
|
if c.hinting != NoHinting {
|
2015-08-17 02:26:09 +02:00
|
|
|
kern = (kern + 32) &^ 63
|
2014-02-01 04:12:48 +01:00
|
|
|
}
|
|
|
|
p.X += kern
|
2010-05-14 05:29:53 +02:00
|
|
|
}
|
2014-01-13 23:58:07 +01:00
|
|
|
advanceWidth, mask, offset, err := c.glyph(index, p)
|
2010-09-09 11:22:48 +02:00
|
|
|
if err != nil {
|
2015-08-17 02:26:09 +02:00
|
|
|
return fixed.Point26_6{}, err
|
2010-05-14 05:29:53 +02:00
|
|
|
}
|
2014-01-13 23:58:07 +01:00
|
|
|
p.X += advanceWidth
|
2010-09-13 10:20:47 +02:00
|
|
|
glyphRect := mask.Bounds().Add(offset)
|
|
|
|
dr := c.clip.Intersect(glyphRect)
|
|
|
|
if !dr.Empty() {
|
|
|
|
mp := image.Point{0, dr.Min.Y - glyphRect.Min.Y}
|
|
|
|
draw.DrawMask(c.dst, dr, c.src, image.ZP, mask, mp, draw.Over)
|
|
|
|
}
|
2010-05-14 05:29:53 +02:00
|
|
|
prev, hasPrev = index, true
|
|
|
|
}
|
2010-09-15 06:35:22 +02:00
|
|
|
return p, nil
|
2010-05-14 05:29:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// recalc recalculates scale and bounds values from the font size, screen
|
2010-09-09 11:22:48 +02:00
|
|
|
// resolution and font metrics, and invalidates the glyph cache.
|
2010-05-28 07:22:49 +02:00
|
|
|
func (c *Context) recalc() {
|
2012-07-25 14:10:25 +02:00
|
|
|
c.scale = int32(c.fontSize * c.dpi * (64.0 / 72.0))
|
2010-05-14 05:29:53 +02:00
|
|
|
if c.font == nil {
|
2010-09-09 11:22:48 +02:00
|
|
|
c.r.SetBounds(0, 0)
|
2010-05-14 05:29:53 +02:00
|
|
|
} else {
|
2010-09-09 11:22:48 +02:00
|
|
|
// Set the rasterizer's bounds to be big enough to handle the largest glyph.
|
2012-07-25 14:10:25 +02:00
|
|
|
b := c.font.Bounds(c.scale)
|
|
|
|
xmin := +int(b.XMin) >> 6
|
|
|
|
ymin := -int(b.YMax) >> 6
|
|
|
|
xmax := +int(b.XMax+63) >> 6
|
|
|
|
ymax := -int(b.YMin-63) >> 6
|
2010-09-09 11:22:48 +02:00
|
|
|
c.r.SetBounds(xmax-xmin, ymax-ymin)
|
|
|
|
}
|
|
|
|
for i := range c.cache {
|
|
|
|
c.cache[i] = cacheEntry{}
|
2010-05-14 05:29:53 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetDPI sets the screen resolution in dots per inch.
|
2012-07-25 14:10:25 +02:00
|
|
|
func (c *Context) SetDPI(dpi float64) {
|
2010-09-09 11:22:48 +02:00
|
|
|
if c.dpi == dpi {
|
|
|
|
return
|
|
|
|
}
|
2010-05-14 05:29:53 +02:00
|
|
|
c.dpi = dpi
|
|
|
|
c.recalc()
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetFont sets the font used to draw text.
|
2010-05-28 07:22:49 +02:00
|
|
|
func (c *Context) SetFont(font *truetype.Font) {
|
2010-09-09 11:22:48 +02:00
|
|
|
if c.font == font {
|
|
|
|
return
|
|
|
|
}
|
2010-05-14 05:29:53 +02:00
|
|
|
c.font = font
|
|
|
|
c.recalc()
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetFontSize sets the font size in points (as in ``a 12 point font'').
|
2011-01-21 02:27:50 +01:00
|
|
|
func (c *Context) SetFontSize(fontSize float64) {
|
2010-09-09 11:22:48 +02:00
|
|
|
if c.fontSize == fontSize {
|
|
|
|
return
|
|
|
|
}
|
2010-05-14 05:29:53 +02:00
|
|
|
c.fontSize = fontSize
|
|
|
|
c.recalc()
|
|
|
|
}
|
|
|
|
|
2014-02-01 04:12:48 +01:00
|
|
|
// SetHinting sets the hinting policy.
|
|
|
|
func (c *Context) SetHinting(hinting Hinting) {
|
|
|
|
c.hinting = hinting
|
|
|
|
for i := range c.cache {
|
|
|
|
c.cache[i] = cacheEntry{}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-09-09 11:22:48 +02:00
|
|
|
// SetDst sets the destination image for draw operations.
|
|
|
|
func (c *Context) SetDst(dst draw.Image) {
|
|
|
|
c.dst = dst
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetSrc sets the source image for draw operations. This is typically an
|
2012-05-07 13:07:08 +02:00
|
|
|
// image.Uniform.
|
2010-09-09 11:22:48 +02:00
|
|
|
func (c *Context) SetSrc(src image.Image) {
|
|
|
|
c.src = src
|
|
|
|
}
|
|
|
|
|
2010-09-13 10:20:47 +02:00
|
|
|
// SetClip sets the clip rectangle for drawing.
|
|
|
|
func (c *Context) SetClip(clip image.Rectangle) {
|
|
|
|
c.clip = clip
|
|
|
|
}
|
|
|
|
|
2010-09-09 11:22:48 +02:00
|
|
|
// TODO(nigeltao): implement Context.SetGamma.
|
|
|
|
|
2010-05-28 07:22:49 +02:00
|
|
|
// NewContext creates a new Context.
|
|
|
|
func NewContext() *Context {
|
|
|
|
return &Context{
|
2010-05-14 05:29:53 +02:00
|
|
|
r: raster.NewRasterizer(0, 0),
|
|
|
|
glyphBuf: truetype.NewGlyphBuf(),
|
|
|
|
fontSize: 12,
|
|
|
|
dpi: 72,
|
2012-07-25 14:10:25 +02:00
|
|
|
scale: 12 << 6,
|
2010-05-14 05:29:53 +02:00
|
|
|
}
|
|
|
|
}
|