% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{set_ko_font}
\alias{set_ko_font}
\title{Set Korean font for ggplot2}
\usage{
set_ko_font(font = NULL)
}
\arguments{
\item{font}{Optional font family name to use directly. If \code{NULL}
(default), auto-detects from common Korean fonts.}
}
\value{
The font family name used (invisibly).
}
\description{
Detects a Korean-compatible font on the current system and applies it
to all ggplot2 plots via \code{theme_set()}. Call this once at the top
of your script to avoid broken Korean text in plot titles and labels.
}
\examples{
if (interactive()) {
  library(ggplot2)
  set_ko_font()

  # Now Korean text renders correctly
  ggplot(data.frame(x = 1), aes(x, x)) +
    geom_point() +
    labs(title = "Korean Title Test")
}

}
