FontDetector is a powerful browser extension that helps designers, developers, and users quickly identify fonts and color information on web pages. With a simple mouse hover, you can instantly get font names, sizes, colors, and other style attributes of text elements.
- Real-time Detection: Hover over any text element to view font information
- Mini Tooltip: A lightweight tooltip follows your cursor, indicating when text selection is available
- Fixed Tooltips: Create fixed information tooltips by selecting text for comparing different elements
- Long Press Support: Press and hold to trigger text selection mode
- Color Information: Display text colors in HEX, LCH, and HCL formats
- One-click Copy: Easily copy font information and color values
- Font Search: Search for detected fonts directly to learn more
- Keyboard Shortcuts: Use ESC key to quickly close floating tooltips while preserving fixed ones
- Visit the Chrome Web Store
- Click "Add to Chrome" button
- Download or clone this repository locally
- Open Chrome browser and navigate to the extensions management page (
chrome://extensions/
) - Enable "Developer Mode" (toggle button in top right)
- Click "Load unpacked extension" button
- Select the root directory of this repository
- Click the FontDetector icon in the toolbar to activate the extension (icon turns blue to indicate activation)
- Hover your mouse over any text element on the webpage to see the mini tooltip
- Select text to create a fixed tooltip with detailed font information
- Click the extension icon again or press ESC key to deactivate the extension
- With the extension active, select a piece of text or use long press
- After selection, a fixed information tooltip will be automatically created
- Repeat this operation to create multiple fixed tooltips for comparison
- Click the close button in the top-right corner of a tooltip to close it
- Press and hold your mouse button on any text element
- After about 300ms, the mini tooltip will hide, indicating long press mode
- Release the mouse button to create a fixed tooltip
- For quick clicks (less than 300ms), the mini tooltip remains visible
- Click the copy icon in the tooltip to copy the corresponding value to clipboard
- A blue checkmark icon indicates successful copying
FontDetector is written in pure JavaScript with no external dependencies. It can detect and display the following information:
- Font Family
- Font Weight
- Font Size
- Letter Spacing
- Line Height
- Text Alignment
- Text Color (multiple formats)
We welcome all forms of contribution! Please check CONTRIBUTING.md to learn how to participate.
This project is licensed under the MIT License.