text: Title: [Bug]: `fontsize` in tables not working
  Body: ### Bug summary
  
  Specifying `fontsize` kwarg in `matplotlib.pyplot.table` doesn't have any effect.
  
  ### Code for reproduction
  
  ```Python
  import matplotlib.pyplot as plt
  import numpy as np
  
  x = np.linspace(0, 10, 100)
  y = x + 1
  tableData = [['a', 1], ['b', 1]]
  
  fig, ax = plt.subplots()
  ax.plot(x, y)
  t = ax.table(
      cellText=tableData,
      loc='top',
      cellLoc='center',
      fontsize=30
  )
  plt.show()
  ```
  
  
  ### Actual outcome
  
  ![Figure_1](https://github.com/user-attachments/assets/4a60237b-4060-4438-854e-ba2b7a5b73e1)
  
  
  ### Expected outcome
  
  A table with bigger font size.
  
  ### Additional information
  
  This works:
  ```
  import matplotlib.pyplot as plt
  import numpy as np
  
  x = np.linspace(0, 10, 100)
  y = x + 1
  tableData = [['a', 1], ['b', 1]]
  
  fig, ax = plt.subplots()
  ax.plot(x, y)
  t = ax.table(
      cellText=tableData,
      loc='top',
      cellLoc='center'
  )
  t.set_fontsize(30)  # <----------------
  plt.show()
  ```
  ![Figure_1](https://github.com/user-attachments/assets/b668e57f-e676-40bc-98cb-c3e35ede6ad8)
  
  ### Operating system
  
  Windows 11
  
  ### Matplotlib Version
  
  3.8.2
  
  ### Matplotlib Backend
  
  QtAgg
  
  ### Python version
  
  3.12.0
  
  ### Jupyter version
  
  _No response_
  
  ### Installation
  
  pip