Setting the font on tableView cells

I have a table view that lists a font name from a sqlite database. I would like that cell to display the font name in it’s font (Ie the cell that says Helvetica would display that cell in Helvetica, etc).

Currently my propagation looks like this:

	on loadFonts_(sender)
        fontDataSource's removeAllObjects()
        set thisRow to collectionsDataSource's objectAtIndex_(sender's selectedRow() as integer)
        set thisRowID to (thisRow's valueForKey_("table_rowid"))

        fontDataSource's removeAllObjects()
        set theResult to db("SELECT * FROM fonts WHERE collection=" & thisRowID & " ORDER BY ROWID")
        set theFonts to {}
        set {ASTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "|"}
        repeat with r in theResult
            set fontName to item 1 of r as string
            set fontId to item 2 of r as string
            set end of theFonts to {table_fontName:fontName}
        end repeat

        set AppleScript's text item delimiters to ASTID
        fontDataSource's addObjectsFromArray_(theFonts)
        fontList's reloadData()

	end loadFonts

But I’m not sure how to go about implementing fontWithName_size or if I need to use a totally separate method altogether.

You need to make your script instance the delegate of the table view, and implement tableView_willDisplayCell_forTableColumn_Row_. When it gets called for your cell, you need to call setAttributedString on the cell, passing a suitably styled NSAttributedString.