Modified the font-existsp function so it takes a frame as optional parameter.