Chamber's Colonial Virginia lock?
It is hard to judge what is off from the picture. But to my eye both the cock and the frizzen are out of line.
I'm judging the cock is off a bit from looking at the apparent small angle between the inside surface of the cock, and the lock plate. I'd remove the cock from the tumbler and press on by hand. Check to see if it wobbles on one axis or the other. Check to see if it wants to be aligned parallel to the lock plate. You can correct wobble with a little very careful filing with needle files or very careful stoning of the flats on the tumbler.
The frizzen looks rather off as well. But pictures can have distortion making it hard to be certain.
When the frizzen is closed, is the pan cover giving a light tight fit? Or do you see it tilted to the side? If you see it tilted to the side giving a wedge gap and the frizzen is tilted to the side the same way, then send the lock back for some work. Either the frizzen pivot screw holes in the lock plate were drilled at an angle, or the pivot hole in the frizzen was drilled at an angle.
If you see a wedge of light front-to-back, then you can (if you choose) carefully grind contact points away until you have a light-tight fit. It is like inletting in a way, just a heck of a lot slower! But that will have no effect on side-to-side alignment of the cock. It WILL affect the front-to-back alignment. Fitting will rotate the frizzen a little closer to the rear of the lock. That changes the angle the flint engages the frizzen. That might or might not be an advantage, depending on what you've got.
If the frizzen can laterally slide on the pivot, then that is a recipe for having a gap at the barrel - or gouging the barrel, depending on how it is aligned that particular time. That IMHO should be dealt with if it is an issue.
If the frizzen when opened can be rocked side-to-side then the hole in the frizzen is oversized. That is also not ideal.
Some of these things are easier to check with the frizzen spring removed. However it is how it behaves with the spring in place which matters most.
The alignment you show is with the frizzen partially opened. Check the alignment with the cock at half-cock, and the frizzen closed on the pan. How does it align then?
Just recently I heated a cock and reshaped it a little, to move the flint out a little bit to get it better centered on the frizzen. If the cock is secure parallel to the lock plate and the frizzen is fairly slop free and closes well on the pan, that is an option for correcting alignment. But really if it is off by much, something definitely isn't right. Talk to the manufacturer and give them first shot at making a correction. Then if it doesn't meet your satisfaction, you can probably still fix it yourself.
I recommend making certain the lock is in fine order before inletting...
Gerald
PS - See you just posted. It was the lock and gun I suspected. It's late so I'm not re-typing. The part of the above about the cock still applies.