Thread: Request Handwrite Recognition
View Single Post
Old 07-07-2010, 04:12 PM   #25
kenjennings
Edge User
 
Journal can render TEXT

Quote:
Originally Posted by kenjennings View Post
Ah. Yes, it looks like it is. Xournal File Format Here.
I was looking at the Xournal format and was intrigued by the lines:

Quote:
Starting with version 0.4, layers also contain text items. The format of a text item is:

<text font="..." size="..." x="..." y="..." color="...">... text ...</text>

The font attribute contains the font name, for example "Serif Bold Italic"; if the font is not available, another font will be substituted. The size attribute specifies the font size in points. The x and y attributes specify the coordinates of the top-left corner of the text box in page coordinates (measured in points from the top-left corner of the page). Finally, the color attribute contains either the name of a standard color or a hexadecimal RGBA value (see above).
Since the version number in the header of the edge journal file seems to be at least 0.4, I figured I'd give it a shot and edited the file, adding:

Code:
<text font="SanSerif" size="16" x="100.00" y="100.00" color="magenta">
Magenta TEXT
</text>
Re-gzip the file, copy it to the edge, open the test Journal file, and whaddya know -- The edge renders a line of text on the eInk page in an arial-like font that says, "Magenta TEXT". When I use the camera to snapshot it to the LCD, it is actually displayed in Magenta. Kewl.

Last edited by kenjennings; 07-07-2010 at 05:02 PM.