How do i get custom fontSizes and theme fontSizes?

Use useSettings() since useSetting() is deprecated.

Then, you can specify a further path with custom or theme to state what data you’d like to get:

// User-created presets.
useSettings('typography.fontSizes.custom');
// Theme-defined presets.
useSettings('typography.fontSizes.theme');

See this WordPress Playground for a working example.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)