Texturing along a 2d curve

Hi I just had a question about drawing 2d curves and applying textures along that path. Can I use opengl to apply a texture along a path between a set of sample points? Put another way, if I have a set of points, how can I draw textures with minimum distortion along a curve, such as a bezier curve between those points in 2d?