Epicurus embraced all pleasure in his philosophy.
Yes agreed. And if I were looking for a text to quote for a potential example of mental thoughts and attitudes and processes (through a sound philosophy) bringing pleasure in the midst of difficult circumstances, in addition to the example of the last days of Epicurus I think I would cite the opening of book two of Lucretius, the start of which is:
Quote from Lucretius Book Two'Tis pleasant, when a tempest drives the waves in the wide sea, to view the sad distress of others from the land; not that the pleasure is so sweet that others suffer, but the joy is this, to look upon the ills from which yourself are free. It likewise gives delight to view the bloody conflicts of a war, in battle ranged all over the plains, without a share of danger to yourself: But nothing is more sweet than to attain the serene 'tho lofty heights of true philosophy, well fortified by learning of the wise, and thence look down on others, and behold mankind wandering and roving every way, to find a path to happiness; they strive for wit, contend for nobility, labor nights and days with anxious care for heaps of wealth, and to be ministers of state.
O wretched are the thoughts of men! How blind their souls! In what dark roads they grope their way, in what distress is this life spent, short as it is! Don't you see Nature requires no more than the body free from pain, that she may enjoy the mind easy and cheerful, removed from care and fear?