I tried to merge some constants used both in legacy mode and gal mode (which were, before this patch, separate constants). There is still a serious work to avoid different calculation code for the same text in draw and plot functions. Work in progress to merge these calculation functions.