For a given steering angle, offsetting the hub forward reduces trail, while offestting the hub backward increases trail. Most road bikes have the hub offset ahead of the steering axis. This can be done either by bending the fork blades or by having the blades leave the fork crown at an angle to the steering axis. For a given steering angle and fork offset, the trail is the same regardless of how the offset is obtained.
The image below diagrams the rake of a 1930s racing bike. You can do the same for any bike. It's easiest with a scale drawing or a good photograph. Draw a line down the center of the steering tube and extend it to the ground. Drop another line from the center of the front hub perpendicular to the ground. The distance between the contact patch and the steering axis/ground plane intercept is the trail.
As shown in the formulas on the left, trail can be calculated given the head tube angle, the radius of the inflated tire, and the amount of fork offset. For someone designing a fork, it is more useful to start with the desired trail and calculate the needed fork offset, which can be determined from the tire radius, head tube angle, and trail.
This page written by Joshua Putnam. Please feel free to email questions, comments, corrections, suggestions, etc.