 
   getMinimapHeight: -> @getLinesCount() * @getLineHeight()
   getLineHeight: -> @lineHeight ||= parseInt @editorView.find('.lines').css('line-height')
+  getFontSize: -> @fontSize ||= parseInt @editorView.find('.lines').css('font-size')
   getLinesCount: -> @editorView.getEditor().getScreenLineCount()
 
   getMinimapScreenHeight: -> @minimapView.height() / @minimapView.scaleY


  initialize: ->
    @lineOverdraw = atom.config.get('minimap.lineOverdraw')
    atom.config.observe 'minimap.lineOverdraw', =>
      @lineOverdraw = atom.config.get('minimap.lineOverdraw')

    @lines.css 'line-height', atom.config.get('editor.lineHeight') + 'em'
    atom.config.observe 'editor.lineHeight', =>
      @lines.css 'line-height', atom.config.get('editor.lineHeight') + 'em'

  destroy: ->
    @unsubscribe()

    firstVisibleScreenRow = @getFirstVisibleScreenRow()
    lastScreenRowToRender = firstVisibleScreenRow + @getMinimapHeightInLines() - 1
    lastScreenRow = @editor.getLastScreenRow()

    if @firstRenderedScreenRow? and firstVisibleScreenRow >= @firstRenderedScreenRow and lastScreenRowToRender <= @lastRenderedScreenRow
      renderFrom = Math.min(lastScreenRow, @firstRenderedScreenRow)
