A television lead crossing into film at the right moment
Katherine Heigl had one season left on Grey's Anatomy when the studio comedy was still a safe bet. The timing was everything — and so was the role.

From prime time to the multiplex
Television stardom and film stardom have always operated as separate economies, and the move from one to the other has broken more careers than it has made. What Heigl managed between 2007 and 2009 was less a defection than a controlled transfer: she was still Izzie Stevens on Grey's Anatomy — still winning an Emmy for the role in 2007 — while simultaneously establishing herself as a reliable opening-weekend draw in studio comedies. That overlap, which looks like a scheduling accident from the outside, was in practice the condition that made the film side possible. The network gave her a face millions already trusted. The films gave that face a second market.
Knocked Up (2007) was the first proof of concept. Judd Apatow cast her opposite Seth Rogen in what was nominally a high-concept studio comedy but was in practice an R-rated character piece, and the film's extraordinary commercial performance — it earned well over $200 million worldwide on a modest production budget — demonstrated that she could open a movie. The industry reads those numbers fast. By the time Columbia Pictures was packaging The Ugly Truth (2009), Heigl was already attached to 27 Dresses (2008), which had performed solidly as a more conventional, broader romantic comedy. Three films, three different registers, and audiences kept showing up. That is the kind of track record that gets you a mid-budget studio comedy written around you.
The Ugly Truth built its premise directly around her range. The screenplay by Nicole Eastman, Karen McCullah, and Kirsten Smith gave her Abby Richter, a Sacramento television producer — organized, controlling, professionally competent, and romantically hapless — and the joke depends on the audience finding that combination credible rather than irritating. That is a harder performance problem than it looks. The character has to be sympathetic enough to root for and rigid enough to be funny when she fails. Heigl's background in long-form television, where you have twenty-two episodes a season to build audience patience for a difficult character, is exactly the preparation that kind of role requires. Film actors rarely get that time.
The pairing and what it cost
Gerard Butler had come off the historical action genre — most prominently 300 (2006) — and the casting works precisely on the gap between that image and the comedy register the film demands of him. Mike Chadway, the film's blunt cable-access pundit who is forced into a professional partnership with Abby, is a role that needs physical confidence and a willingness to be vulgar without tipping into malice. Butler brought the first quality ready-made; the second was the gamble. The pairing with Heigl functions partly as a negotiation of those two screen personae: her training in emotional nuance against his comfort with scale and physical comedy.
The R rating — assigned by the MPAA for sexual dialogue and language — was the structural fact that shaped both how the film could be marketed and what it was allowed to be. A romantic comedy carrying an R is not advertising itself to the widest possible audience; it is making a bet that adults will pay specifically for the sharper material, and that bet has a ceiling. The MPAA's rating system ↗ classifies R as requiring parental guidance for under-17s, and that classification removed a significant slice of the usual romantic-comedy demographic from the opening weekend. Columbia accepted that tradeoff. The box office confirmed they were right to: the film earned approximately $27 million in its domestic opening weekend and went on to gross around $205 million worldwide against a production budget in the region of $38 million (figures from 2009 theatrical reporting).
The audience response, measured by CinemaScore's opening-night polling, came in at a strong grade — meaningfully above what the critical consensus would have predicted. Critics, particularly on the aggregating sites that had become standard industry reference points by 2009, were largely unenthusiastic. Many reviews engaged less with the film as a made object and more with what the R-rated content said about the genre's direction, or about the leads' career choices. The disconnect between that critical reception and the audience grade is one of the cleaner examples of how the CinemaScore methodology ↗ captures something the review apparatus misses: it polls the people who chose to be in the room, on opening night, having paid for a ticket.
The window that made the arithmetic work
What is easy to forget, from the present vantage point, is how much the 2009 theatrical window contributed to the final number. A mid-budget comedy released in 2009 had months before it reached home video and premium cable — the theatrical run was still the primary revenue event, and a film that played well across multiple weekends could compound its opening significantly. The Ugly Truth opened in late July 2009 and had a long summer tail. That temporal structure, which the streaming era effectively dismantled, is why the ratio of budget to gross looks so favorable and why Columbia was willing to keep making films in this budget band.

Heigl's position in that system was specific to the moment. The romantic comedy as a reliably profitable studio genre ↗ was already beginning its contraction by the early 2010s, as the economics of mid-budget filmmaking shifted toward franchises and away from original stories about adults. She crossed into film during the last years when a television star could build a parallel theatrical career in original comedies without being attached to a pre-existing property. The parts that were written for her — Abby Richter, Jane Nichols in 27 Dresses, Alison Scott in Knocked Up — existed because studios were still commissioning that kind of script at that budget level. Within a few years, that commissioning would stop.
Katherine Heigl arrived from a network drama into a run of studio comedies while the form was still reliably profitable.
The Golden Raspberry Awards nominated The Ugly Truth in 2010, which tells you something about critical culture's relationship to the film and almost nothing about whether it worked as a commercial object. It did work. It made back its budget several times over, its opening-night audience liked it, and the role it gave Heigl was one that only a performer who had spent years building a complex television character could have made believable. The window was open. She walked through it at the right time.