Motion - Text Scaling Patch

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>
gunzip text_size-0.06.patch.gz
patch -p2 < text_size-0.06.patch
make clean
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.

Discussion and Comments

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.

-- AndrewHamilton - 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.

-- AndrewHamilton - 29 Jul 2005

Short question. Does this patch contain the changes from the NewDrawTextMethod patch or do I need to apply the other first?

-- KennethLavrsen - 02 Aug 2005

Yes, this patch does already contain the changes made by NewDrawTextMethod.

-- AndrewHamilton - 02 Aug 2005
Topic attachments
I Attachment Action Size Date Who Comment
text_size-0.01.patch.gzgz text_size-0.01.patch.gz manage 4 K 22 Jul 2005 - 20:46 AndrewHamilton Initial Version. Against motion-3.2.2_snap7
text_size-0.02.patch.gzgz text_size-0.02.patch.gz manage 4 K 25 Jul 2005 - 05:00 AndrewHamilton Don't spam the logs. Against motion-3.2.2_snap7
text_size-0.03.patch.gzgz text_size-0.03.patch.gz manage 4 K 26 Jul 2005 - 19:40 AndrewHamilton Works better with webhttpd now. Against motion-3.2.2_snap7
text_size-0.04.patch.gzgz text_size-0.04.patch.gz manage 4 K 29 Jul 2005 - 03:41 AndrewHamilton No more 3-4x text size, threads work with it now. Against motion-3.2.2_snap7
text_size-0.05.patch.gzgz text_size-0.05.patch.gz manage 4 K 01 Aug 2005 - 20:37 AndrewHamilton Against motion-3.2.2_snap8
text_size-0.06.patch.gzgz text_size-0.06.patch.gz manage 4 K 01 Aug 2005 - 20:51 AndrewHamilton Fix position of text when text_double is turned off via the web. Against motion-3.2.2_snap8.
Topic revision: r11 - 13 Aug 2005, KennethLavrsen
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.