It is a myth that Wittgenstein's acquaintance with Kant's thought is due to him reading Schopenhauer in his teenage years. In my humble opinion, Schopenhauer wasn't a very perceptive reader of Kant, so I doubt that Wittgenstein learned any deeper Kantian ideas from him. That is, however, not the only reason to doubt this pervasive thesis, since Wittgenstein in the Tractatus references one thinker twice: Heinrich Hertz. Hertz was, of course, primarily a physicist, and not a philosopher, however he was under strong Kantian influence. And, whatever Kantian ideas we find in the Tractatus, most of them are also present in Hertz. Another Kantian physicist that Wittgenstein was influenced by is Ludwig Boltzmann. Wittgenstein writes:
There is truth in my idea that really in my thinking I am only
reproductive. I believe that I have never invented a new line of
thought: that has always been given me by someone else. I have only
seized on it immediately with a passionate urge for the work of
clarification. That is how Boltzmann, Hertz, Schopenhauer, Frege,
Russell, Kraus, Loos, Weininger, Spengler, Sraffa influenced me.
So, although it is undeniable that Schopenhauer influenced Wittgenstein, the main content of his picture theory of language is actually present already in Hertz and Boltzmann (Wittgenstein originally wanted to study under Boltzmann, before the latter's suicide in 1906). And both physicists were deeply influenced by Kant, including certain "idealist" ideas.
An interesting fact is that the various picture theories of Hertz etc. were originally contrasted with empiricism, whereas the logical empiricists read Wittgenstein, also a picture-theorists, as an empiricist, and not a Kantian.
David Hyder wrote extensively about influence of Kant on Hertz and also about influence of Hertz on Wittgenstein. There are some of his writings:
- Mechanics of Meaning: Propositional Content and the Logical Space of Wittgenstein's Tractatus
- Kantian Metaphysics and Hertzian Mechanics
- Time, Norms and Structure in Nineteenth-Century Philosophy of Science