A solid pharmaceutical dosage form includes a drug-containing solid and a nondrug-containing matrix. The drug-containing solid includes one or more drug- containing structural elements that are embedded in or attached to the nondrug- containing matrix. The drug-containing structural elements include one of zero- dimensional elements, one-dimensional elements, two-dimensional elements, or combinations thereof. The drug-containing structural elements are a solidified liquid or paste. The pharmaceutical dosage form has a size greater than an average thickness of the one or more drug-containing structural elements.