Origin - Straight as a dye

Do you have any ideas as to the origin of Straight as a Dye.

I believe this phrase comes from the printing industry where the " dyes " that contained the letters to produce the newspaper had to be perfectly straight .