Method: PDF::Core::Page#fonts

Defined in:
lib/pdf/core/page.rb

#fontsHash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Fonts dictionary.

Returns:

  • (Hash)


209
210
211
212
213
214
215
# File 'lib/pdf/core/page.rb', line 209

def fonts
  if resources[:Font]
    document.deref(resources[:Font])
  else
    resources[:Font] = {}
  end
end