Text Scaling Patch
This patch allows the text drawn on Motion images to be normal or double size.
Description of Patch
Based upon the previous patch, NewDrawTextMethod
, this patch allows the user to scale text to a larger size.
This is useful for larger images. Characters are scaled during Motion's initialization rather than 'on the fly' to reduce costly calculations. The scaled characters are stored into a structure called 'big_table'.
Installation of Patch
cd <motion dir>
patch -p2 < text_size-0.06.patch
make install (as root if needed)
Change History of Patch
0.01 Initial Version. Characters can be scaled from 2 to 4 times normal size. Patch is against Motion-3.2.2_snap7.
0.02 Fixed a problem with errors being logged that didn't really happen.
0.03 Changing the text_size via the web interface works better now. There is still a problem with setting for individual threads.
0.04 Characters can be double or normal size, not 3-4x. int 'text_size' changed to bool 'text_double'.
0.05 Patch is now against motion-3.2.2_snap8.
0.06 Fixed the position of text when text_double is turned off via the web interface.
I have noticed that when setting text_size for an individual thread, both the normal and large text is drawn. This is strange and shouldn't happen.
- 23 Jul 2005
I have fixed the problem (I think) with setting 'text_double' for individual threads. As you may or may not have noticed, 3 and 4 times text scaling is gone. I'm not sure it was necessary, and it was creating too many problems. The config file parameter name has changed from 'text_size' to 'text_double' and is now a bool.
- 29 Jul 2005
Short question. Does this patch contain the changes from the NewDrawTextMethod
patch or do I need to apply the other first?
- 02 Aug 2005
Yes, this patch does already contain the changes made by NewDrawTextMethod
- 02 Aug 2005