In general, in one aspect, the invention features a method, including measuring a surface profile of a substrate, generating firing instructions for a droplet ejection device based on the surface profile, and depositing droplets on the substrate with the droplet ejection device according to the instructions.