Another approach, used back in the day = drill a countersunk hole through the handlebar stem at the appropriate angle to route the front brake cable down to the caliper.
If you countersink the hole you do not need to use a cable housing ferrule.
This photograph is borrowed from Cyclocross Magazine to illustrate the concept: