fix a small bug in the PageNumber

I Fixed the following bugs.
* font style is not applied.
* that setting to be counted will not be restored when you the Undo/Redo.

http://osc.matsukei.net/issues/271 refs #271