Preheat your oven to 350°F (177°C) and line a baking sheet with parchment paper.
In a medium bowl, whisk together flour, baking powder, and salt.
In a large bowl, using an electric mixer, cream together the sugar and butter until light and fluffy.
Beat in the eggs one at a time, then stir in the vanilla and almond extracts.
Gradually add the flour mixture, mixing until just incorporated.
Fold in the almonds and, if using, the cranberries.
Divide the dough in half and form two logs, approximately 12 inches long and 2 inches wide, on the prepared baking sheet.
Bake for 25 minutes, until lightly browned.
Cool for 20 minutes; then, using a serrated knife, cut logs into 3/4-inch slices.
Lay the slices cut side down on the baking sheet and bake for another 8-10 minutes on each side, until crisp.