Calico Notes

From IPRE Wiki
Jump to: navigation, search

Screen Pixels

  1. width of window:
  2. calico.Output.Allocation.Width # Pixels
  3. Resolution of computer:
  4. calico.GdkWindow.Screen.Resolution
  5. DPI = 96
  6. calico.GetFont().Size
  7. Pango.Units.FromPixels(551)
  8. Font size:
  9. calico.GetFont().Size # Linux, pango units
  10. Pango.Scale.PangoScale