Set the rack in the middle and heat the oven to 350°F. Whisk flour, baking powder, and salt.
Cream butter and sugar about 2 minutes. Beat in eggs one at a time, then add the extracts. Stir in almonds, zest, and any optional dried fruit. Fold in the dry ingredients.
Divide the dough and shape two 13-by-2-inch logs on lightly oiled parchment. Leave at least 3 inches between them. Bake about 35 minutes, rotating once.
Cool 10 minutes. Lower the oven to 325°F. Cut diagonal 3/8-inch slices with a serrated knife.
Lay the slices flat about 1/2 inch apart and bake about 15 minutes, flipping halfway. Alternatively, stand them upright as pictured.
Cool completely on a rack and drizzle with white royal icing if desired.