View Full Version : pixellock text
The app I'm working on now makes heavy use of clipping views and small text. I need to know of a reliable way of pixel locking the text so it never blurs. From what I understand, the clip function makes my text blurry. Should I go through my code and make all coordinates absolute numbers? As far as I can tell, setting pixellock="true" has no effect on views inside clipping areas. Clean looking text is essential to this feeling right for my clients.
Thanks Laszlo! :D
antun
07-10-2003, 08:45 AM
Hey Grig
I don't see it at all. Here's what I tried:
<canvas>
<view width="100" height="100" clip="true">
<text width="100" multiline="true">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat.
</text>
</view>
</canvas>
Are you getting blurring still? If so, can you upload a screenshot?
-Antun
I guess I should clarify. It happens only when using non-pixel coordinates for the x & y of the clipping view. Below is the code you used with x, y & pixellock added. The attached image is the resulting output.
<canvas>
<view x="1.5" y=".5" width="100" height="100" clip="true">
<text width="100" multiline="true" pixellock="true">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat.
</text>
</view>
</canvas>
antun
07-10-2003, 10:35 AM
I don't know if this helps you, but if you pixellock the view that does the clipping, it stops it blurring:
<canvas>
<view x="1.5" y=".5" width="100" height="100" clip="true"
pixellock="true">
<text width="100" multiline="true">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat.
</text>
</view>
</canvas>
-Antun
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.