A beautiful web application for previewing and downloading Monlam Tibetan fonts. Built with Next.js, React, and Tailwind CSS.
- 🔤 Tibetan Alphabet Preview - See complete character sets for each font
- ✍️ Custom Text Input - Preview your own Tibetan text
- 📱 Responsive Design - Works on desktop and mobile
- ⬇️ Download Fonts - Download individual fonts or all fonts at once
- 🎨 Beautiful UI - Modern, clean interface with gradients and animations
- Node.js 18+
- npm or yarn
-
Clone the repository
git clone <repository-url> cd tibetan-font-viewer
-
Install dependencies
npm install
-
Start development server
npm run dev
-
Open in browser
http://localhost:3000
npm run build
npm startSince the admin panel has been removed, you can add fonts manually:
-
Add font files to the fonts directory
# Copy your .ttf or .otf files to: public/fonts/ -
Supported file formats
.ttf(TrueType).otf(OpenType)
-
Font naming
- Use descriptive names
- Avoid special characters
- Example:
Monlam-New-Font.ttf
-
Restart the application
npm run build npm start
-
Delete font files
# Remove unwanted fonts from: public/fonts/ -
Restart the application
npm run build npm start
Fonts are automatically categorized based on filename:
- Monlam Classic - Contains "monlam ouchan"
- Monlam Unicode - Contains "monlam uni" or "monlam"
- TCRC - Contains "tcrc"
- Classic - Contains "himalaya"
- Other - Default category
tibetan-font-viewer/
├── public/
│ └── fonts/ # Font files directory
├── src/
│ ├── app/ # Next.js app directory
│ │ ├── page.tsx # Main page
│ │ └── api/ # API routes
│ ├── components/ # React components
│ └── utils/ # Utility functions
├── Dockerfile # Docker configuration
├── docker-compose.yml # Docker Compose setup
└── nginx.conf # Nginx configuration
GET /api/fonts- Get list of available fontsGET /api/health- Health check endpoint
-
Build Docker image
docker build -t monlam-font-viewer . -
Run with Docker Compose
docker-compose up -d
-
Use the provided Nginx configuration
cp nginx.conf /etc/nginx/sites-available/
-
Enable the site
ln -s /etc/nginx/sites-available/nginx.conf /etc/nginx/sites-enabled/
npm run dev- Start development servernpm run build- Build for productionnpm start- Start production servernpm run lint- Run ESLint
- Components - Add to
src/components/ - API Routes - Add to
src/app/api/ - Utilities - Add to
src/utils/
- Check file format - Ensure fonts are
.ttfor.otf - Check file location - Fonts must be in
public/fonts/ - Restart application - Run
npm run build && npm start
- Clear cache - Delete
.nextfolder and rebuild - Check dependencies - Run
npm install - TypeScript errors - Check for type mismatches
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is licensed under the MIT License.
For issues and questions:
- Check the troubleshooting section
- Review the project structure
- Open an issue on GitHub
Monlam Font Viewer - Beautiful Tibetan font preview and download experience 🎉