WoW API documentation:
For your specific question, demonic fury is just a type of power, like mana or energy, so you get the current and maximum values by calling the
UnitPower and
UnitPowerMax functions with the desired
unit and
power type, and the UNIT_POWER and UNIT_POWER_FREQUENT events fire to notify you of changes.
Code:
local current = UnitPower("player", SPELL_POWER_DEMONIC_FURY)
local maximum = UnitPowerMax("player", SPELL_POWER_DEMONIC_FURY)
print(format("Demonic Fury: %d/%d (%d%%).", current, maximum, current / maximum))
... will print something like "Demonic Fury: 642/1000 (64%)" in your chat frame.
If the layout you're working with (I'm not familiar with it) does not already have a font string on the demonic fury bar, you'd need to
add one and then add some code to update the text inside the function the layout uses to update the bar.
As an alternative to updating the text directly, you could create a tag and apply it to the font string.